This file contains hidden or 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
{} |
This file contains hidden or 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
cd `dirname $0` | |
[[ ! -l .bashrc ]] && ln -s _bashrc ~/.bashrc | |
... etc ... |
This file contains hidden or 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
it('for intlMessage', function () { | |
var tmpl = '{@intl formats=intl.formats}{@intlMessage _msg=MSG product=PRODUCT price=PRICE deadline=DEADLINE timeZone=TZ/}{/intl}', | |
ctx = { | |
MSG: '{product} cost {price, usd} (or {price, eur}) if ordered by {deadline, date, medium}', | |
intl: { | |
formats: { | |
eur: function(val, locale, options) { | |
return new intl.NumberFormat(locale, { | |
style: 'cur |
This file contains hidden or 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
#include <Arduino.h> | |
#include <stddef.h> | |
#define PAD0 | |
#define PAD1 char pad0; | |
#define PAD2 char pad0; char pad1; | |
#define PAD4 char pad0; char pad1; char pad2; char pad3; | |
#define PAD8 char pad0; char pad1; char pad2; char pad3; char pad4; char pad5; char pad6; char pad7; |
This file contains hidden or 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 (root, factory) { | |
var MessageFormatter = factory(); | |
// register in -all- the module systems (at once) | |
if (typeof define === 'function' && define.amd) { | |
defined('IntlMessageFormatter', MessageFormatter); | |
} | |
if (typeof exports === 'object') { | |
module.exports = MessageFormatter; | |
} | |
if (root) { |
This file contains hidden or 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 microtime = require('microtime'), | |
i, iterations = 1000000, | |
t0, t1, base, | |
runFoo, | |
whatever = 1000000000000000, | |
obj = { | |
foo: function () { | |
whatever += 1; | |
}, | |
run: function () { |
This file contains hidden or 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
#!/usr/bin/env perl | |
# Show a nice table representing the differences between | |
# the local repo and remotes. | |
# | |
# It is assumed that there is a direct relationship between | |
# the local branch names and remote branch names. | |
# | |
# TODO | |
# * marker for current branch | |
# * marker if current branch is modified |