Skip to content

Instantly share code, notes, and snippets.

@ismell
ismell / Dockerfile
Created July 10, 2013 14:38
Installing ruby into a Docker image
FROM cws/base:2013-07-01
MAINTAINER Raul E. Rangel "Raul.Rangel@disney.com"
# Download the ruby-build code
RUN \curl -L https://github.com/sstephenson/ruby-build/archive/v20130518.tar.gz | tar -zxvf - -C /tmp/
# Install ruby-build
RUN cd /tmp/ruby-build-* && ./install.sh && cd / && rm -rfv /tmp/ruby-build-master
# Install ruby
@ismell
ismell / JsonSoyUtils.java
Created September 11, 2012 15:18
SoyToJson
package helloworld;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.charset.Charset;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
@ismell
ismell / events.js
Created July 31, 2012 19:33 — forked from Takazudo/events.js
lazy event implementation
/* eventmodule */
/* Events */
var Events = {
on: function(events, callback) {
if(!this._observer) {
this._observer = $({});
}
this._observer.bind(events, callback);
@ismell
ismell / SoyUtils.java
Created January 13, 2012 21:35
RubyObject to SoyData
package com.test;
import org.jruby.RubyHash.Visitor;
import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.RubyArray;
import org.jruby.RubyBignum;
import org.jruby.RubyBoolean;
import org.jruby.RubyFixnum;
import org.jruby.RubyFloat;
import org.jruby.RubyHash;
@ismell
ismell / gallery when.js
Created November 1, 2011 19:45
When example