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
#!/bin/bash | |
NODE_VERSION=0.3.1 | |
NODE_FILE=node-v$NODE_VERSION | |
MY_USER=anatoliy | |
REDIS_VERSION=2.0.3 | |
apt-get update | |
apt-get install -y build-essential git-core nginx libssl-dev pkg-config | |
wget http://nodejs.org/dist/$NODE_FILE.tar.gz |
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 group_name = false, EXT_EXP; | |
function it(should, test_case) { | |
check_external_exports(); | |
if (group_name) { | |
EXT_EXP[group_name][should] = test_case; | |
} else { | |
EXT_EXP[should] = test_case; | |
} | |
} |
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
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
load 'config/deploy' |
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 Module = require('module'); | |
var vm = require('vm'); | |
var path = require('path'); | |
var filename = process.cwd() + '/lib/eval.js'; | |
var mod = new Module(filename); | |
var context = { | |
module: mod, | |
__filename: filename, |
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
app.use(function blackoutMiddleware(req, res) { | |
// obtain static html here: http://www.zachstronaut.com/lab/text-shadow-box/stop-sopa.html | |
// or here: https://raw.github.com/zachstronaut/stop-sopa/master/index.html | |
fs.readFile('./public/stopSOPA.html', function (err, file) { | |
res.send(file.toString(), 503); | |
}); | |
}); |
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
exports.init = function () { | |
railway.tools.database = function db() { | |
var action = process.argv[3]; | |
switch (action) { | |
case 'migrate': | |
case 'update': | |
perform(action, process.exit); | |
break; | |
default: | |
console.log('Unknown action', action); |
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 express = require('express'); | |
var sys = require('sys'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY"; | |
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET"; | |
function consumer() { |
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 score = 0; | |
var started = 0; | |
var http = require('http'); | |
require('./server'); | |
function request(params, callback) { | |
var req = new http.IncomingMessage; | |
req.headers = {host: params.host}; | |
req.url = params.path; |
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 limit = 10; | |
var success = 0; | |
var Schema = require('./').Schema; | |
var AC = require('./').AbstractClass; | |
var s = new Schema('redis2', {}); | |
var util = require('util'); | |
s.setMaxListeners(100); | |
var Model = s.define('Model', { |
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
project: compound | |
commits: 735 | |
files : 105 | |
authors: | |
594 Anatoliy Chakkaev 80.8% | |
41 Sascha Gehlich 5.6% | |
24 1602 3.3% | |
11 Uli 1.5% | |
10 Taliesin Sisson 1.4% | |
6 Dale Tan 0.8% |
OlderNewer