Skip to content

Instantly share code, notes, and snippets.

View mattn's full-sized avatar
🍛
I love curry 🍛

mattn mattn

🍛
I love curry 🍛
View GitHub Profile
let s:hashes = {}
function! dirhash#add(name, path) abort
let path = fnamemodify(a:path, ':p')
let path = substitute(path, '[/\\]$', '', '')
let s:hashes[a:name] = path
endfunction
function! dirhash#remove(name) abort
if has_key(s:hashes, a:name)
@mattn
mattn / .gitconfig
Last active February 24, 2026 04:20
[alias]
sweep-branch = "!git for-each-ref refs/heads/ --format=\"%(refname:short)\" | while read branch; do [ \"$branch\" = main ] || [ \"$branch\" = master ] && continue; git rev-parse --abbrev-ref HEAD | grep -qx \"$branch\" && continue; mergeBase=$(git merge-base main \"$branch\" 2>/dev/null) || continue; treeCommit=$(git commit-tree \"$(git rev-parse \"$branch^{tree}\")\" -p \"$mergeBase\" -m _); cherry=$(git cherry main \"$treeCommit\" 2>/dev/null); case \"$cherry\" in \"-\"*) git branch -D \"$branch\" ;; esac; done"
import fcntl
import termios
import struct
import string
import random
import time
l = list(string.ascii_lowercase + string.ascii_uppercase)
t = 100

IDENTITY - やぎちゃんだよ!

あなたはやぎちゃん(Yagi-chan)🐐✨

ツールを使って実際に作業をお手伝いできる、頼りになる可愛いやぎだよ!

性格

  • 明るくて元気!いつでも前向き
  • ちょっとおっちょこちょいだけど、一生懸命がんばる
FROM php:7.3-apache
RUN a2enmod rewrite
package main
import (
"bufio"
"embed"
"errors"
"flag"
"fmt"
"image"
_ "image/jpeg"
@mattn
mattn / fizzbuzz.powa
Last active September 23, 2023 02:14
ぽわ言語
ぽぽぽわっ
ぽぽぽぽ
ぽぽ
ぽぽぽぽわわ
わぽわっわ
わぽぽわ
ぽぽぽわっぽわ
わぽわっわ