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
| /* This is the format a typtical snippet will be in. */ | |
| /* This infinate loop will prevent CSRF attacks but causeing the script to become unresponsive | |
| if someone tries to load an ajax request into a script tag. The infinate loop and comment wrapped | |
| json object will have to be parsed out before you can parse the json object. | |
| */ | |
| for(;;); | |
| /* For added secuity the whole json object is wrapped in a comment */ | |
| /* | |
| { |
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
| big_pipe.onPageletArrive({ | |
| "phase":1, | |
| "id":"pagelet_composer", | |
| "page_cache":true, | |
| "css":["3cT\/s","6koCa"], | |
| "resource_map": { | |
| "qxbCm": { | |
| "type":"js", | |
| "src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v1\/ya\/r\/F0DxUOBa16_.js" | |
| } |
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
| function boo(){ | |
| this.someShit = true; | |
| } | |
| //this is how im doing my prototype for each method | |
| boo.prototype.too = function(val){ | |
| this.moreShit = false; | |
| } | |
| boo.prototype.uoo = function(val){ | |
| this.evenMoreShit = true; |
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 file = ''; | |
| var stream = fs.createReadStream('/home/session/A0FFCFFC63DA8D1040586132C7422CA41C29AA4C.torrent'); | |
| //stream.setEncoding('UTF-8'); | |
| stream.on('data', function(data){ | |
| file += data; | |
| }); | |
| stream.on('close', function(data){ | |
| sys.log('File read length: '.grey + file.length); | |
| var stuff = bencode.decode(file.toString()) | |
| //console.log(sys.inspect(stuff)); |
NewerOlder