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
// socket.js#30 | |
on( event, handler ) { | |
this.socket.on( event, ( data, fn ) => { | |
let packet = { | |
event: event, | |
data: data, | |
socket: this, | |
fn: typeof data === 'object' && data.fn ? data.fn : fn | |
} | |
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
{ | |
"apps": [ | |
{ | |
"script": "server.js", | |
"next_gen_js": true, | |
"autorestart": false, | |
"env": { | |
"DEBUG":"" | |
} |
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
import http from 'http' | |
http | |
.createServer( ( req, res ) => { | |
res.writeHead( 200, { 'content-type': 'text/plain' } ) | |
res.end( 'Hello http\n' ) | |
console.log( 'GET /' ) | |
}) |
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
``` | |
ho-conformance -o output.log < styles.less | ho-compile > output.css | |
``` | |
Streams log output from conformance test to output.log, pipes styles.less through ho-conformance to ho-compile | |
``` | |
ho-conformance -o output.log --compile < styles.less > output.css | |
``` |