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
I = () -> | |
I.prototype.doErrands = () -> 'I did ...' | |
me = I | |
persona = new I | |
console.log me.doErrands?() #undefined | |
console.log persona.doErrands?() #I did ... |
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 I | |
doErrands: -> | |
'I did ...' | |
me = I | |
I = new I | |
console.log me.doErrands?() #undefined | |
console.log I.doErrands?() #I did ... | |
# // Generated by CoffeeScript 1.7.1 |
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
I = ( name ) -> | |
task = 0 | |
obj = | |
hasTask: -> | |
return "#{ name } have #{ task } task(s)" | |
getTask: -> | |
return ++task | |
return obj | |
me = I 'I' |
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
tap phinze/homebrew-cask || true | |
tap homebrew/versions || true | |
update || true | |
install automake || true | |
install brew-cask || true | |
install bind || true | |
install curl || true | |
install cmake || true | |
install fontforge || true |
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
gist from ./gist | |
日本語を表示 |
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://raw.github.com/github/gitignore/master/Global/Vim.gitignore | |
[._]*.s[a-w][a-z] | |
[._]s[a-w][a-z] | |
*.un~ | |
Session.vim | |
.netrwhist | |
*~ | |
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
gistコマンド便利 |
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
gistいい,gist |
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
# NOT working on CoffeeScript 1.7.1 | |
mocha --compilers coffee:coffee-script test/ | |
# working :) | |
mocha --require coffee-script/register --compilers coffee:coffee-script test/ |
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
process.env.NODE_PATH = '/usr/local/lib/node_modules' | |
cp = require 'child_process' | |
task 'test', 'run tests', -> | |
cp.spawn 'mocha', | |
[ | |
'--require', 'coffee-script/register', | |
'--compilers', 'coffee:coffee-script', | |
'test/' | |
], |
OlderNewer