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
| /* Code: */ | |
| #include <ctype.h> | |
| #define speed 35 | |
| #define word_time (speed * 3) | |
| #define short_time (speed) | |
| #define long_time (speed * 3) | |
| #define space_time (speed * 7) | |
| #define letter_pause (speed * 3) | |
| #define long_pin 12 |
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
| *background: #000000 | |
| *foreground: #e2d1e3 | |
| *cursorColor: #6a6a6a | |
| !black | |
| *color0: #080f0c | |
| *color8: #000000 | |
| !red | |
| *color1: #5f0000 | |
| *color9: #73000c |
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 Net = require('net'); | |
| var crypto = require('crypto'); | |
| var clients = []; | |
| var clientNames = {}; | |
| Net.createServer(function (client) { | |
| clients.push(new Client(client)); | |
| }).listen(1337); | |
| function Client(socket) { |
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 Utf8 = { | |
| // public method for url encoding | |
| encode : function (string) { | |
| string = string.replace(/\r\n/g,"\n"); | |
| var utftext = ""; | |
| for (var n = 0; n < string.length; n++) { | |
| var c = string.charCodeAt(n); |
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
| // JavaScript Document | |
| function Temp() { | |
| var test = "testing"; | |
| } | |
| Temp.prototype.init = function() { | |
| test = this.test; | |
| $.ajax({ //IE errors here. | |
| url: "xd_subnav.xml", | |
| dataType: "xml", |
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 foo(bar) { | |
| if (bar) { | |
| var baz = "hello" | |
| } | |
| console.log(baz) | |
| } |
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 result = async asyncCall(foo); | |
| doStuff.whatever(result); |
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 secondsFromTime(string){ | |
| var split = string.split(":") | |
| var seconds = parseInt(split.pop()) | |
| if (seconds !== NaN) { | |
| var minutes = parseInt(split.pop()) | |
| if (minutes !== NaN) { | |
| var hours = parseInt(split.pop()) | |
| if (hours !== NaN) { | |
| return hours * 60 * 60 + minutes * 60 + seconds |
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
| response_handler = (response)=> | |
| buf = null | |
| ptr = 0 | |
| response.on "data", (chunk) => | |
| if not buf | |
| if response.headers['content-length'] | |
| buf = new Buffer(parseInt(response.headers['content-length'],10)+2) | |
| else | |
| buf = '' |
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
| js> var a = {} | |
| js> a.foo = "bar" | |
| "bar" | |
| js> a.a = a | |
| ({foo:"bar", a:{foo:"bar", a:{}}}) | |
| js> a | |
| ({foo:"bar", a:{foo:"bar", a:{}}}) |
OlderNewer