I hereby claim:
- I am twisol on github.
- I am twisol (https://keybase.io/twisol) on keybase.
- I have a public key ASAiuZlLyg3b9rahqU7mselcb4w2vk93NI2uepV6RiexqAo
To claim this, I am signing this object:
function ( a , { t } ) | |
{// t:#s.name.loc | |
var c = { } , p , v , r , x , s , i = 0 , | |
P = "red0purple0blue0cyan0green0lime0yellow0orange020305070110130170190230290310370410430470530590610670710730790830890970unlock0open0release" . split ( 0 ) , | |
z = "21!|35!|40!|1!|2!|3!|or n|d c| com|k c|color_digit|c002_complement|c003_triad_1|c003_triad_2|!d|t d|pr", | |
Z = z . split ( '|' ) | |
for ( ; v = ( r = t . call ( c ) ) . match ( z ) ; c [ p ] = x , i ++ ) | |
s = Z . indexOf ( v = v [ 0 ] ) , | |
s > 15 ? c . ez_prime = + P [ i % 25 + 8 ] : |
I hereby claim:
To claim this, I am signing this object:
var Nothing = function Nothing() {}; | |
var Just = function Just(x) { this.value = x; }; | |
function runMaybe(f) { | |
var result = f.next(); | |
while (!result.done) { | |
var value = result.value; | |
switch (value.constructor) { | |
case Nothing: |
// data Result e a = Return a | Raise e | |
Result = function() {}; | |
Return = function(value) { this.value = value; }; | |
Raise = function(value) { this.value = value; }; | |
// inheritance | |
Return.prototype = Object.create(Result.prototype); | |
Raise.prototype = Object.create(Result.prototype); | |
// identity functions |
function nextTick(f) { | |
setTimeout(function() { | |
console.log('tick'); | |
f(); | |
}); | |
} | |
// Minimal amount of Promise groundwork necessary for a proof of concept. | |
function Promise(then) { | |
this.then = then; |
var MAX32 = Math.pow(2, 32); | |
// Bit of a misnomer, since it's actually the maximum plus one. | |
var Long = function Long(n) { | |
if (!(this instanceof Long)) | |
return new Long(n); | |
this.set(n); | |
}; |
%% name = Lupin::Parser | |
%% { | |
require 'rubinius/debugger' | |
require 'ast' | |
attr_accessor :ast | |
def process_string_escapes (text) | |
text = text.to_s | |
text.gsub! /\\(\d{1,3}|\D)/m do |
module StringEscaper | |
def process_escapes (str) | |
str.gsub! /\\(u\d{4}|\D)/m do | |
seq = $1 | |
case seq | |
when '/' then "\/" | |
when 'b' then "\b" | |
when 'f' then "\f" | |
when 'n' then "\n" | |
when 'r' then "\r" |
FG: 7 BG: 0 | |
Italic: 0 | |
Underline: 0 | |
Strike: 0 | |
Text: this is | |
FG: 9 BG: 0 | |
Italic: 0 | |
Underline: 0 | |
Strike: 0 |
var sys = require("sys"); | |
var ANSI = (function() { | |
sys.inherits(ANSI, require("events").EventEmitter); | |
function ANSI() { | |
this.state = "plain"; | |
this.reset(); | |
} | |