I hereby claim:
- I am cristobal on github.
- I am cristobal (https://keybase.io/cristobal) on keybase.
- I have a public key ASAs5cvXRdcF-ajmMlIOsVqdbEkEVN0SUSEyZUPhWZ0OAgo
To claim this, I am signing this object:
--[[ | |
LUA variant of the php serialize function | |
Port of http://phpjs.org/functions/unserialize | |
]]-- | |
function serialize (mixed_value) | |
-- body | |
local val, key, okey, | |
ktype, vals, count, _type; | |
ktype = ''; vals = ''; count = 0; |
// @see https://github.com/bjyoungblood/es6-error | |
// @see http://dailyjs.com/2014/01/30/exception-error/ | |
import {map} from 'lodash'; | |
const defineProperty = (obj, prop, value) => { | |
Object.defineProperty(obj, prop, { | |
configurable: true, | |
enumerable: false, | |
value | |
}); |
const reducePromises = (S, x) => | |
S.reduce((f, g) => f.then(g), Promise.resolve(x)); |
I hereby claim:
To claim this, I am signing this object:
Homebrew build logs for mosml on OS X 10.11.3 | |
Build date: 2016-03-19 16:50:37 |
[Desktop Entry] | |
Name=IntelliJ | |
Comment=The Best Java and Polyglot IDE | |
Exec=/home/cristobal/Applications/idea-<version>/bin/idea.sh | |
Icon=/home/cristobal/Applications/idea-<version>/bin/idea.png | |
Terminal=false | |
StartupNotify=true | |
Type=Application | |
Categories=Development;IDE; |
class CustomContainer extends WebMarkupContainer { | |
public CustomContainer(String id) { | |
super(id); | |
} | |
@override | |
public void onBeforeRender() { | |
// Some form do forward message passing for | |
// All Pages/Componets implements IEventSource |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Rather than constraining window size to the maximum size of any client | |
# connected to the *session*, constrain window size to the maximum size of any | |
# client connected to *that window*. Much more reasonable. | |
setw -g aggressive-resize on |
$.fn.visible = function() { | |
return this.map(function () { | |
if (!_.contains(['none', 'hidden'], $(this).css('display'))) { | |
return this; | |
} | |
}) | |
}; |
local function ucs2_encode(str) | |
local cc = {} | |
local bv = {1, 2, 4, 8, 16, 32, 64, 128} | |
local fmt = "%04x" | |
-- bit_set taken from http://ricilake.blogspot.no/2007/10/iterating-bits-in-lua.html | |
local function bit_set(x, p) | |
return x % (p + p) >= p | |
end | |