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
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 |
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
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; |
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
/* eventmodule */ | |
/* Events */ | |
var Events = { | |
on: function(events, callback) { | |
if(!this._observer) { | |
this._observer = $({}); | |
} | |
this._observer.bind(events, callback); |
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
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; |
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
{ | |
get_next: function(on_success, on_error, offset) { // Need to support on_success and on_error for legacy | |
var deferred = when.defer(); | |
deferred.then(on_success, on_error); | |
if (this.can_get_data()) { | |
this.get_data({ | |
offset: offset | |
}).then(function(e) { // Is this how I go about chaining promises ? | |
deferred.resolve(e); |
NewerOlder