I hereby claim:
- I am ecin on github.
- I am ecin (https://keybase.io/ecin) on keybase.
- I have a public key ASDGHjmcEvGxyxgV1G1LxD5KhYpkI1iUaWMcjA__WSyvJAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
FROM centos | |
MAINTAINER ecin <[email protected]> | |
RUN yum -y update | |
RUN yum -y groupinstall "Development Tools" | |
# Install Node | |
RUN curl -LO https://github.com/joyent/node/archive/v0.10.25.zip | |
RUN unzip v0.10.25.zip | |
RUN cd node-0.10.25 && ./configure && make install |
#!/bin/sh | |
# | |
# Sign the just-made commit with a globally configured GPG key. | |
git commit --amend --allow-empty --gpg-sign=`git config user.signingkey` --reuse-message=HEAD |
class OHash < Hash | |
def initialize(key_values) | |
key_values.each { |key, value| self[key] = value } | |
end | |
def method_missing(key) | |
if self.has_key?(key) | |
return self[key] | |
else | |
raise NoMethodError |
# config/initializers/extensions/action_dispatch/routing/mapper.rb | |
module ActionDispatch | |
module Routing | |
class Mapper | |
module Resources | |
alias_method :old_add_route, :add_route | |
def add_route(action, options) | |
if @scope[:throttle] | |
throttlers = @scope.delete(:throttle) |
package main | |
/* | |
Ping vs Pong: A Gladiatorial Match | |
Two goroutines enter, only one leaves... | |
*/ | |
/* | |
#cgo LDFLAGS: -lprobes -L/usr/local/lib | |
#include "probes.h" |
http://cl.ly/1L1H1s1T1b2Y2x3v2G41 |
console.log("got here"); | |
var page = require('webpage').create(); | |
page.onConsoleMessage = function(msg) { | |
console.log(msg); | |
}; | |
page.open("http://facebook.com", function(status) { | |
if ( status === "success" ) { |
<script src="http://copypastel.github.com/github-pinboard/lib/githubPinboard.js"></script> |
require 'goliath' | |
require 'rack/lobster' | |
class Lobster < Goliath::API | |
map '/' do | |
run Rack::Lobster.new | |
end | |
end |