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
syntax on | |
set autoindent | |
set tabstop=2 | |
set softtabstop=2 | |
set expandtab | |
set laststatus=2 | |
set statusline=[%L]\ %t\ %y%{'['.(&fenc!=''?&fenc:&enc).':'.&ff.']'}%r%m%=%c:%l/%L | |
filetype on | |
filetype plugin on |
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! DefSetter(name,type) | |
return "public function set " . a:name . "(v:" . a:type ."):void{ _" . a:name ." = v; }" | |
endfunction | |
function! DefGetter(name,type) | |
return "public function get " . a:name . "():" .a:type . "{ return _" . a:name ."; }" | |
endfunction | |
function! DefPrivateVariable(name,type) | |
return "private var _" . a:name . ":" .a:type . ";" |
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
[project_name].swf | |
Thumbs.db | |
.DS_Store | |
*.swp | |
*-config.xml | |
.rvmrc | |
.rbenv-version | |
.screenrc | |
.rbenv-gemsets | |
*.swo |
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! RunSpecOnSpecificLine() | |
execute '! rake spec SPEC='.expand('%:p').':'.line(".") | |
endfunction | |
command! LSpec :call RunSpecOnSpecificLine() |
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
Theorem. | |
There exist no 2 pairs of integers {a,b},{c,d} such that ab = cd(#1) ,a+b = c+d(#2), {a,b} != {c,d}, and a,b,c,d > 2 | |
Proof. | |
Suppose we have {a,b},{c,d} that satisfies all the conditions above. | |
We can suppose a,b,c,d are not all equal without losing generality, | |
since if a = b, a^2 = cd (from #1) and 2a = c+d (from #2) | |
=> 4a^2 = (c+d)^2 | |
=> 1/4(c+d)^2 = cd |
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
http://yugui.jp/articles/768 |
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
http://gyazo.com/3841b6bce49bf6d2a9777fb231967df8 |
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 | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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
hardstatus alwayslastline "%{= wk} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d %{=b wb}%c" | |
escape ^Tt | |
defscrollback 10000 | |
multiuser on | |
acladd guest |
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
class LazyProgrammer | |
attr_accessor :delegate_programmer | |
def initialize(programmer) | |
@delegate_programmer = programmer | |
end | |
def work | |
@delegate_programmer.work | |
end | |
end |
OlderNewer