I hereby claim:
- I am longlho on github.
- I am lh (https://keybase.io/lh) on keybase.
- I have a public key whose fingerprint is 3E71 7EF0 92AB 94DB 2713 0E79 4F91 72E2 70C1 3BE8
To claim this, I am signing this object:
#!/bin/bash | |
# node.js using PPA (for statsd) | |
sudo apt-get install python-software-properties | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
# Install git to get statsd | |
sudo apt-get install git |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: gunicorn-graphite | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Should-Start: $nginx | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: gunicorn + nginx ubuntu init script | |
# Description: gunicorn + nginx ubuntu init script |
## {{{ http://code.activestate.com/recipes/576694/ (r9) | |
import collections | |
class OrderedSet(collections.MutableSet): | |
def __init__(self, iterable=None): | |
self.end = end = [] | |
end += [None, end, end] # sentinel node for doubly linked list | |
self.map = {} # key --> [key, prev, next] | |
if iterable is not None: |
I hereby claim:
To claim this, I am signing this object:
(function () { | |
if (!document.getElementsByClassName) { | |
window.Element.prototype.getElementsByClassName = document.constructor.prototype.getElementsByClassName = function (classNames) { | |
classNames || (classNames = '*'); | |
classNames = classNames.split(' ').join('.'); | |
if (classNames !== '*') { | |
classNames = '.' + classNames; | |
} | |
(function () { | |
var res = window.gamePage.resPool.resources; | |
function findRes (type) { | |
return res.filter(function (r) { | |
return r.name === type; | |
})[0]; | |
} | |
function setRes (type, amt) { |
mr Marathi | |
bs Bosnian | |
ee_TG Ewe (Togo) | |
ms Malay | |
kam_KE Kamba (Kenya) | |
mt Maltese | |
ha Hausa | |
es_HN Spanish (Honduras) | |
ml_IN Malayalam (India) | |
ro_MD Romanian (Moldova) |
// lib.js | |
import formatRelative from 'intl-relativeformat' | |
export function foo () { | |
formatRelative() | |
} | |
export function bar () {} | |
// main.js |
import * as postcss from 'postcss' | |
import { basename, resolve, join } from 'path' | |
import { outputFileSync } from 'fs-extra' | |
import { sync as globSync } from 'glob' | |
import { readFileSync } from 'fs' | |
import { watch as chokidarWatch } from 'chokidar' | |
const { NODE_ENV } = process.env | |
// Change CSS glob pattern |
import * as styles from 'foo.css' | |
type CssMap = typeof styles | |
export const legacyCss: CssMap = { | |
container: 'mc-foo', | |
content: 'mc-content' | |
} | |
export interface Props { | |
css: CssMap |