Skip to content

Instantly share code, notes, and snippets.

View gist:1133824
var i, x;
i = 10;
for (x = 0; 0 <= i ? x < i : x > i; 0 <= i ? x++ : x--) {
alert(x);
}
View gist:1133827
i = 10
for x in [0...i]
alert(x)
View gist:1133851
var d, i, _i, _results;
i = 10;
d = (function() {
_results = [];
for (var _i = 0;
0 <= i ? _i < i : _i > i;
0 <= i ? _i++ : _i--) { _results.push(_i); }
return _results;
}).apply(this);
View gist:1133858
[1.3]
[1..3]
[1...3]
[1....3]
View gist:1133903
console.log(a + b + c)
console.log(a +b + c)
View gist:1133904
console.log(a + b + c);
console.log(a(+b + c));
@majek
majek / proxy.py
Created Jan 23, 2012
Python asyncore based tcp proxy
View proxy.py
import asyncore
import errno
import os
import socket
import logging
import threading
log = logging.getLogger('tcp_proxy')
_map = {}