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
/* Generated by Continuation.js v0.0.5 */ | |
(function () { | |
var async, slice$, result; | |
slice$ = [].slice; | |
async = function () { | |
var delay, sum, amap, afilter; | |
delay = function (fn) { | |
var i$, args, cb, wrapper; | |
args = 1 < (i$ = arguments.length - 1) ? slice$.call(arguments, 1, i$) : (i$ = 1, []), cb = arguments[i$]; | |
wrapper = function () { |
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
/* Generated by Continuation.js v0.0.5 */ | |
(function () { | |
var identity, sum, transform_array, ranges, i$, len$, range; | |
identity = function (el, callback) { | |
var delayed; | |
delayed = function () { | |
return callback(el); | |
}; | |
return setTimeout(delayed, 100); | |
}; |
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
# library wrapped https://github.com/jgallen23/routie | |
class Router | |
attr_accessor :params | |
def initialize | |
@routes={} | |
@params={} | |
end |
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
class Writer | |
include Celluloid | |
include Celluloid::Logger | |
def write_tweet(tweet) | |
DB[:links].insert(tweet) | |
end | |
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 Container, cnt; | |
Container = (function(){ | |
Container.displayName = 'Container'; | |
var prototype = Container.prototype, constructor = Container; | |
function Container(){ | |
var ref$; | |
ref$ = [{}, {}], this.registry = ref$[0], this.shared = ref$[1]; | |
} | |
prototype.set = function(name, opt, fn){ | |
var registry; |
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
class Timer | |
def initialize(delay=100) | |
@delay=delay | |
end | |
def run | |
end | |
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
rvm use 1.9.3 | |
ruby bn.rb | |
Rehearsal -------------------------------------------- | |
Hash:set 7.970000 0.030000 8.000000 ( 8.049540) | |
----------------------------------- total: 8.000000sec | |
user system total real | |
Hash:set 7.910000 0.030000 7.940000 ( 7.998218) |
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
class ActorCell | |
include Celluloid | |
def render_cell(class_cell,state,args={}) | |
class_cell.new.render_state(state,args) | |
end | |
end |
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
<?php | |
trait MethodsRuntime { | |
public static function defineMethod($name,$fn) { | |
self::$methods[$name]=$fn; | |
} | |
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
<?php | |
class St { | |
public static function pippa($obj) { | |
print_r($obj); | |
} | |
} |