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
$ git tag -a [tagname] -m'Comment' (checusum) | |
$ git push origin --tags |
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 | |
# $5 $6 $7 $8 | |
# MERGED LOCAL BASE REMOTE | |
if test -s $7 | |
then | |
/usr/local/bin/vim -f -d -c 'wincmd J' $5 $6 $7 $8 | |
else | |
/usr/local/bin/vim -f -d -c 'wincmd J' $5 $6 $8 | |
fi |
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
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 : | |
# | |
# Author: haya14busa | |
# URL: http://haya14busa.com | |
# License: MIT License | |
# Created: 2013-10-31 | |
# | |
import sys |
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
def generatePermutation(items): | |
if len(items) == 0: | |
yield [] | |
for i in xrange(len(items)): | |
for j in generatePermutation(items[:i]+items[i+1:]): | |
yield [items[i]]+j |
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
// https://gist.github.com/nulltask/7412711#file-index-js | |
javascript:(function() { | |
var leak = []; | |
var iframe = document.createElement('iframe'); | |
iframe.style = 'display: none;'; | |
document.body.appendChild(iframe); | |
var window = iframe.contentWindow; |
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
def readFile(filename, line=0): | |
f = open(filename, 'r') | |
try: | |
if line == 1: | |
return f.readline() | |
else: | |
return f.read() | |
finally: | |
f.close() |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import sys | |
import os | |
import csv | |
def readFile(filename, lines): | |
f = open(filename, 'r') | |
try: |
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
"=========== Meta ============ | |
"StrID : 265 | |
"Title : Vim-Easymotionを拡張してVimでカーソルを縦横無尽に楽々移動する | |
"Slug : vim-lazymotion-on-speed | |
"Cats : Vim | |
"Tags : vac, vim, vimscript | |
"============================= | |
"EditType : post | |
"EditFormat : HTML | |
"BlogAddr : http://haya14busa.com |
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
NeoBundle 'haya14busa/vim-eazymotion' | |
" vim-eazymotion {{{ | |
" デフォルトだと<Leader><Leadr>となってるprefixキーを変更 | |
let g:EasyMotion_leader_key = ';' | |
" 候補選択: 候補が最初から2キー表示されるので大文字や打ちにくい文字は全面的に消す | |
" なお、最後の数文字が2キーの時の最初のキーになるので打ちやすいものを選ぶとよさそうです。 | |
let g:EasyMotion_keys='hklyuiopnm,qwertzxcvbasdgjf;' |
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
NeoBundle 'haya14busa/vim-easymotion' | |
" vim-eazymotion {{{ | |
" デフォルトだと<Leader><Leader>となってるprefixキーを変更 | |
let g:EasyMotion_leader_key = ';' | |
" 候補選択: 候補が最初から2キー表示されるので大文字や打ちにくい文字は全面的に消す | |
" なお、最後の数文字が2キーの時の最初のキーになるので打ちやすいものを選ぶとよさそうです。 | |
let g:EasyMotion_keys='hklyuiopnm,qwertzxcvbasdgjf;' |