Thunkify rethinkdb
To be used with co and/or koa.
So that we can do something like:
var r = require('rethunkdb') // not a typo, might use other name if too close :)
#!/usr/bin/python | |
"Grabs the current song title and artist name playing on hitz.fm and save it in a playlist log file" | |
import os | |
import re | |
import sys | |
import time | |
import urllib2 | |
from email import utils |
#!/usr/bin/python | |
"Parses a playlist and prints some stats about songs played" | |
import datetime | |
import optfunc # https://github.com/simonw/optfunc/tree | |
import os | |
import re | |
import sys | |
from operator import itemgetter |
#!/usr/bin/env python | |
import optparse | |
import os | |
import sys | |
import unittest | |
test_path = os.path.abspath(os.path.dirname(__file__)) | |
app_path = os.path.abspath(os.path.join(test_path, '..')) | |
sdk_path = os.environ.get('APP_ENGINE_SDK_PATH') |
function p { | |
if [ -z "$1" ]; then | |
echo "Syntax: p NAME" | |
echo " cd to first project matching NAME" | |
else | |
match=$(find ~/projects -type d -name "$1" | line) | |
if [ -n "$match" ]; then | |
cd $match | |
fi | |
fi |
[ | |
"acap", "acap kali", "adakala", "adakalanya", "adalah", "adapun", "adoi", | |
"aduh", "aduhai", "agak", "agaknya", "agar", "ah", "ahai", "ahem", "ai", | |
"aja", "akan", "alah", "alahai", "alamak", "alhasil", "alkisah", "amat", | |
"amboi", "andai", "andai kata", "aneka", "antara", "apa", "apabila", | |
"apakala", "apalagi", "arkian", "atau", "au", "auh", "ayuh", "ayuhai", | |
"bagai", "bagaimana", "bagaimanapun", "bagi", "bahawa", "bahawasanya", | |
"bahkan", "banyak", "barangkali", "beberapa", "belum", "benar", "berapa", | |
"betul", "bila", "bilamana", "boleh", "boleh jadi", "buat", "bukan", | |
"celaka", "cis", "dalam", "dan", "dapat", "dari", "darihal", "daripada", |
module.exports = function (grunt) { | |
var path = require('path'); | |
grunt.initConfig({ | |
pkg : grunt.file.readJSON('package.json') | |
, bower : { | |
all : { | |
dest : 'static' |
Use docker-osx:
docker
script to get any sweet new features.function allcaps (words) { | |
// trying out fat arrows | |
return words.map(w => w.toUpperCase()); | |
} | |
module.exports = allcaps; |
module.exports = function runHook (hook) { | |
const firebase = require('firebase') | |
hook.res.setHeader('Content-Type', 'application/json') | |
hook.res.end(JSON.stringify({ | |
version: firebase.SDK_VERSION | |
})) | |
} |