Skip to content

Instantly share code, notes, and snippets.

var i, x;
i = 10;
for (x = 0; 0 <= i ? x < i : x > i; 0 <= i ? x++ : x--) {
alert(x);
}
i = 10
for x in [0...i]
alert(x)
i = 10
d = [0...i]
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);
[1.3]
[1..3]
[1...3]
[1....3]
fun
fun()
fun 1
fun(1)
fun;
fun();
fun(1);
fun(1);
console.log(a + b + c)
console.log(a +b + c)
console.log(a + b + c);
console.log(a(+b + c));
@majek
majek / proxy.py
Created January 23, 2012 10:55
Python asyncore based tcp proxy
import asyncore
import errno
import os
import socket
import logging
import threading
log = logging.getLogger('tcp_proxy')
_map = {}