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
$ node | |
> require('dnode') | |
WideCharToMultiByte: ▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒ ▒▒▒▒▒ ▒▒ ▒▒▒ ▒▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒. | |
{ [Function: dnode] connect: [Function], listen: [Function] } | |
> |
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
net.js:539 | |
socket._readWatcher.set(socket.fd, true, false); | |
^ | |
TypeError: Cannot call method 'set' of null | |
at doConnect (net.js:539:23) | |
at net.js:696:9 | |
at dns.js:171:30 | |
at IOWatcher.callback (dns.js:53:15) |
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
// mit licenced | |
var sys = require('util') | |
, child_process = require('child_process') | |
, proc | |
process.title = 'nodie' | |
;(function respawn(app) { | |
console.log('Starting', app) |
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
html { | |
height:100% !important; | |
} | |
body { | |
height:110% !important; | |
} | |
.main-content { | |
height:0 !important; | |
overflow-y:scroll; | |
} |
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
- if ( (qa[s].length >= 3 && typeof hwknd.projects[item.name].description !== 'undefined' && !!~hwknd.projects[item.name].description.toLowerCase().indexOf(qa[s]) ) || ( qa[s].length >= 3 && typeof hwknd.projects[item.name].name !== 'undefined' && !!~hwknd.projects[item.name].name.toLowerCase().indexOf(qa[s]) ) || ( typeof hwknd.languages[item.name] !== 'undefined' && !!~this.searchKeys(hwknd.languages[item.name], qa[s]) ) || ( qa[s].length >= 3 && typeof hwknd.readmes[item.name] !== 'undefined' && !!~hwknd.readmes[item.name].toLowerCase().indexOf(qa[s]) ) ) |
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
select | |
/* Image Filetypes */ | |
when match(1,'FFD8FFE00010'x'JFIF') then ftype = 'JPEG' | |
when match(1,'GIF8') then ftype = 'GIF' | |
when match(2,'PNG') then ftype = 'PNG' | |
when match(1,'0a0501'x) then ftype = 'PCX' | |
when match(9,'ILBM') & form then ftype = 'ILBM' |
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
#!/usr/bin/env node | |
// | |
// Lame Ident Daemon for IRC | |
// | |
// (c) 2010 George Stagakis | |
// | |
// MIT Licenced | |
// |
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
// | |
var net = require('net') | |
, config = { | |
type: 'text/plain' | |
} | |
exports.send = function(options, cb) { | |
var stream = net.createConnection(options.port, options.host) | |
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
// bit compressors for everyone | |
// by stagas | |
// public domain | |
var bitEncodeUTF8 = function(bits) { | |
var arr = [] | |
while (bits.length) { | |
arr.push(String.fromCharCode(parseInt('1' + bits.substr(0, 15), 2))) | |
bits = bits.substr(15) | |
} |
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
// another bit compressor | |
// by stagas | |
// public domain | |
var bitEncode = function(bits) { | |
var arr = [] | |
while (bits.length) { | |
arr.push(String.fromCharCode(parseInt('1' + bits.substr(0, 15), 2))) | |
bits = bits.substr(15) | |
} |