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
unbindall | |
r_smp 1 | |
// Punkbuster | |
seta cl_punkbuster "1" | |
seta pb_system "1" | |
seta pb_security "0" | |
seta pb_sleep "500" | |
seta pb_cl_enable "1" |
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
Request.checkSomething = new Class({ | |
// override Request.JSON and overload results into storage. | |
Extends: Request.JSON, | |
Implements: Storage, | |
options: { | |
secure: true | |
}, |
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
test := cloudpipes-site/src/test | |
source := cloudpipes-site/src/main | |
target := cloudpipes-site/target/cloudpipes-site-1.0-SNAPSHOT/static | |
targettpl := cloudpipes-site/target/cloudpipes-site-1.0-SNAPSHOT/resources/templates/ | |
install: | |
npm link . | |
@command -v casperjs >/dev/null 2>&1 || { echo 'Missing casperjs'; brew install casperjs; } | |
less: |
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 pop = new new Class({ | |
Implements: [Options, Events], | |
options: { | |
// onBlock: Function.from(), | |
// onClose: Function.from(), | |
// onOpen: Function.from(), | |
width: 1024, | |
height: 768, |
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
// Performance optimization: http://jsperf.com/apply-vs-call-vs-invoke | |
switch (self ? -1 : args.length) { | |
case 0: return fn(); | |
case 1: return fn(args[0]); | |
case 2: return fn(args[0], args[1]); | |
case 3: return fn(args[0], args[1], args[2]); | |
case 4: return fn(args[0], args[1], args[2], args[3]); | |
case 5: return fn(args[0], args[1], args[2], args[3], args[4]); | |
case 6: return fn(args[0], args[1], args[2], args[3], args[4], args[5]); | |
case 7: return fn(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); |
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
'use strict'; | |
var recess = require('recess'); | |
// need to fix recess. | |
(function(){ | |
var RECESS = recess.Constructor; | |
recess.Constructor.prototype.compile = function(){ | |
var that = this, | |
css; |
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
.foo { | |
background: @red; | |
} |
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
/* Bootstrap */ | |
@import-once 'less/bootstrap/bootstrap'; | |
/* Apps css */ | |
@import-once 'less/currency-pair'; | |
@import-once 'less/blotter'; | |
@import-once 'less/dashboard'; | |
@import-once 'less/login'; | |
/* branding */ | |
@import-once 'less/foo'; | |
/* Desktop specific */ |
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 prime = (function(){ | |
'use strict'; | |
var sFunction = 'function'; | |
var has = function(self, key){ | |
return Object.hasOwnProperty.call(self, key); | |
}; | |
var each = function(object, method, context){ | |
for (var key in object) |
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
define(['require', 'lib/requirejs/require-css/normalize'], function(req, normalize){ | |
// todo: refactor via require('colors') for nodejs; | |
var baseUrl = require.toUrl('.'), | |
greenOn = '\033[32m', | |
greenOff = '\033[39m', | |
redOn = '\033[31m', | |
redOff = greenOff, | |
ok = greenOn + '✔' + greenOff, | |
fail = redOn + '×' + redOff; |