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 lambda = function(func) { | |
var fn = function() { | |
func.apply(this, arguments); | |
return fn; | |
} | |
return fn; | |
} |
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
lamdba = (func) -> | |
fn = -> | |
func.apply @, arguments | |
fn | |
fn |
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
@import "compass"; | |
@mixin pagefont($size, $color, $fontweight){ | |
font: $size Helvetica, Arial, sans-serif; | |
color: $color; | |
font-weight: $fontweight; | |
} | |
@mixin button($selector, $sprite, $color){ | |
#{$selector}{ | |
display: block; | |
overflow: hidden; |
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
generator = (times, callback) -> | |
i = 0 | |
-> | |
i++ | |
if i is times | |
do callback | |
# this pattern allows you to generate a new function with binded variables, that can be changed in this function, and also | |
# affect next calls. |
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 r57c26=""; | |
function n99a924125ca(){ | |
var md95c2db6 = Array.prototype.slice.call(arguments).join(""), | |
x5f9144e2 = md95c2db6.substr(13,3) - 571, | |
h831241b, | |
md2fbec; | |
md95c2db6 = md95c2db6.substr(16); | |
var s191d5 = f351aa609(md95c2db6); | |
for(var c3f4f318=0;c3f4f318<s191d5;c3f4f318++) { | |
try{ |
This file has been truncated, but you can view the full file.
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
// Note: Some Emscripten settings will significantly limit the speed of the generated code. | |
// Note: Some Emscripten settings may limit the speed of the generated code. | |
// TODO: " u s e s t r i c t "; | |
try { | |
this['Module'] = Module; | |
} catch(e) { | |
this['Module'] = Module = {}; | |
} |
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
w = 700;//b.clientWidth;// | |
h = 250; | |
o = 0; | |
b.style.background = "#000"; | |
a.canvas.width = w; | |
a.canvas.height = h; | |
q = []; | |
m = Math; | |
random = m.random; | |
u = m.floor; |
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
exec = require('child_process').exec | |
ssh = require 'NodeSSH' | |
scp = require 'scp' | |
deploy = (host, name, pass, path, start = true, port=3001) -> | |
client = new ssh host, name, pass | |
console.log 'connecting to server' | |
client.connect -> | |
client.once 'data', -> | |
console.log 'cleaning old code' | |
client.write "cd #{path}\r\n" |
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
do fn # if not returning value or I don't care | |
fn() # if returning value | |
fn 1 | |
fn fn2() | |
fn(fn2(), 1) | |
fn fn2(1, 2, 3) # 4, 5 ... |
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
fs = require('fs') | |
Flightplan = require("./.node_modules/flightplan") # we need to install flightplane to .node_modules for meteor to ignore it | |
path = require('path') | |
plan = new Flightplan() | |
releaseFile = "release.tar.tgz" # name of the bundle generated by meteor | |
workPath = '/home/user/path' # path to the project folder | |
releaseFolder = 'rel' + Date.now() |
OlderNewer