This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type addable interface { | |
type int, string | |
} | |
func add(type T addable)(x, y T) T { | |
return x + y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
convert th15_st4a.bmp -fill MistyRose -stroke black -strokewidth 8 \ | |
-draw "roundrectangle 900,110 1250,660 50,50" \ | |
-fill black -stroke none -pointsize 30 -font "M+-1mn" -interline-spacing 15 -antialias \ | |
-annotate 0x0+920+160 "①\n『紺珠伝4面序盤の陰\n陽玉レーザー地帯を早\n苗で200G以上掠り\nつつ避ける』\nまず面タイトル文字の\n「寂びの来ない街」の\n「び」の文字の下辺り\nで待機." \ | |
-fill none -stroke LawnGreen -draw "stroke-dasharray 20,10 stroke-width 10 rectangle 290,0 360,960" \ | |
-resize 960x out1.jpg | |
convert th15_st4b.bmp -fill MistyRose -stroke black -strokewidth 8 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptencoding utf-8 | |
" gen_gorin_dict.vim - Generate dictionaries of athletes from gorin.jp | |
" | |
" generate two files: | |
" 1. gorin%Y.migemodict | |
" 2. gorin%Y_msime.txt | |
" | |
" usage: | |
" vim -N -u NONE -i NONE -V1 -e -s -X --cmd "source gen_gorin_dict.vim" --cmd qall! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
style -name tw-avatar-square twitter.com img.avatar { border-radius: 0 !important } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
style -name tw-avatar-rotate twitter.com img.avatar { animation-name: tw-avatar-rotate; animation-duration: 3s; animation-iteration-count: infinite; animation-timing-function: linear } @keyframes tw-avatar-rotate { from { transform: rotate(0deg) } to { transform: rotate(360deg) } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap <SID>[Scroll] <Nop> | |
if 0 | |
nmap j j<SID>[Scroll] | |
nnoremap <script><expr> <SID>[Scroll]j | |
\ (line('.') == line('$') ? "L\<SID>[Scroll]" : "j\<SID>[Scroll]") | |
nmap k k<SID>[Scroll] | |
nnoremap <script><expr> <SID>[Scroll]k | |
\ (line('.') == 1 ? "H\<SID>[Scroll]" : "k\<SID>[Scroll]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
" | |
" | |
function! neobundle2dein_toml#generate_toml() abort "{{{ | |
let lazy = [] | |
let not_lazy = [] | |
let bundles = neobundle#config#get_neobundles() | |
for bundle in bundles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" panotoday: {{{ | |
nnoremap <Leader>pt :<C-u>panotoday<CR> | |
js <<EOM | |
if (1) { | |
commands.addUserCommand( | |
['panotoday'], | |
'create (or switch to) a tabgroup, named for the date today', | |
function (args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
" fetch_ku.vim is a vim file to fetch a vim plugin, vim-ku. | |
" | |
" Usage: | |
" vim -N -u fetch_ku.vim -U NONE --cmd "let g:ku_dir = expand('~/.vim/bundle/vim-ku')" | |
" | |
function! s:entries(base, files, result) abort "{{{ | |
let r = [] |
NewerOlder