http://requirejs.org/docs/api.html
Project structure:
- www/
- index.html
- js/
- app/
- sub.js
- app/
compare = (buf1, buf2) -> | |
return false if buf1.length != buf2.length | |
for i in [0...buf1.length] | |
return false if buf1[i] != buf2[i] | |
true | |
isCtrlZ = (chunk) -> compare chunk, [26,13,10] | |
input = (cb) -> | |
result = '' |
isArray = (x) -> | |
typeof x is 'object' and x.constructor is Array | |
Array::last = -> @[@length - 1] |
# http://stackoverflow.com/questions/17833185/git-checkout-from-a-specific-directory | |
# Method №1 | |
mkdir <repo.git> | |
mkdir <working-dir> | |
git clone <repo-url> <repo.git> --bare --depth 1 | |
git --git-dir=<repo.git> --work-tree=<working-dir> checkout HEAD -- <repo-subdir> | |
# Method №2 | |
mkdir <working-dir> |
http://requirejs.org/docs/api.html
Project structure:
# http://www.mikedellanoce.com/2013/04/coffeescript-tip-modular-cakefile.html | |
fs = require('fs') | |
tasks = fs.readdirSync('tasks') | |
require('./tasks/' + task.replace(/\.coffee$/, '')) for task in tasks |
Вопросы:
Ответы:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
About porting camlp4 to F#:
Next: