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
### Keybase proof | |
I hereby claim: | |
* I am elia on github. | |
* I am elia (https://keybase.io/elia) on keybase. | |
* I have a public key whose fingerprint is B352 58F5 9ED3 3447 FEF8 785E D1AA 5EE1 E75F 4C5E | |
To claim this, I am signing this object: |
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
(function(undefined) { | |
// The Opal object that is exposed globally | |
var Opal = this.Opal = {}; | |
// The actual class for BasicObject | |
var RubyBasicObject; | |
// The actual Object class | |
var RubyObject; |
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 Opal 0.6.2 */ | |
(function($opal) { | |
var self = $opal.top, $scope = $opal, nil = $opal.nil, $breaker = $opal.breaker, $slice = $opal.slice, $module = $opal.module, $range = $opal.range, $hash2 = $opal.hash2, $klass = $opal.klass, $gvars = $opal.gvars; | |
$opal.add_stubs(['$try_convert', '$native?', '$respond_to?', '$to_n', '$raise', '$inspect', '$Native', '$end_with?', '$define_method', '$[]', '$convert', '$call', '$to_proc', '$new', '$each', '$native_reader', '$native_writer', '$extend', '$to_a', '$to_ary', '$include', '$method_missing', '$bind', '$instance_method', '$[]=', '$slice', '$-', '$length', '$enum_for', '$===', '$>=', '$<<', '$==', '$instance_variable_set', '$members', '$each_with_index', '$each_pair', '$name']); | |
(function($base) { | |
var self = $module($base, 'Native'); | |
var def = self._proto, $scope = self._scope, TMP_1; |
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
require 'opal-jquery' | |
class View | |
def self.selector= selector | |
@selector = selector | |
end | |
def self.selector | |
@selector | |
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
------> Updating align... | |
Already up-to-date. | |
------> Updating avian-missing... | |
Already up-to-date. | |
------> Updating base16-themes... | |
Already up-to-date. | |
------> Updating bundler... |
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
require 'native' | |
module JSONParse | |
def self.parse(string) | |
%x{ | |
var parsed; | |
try { | |
parsed = json_parse(string) | |
} catch(error) { | |
#{raise error.inspect} |
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
require 'opal' | |
Opal::BuilderProcessors.class_eval do | |
class SprocketsProcessor < self::JsProcessor | |
def self.match?(*) | |
true | |
end | |
def source | |
compiled.to_s + mark_as_required(@filename) |
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
require 'react' | |
React = Native(`React`) | |
class DOM2React | |
def initialize(element) | |
@element = element | |
end | |
def virtual_dom | |
@virtual_dom ||= parse_element(`#@element[0]`) |
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
<link data-turbolinks-track="true" href="/assets_dev/inner/application-6bacfa8634a16dbfc81da3e85a470059.css?body=1" media="all" rel="stylesheet" /> | |
<script data-turbolinks-track="true" src="/assets_dev/jquery-5c8e9a5f2706a5ae36c57c9b8b1693b8.js?body=1"></script> | |
<script data-turbolinks-track="true" src="/assets_dev/jquery_ujs-8163409ac89d9587bb33a62f6f74d283.js?body=1"></script> | |
<script data-turbolinks-track="true" src="/assets_dev/jquery.validate/jquery.validate.min-2d81074928b8de12627110241d1e7b82.js?body=1"></script> | |
<script data-turbolinks-track="true" src="/assets_dev/inner/jquery.custom-scrollbar-4b3108a76806c963afb395dddf95ebc7.js?body=1"></script> | |
<script data-turbolinks-track="true" src="/assets_dev/turbolinks-f87b3583ca50adb0488b031297f5580d.js?body=1"></script> | |
<script data-turbolinks-track="true" src="/assets_dev/inner/velocity-a200cc46d3ab9e883fa5ffee35d3a887.js?body=1"></script> | |
<script data-turbolinks-track="true" src="/assets_dev/corelib/runtime-eb08e04f93014d6f |
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
p = console?.log | |
# Prepend module "mod" to the class "cla" | |
prepend_module = (cla, mod)-> | |
icla = dup_methods(mod.prototype) | |
icla.__proto__ = cla.pre.__proto__ | |
cla.pre.__proto__ = icla | |
cla | |
# Include module "mod" into the class "cla" |
OlderNewer