This file contains hidden or 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
| var charm = require('charm')(); | |
| charm.pipe(process.stdout); | |
| charm.write('\n'); | |
| charm.cursor(false); | |
| var start = 0, | |
| end = 100, | |
| prev = ""; |
This file contains hidden or 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
| var charm = require('charm')(), | |
| http = require('http'); | |
| charm.pipe(process.stdout); | |
| charm.write('\n'); | |
| charm.cursor(false); | |
| var options = { | |
| hostname: 'nodejs.org', | |
| port: 80, |
This file contains hidden or 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
| var charm = require('charm')(), | |
| http = require('http'); | |
| charm.pipe(process.stdout); | |
| charm.write('\n'); | |
| charm.cursor(false); | |
| var options = { | |
| hostname: 'nodejs.org', | |
| port: 80, |
This file contains hidden or 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
| node -p "var a" | |
| undefined |
This file contains hidden or 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
| node -e "var a" | |
| #nothing |
This file contains hidden or 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://en.wikipedia.org/wiki/Split-brain_(computing) |
This file contains hidden or 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
| brew install cmake | |
| brew tap homebrew/science | |
| brew install opencv --env=std | |
| sudo cp /usr/local/Cellar/opencv/2.4.6.1/bin/* /usr/local/bin |
This file contains hidden or 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
| (defn some-fn [l] | |
| (mapv #(* 5 %) l)) | |
| (def thing nil) | |
| (if (nil? thing) | |
| (do (println "true") (some-fn [1 2 3]) true) | |
| (do false)) |
This file contains hidden or 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 Hello | |
| toString: -> | |
| 'hello' | |
| class World extends Hello | |
| toString: -> | |
| super() + ' ' + 'world' | |
| earth = new World() | |
| alert earth |
This file contains hidden or 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
| node_modules |