Skip to content

Instantly share code, notes, and snippets.

@eskim
eskim / README.md
Created October 16, 2012 13:20 — forked from mbostock/.block
Epicyclic Gearing

From Wikipedia: Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Built with D3.js.

@eskim
eskim / client.js
Created August 21, 2012 12:58 — forked from cypres/client.js
node.js thrift exception test
var thrift = require('thrift');
var test = require('./gen-nodejs/test.js'),
ttypes = require('./gen-nodejs/test_types');
var connection = thrift.createConnection('localhost', 9090),
client = thrift.createClient(test, connection);
connection.on('error', function(err) {
console.error(err);
@eskim
eskim / redis.markdown
Created August 18, 2012 14:03 — forked from bdotdub/redis.markdown
Running redis using upstart on Ubuntu

Running redis using upstart on Ubuntu

I've been trying to understand how to setup systems from the ground up on Ubuntu. I just installed redis onto the box and here's how I did it and some things to look out for.

To install:

@eskim
eskim / deploy.rb
Created August 15, 2012 07:55 — forked from jeroenr/deploy.rb
Deploying play2 application with capistrano
set :deploy_to, "/usr/share/my-app"
namespace :play do
task :setup do
run "mkdir -p #{deploy_to}"
upload "my-app/start.sh", "#{deploy_to}/start.sh", :mode => '755', :via => :scp
upload "my-app/stop.sh", "#{deploy_to}/stop.sh", :mode => '755', :via => :scp
end
task :deploy do
@eskim
eskim / config.rb
Created August 15, 2012 07:54 — forked from jeroenr/config.rb
Capistrano deployment script for play2 application
namespace :deploy do
task :restart do
stop
sleep 1
start
end
task :start do
targets = find_servers_for_task(current_task)