View client.go
package api
import (
"encoding/json"
"golang.org/x/net/context"
"golang.org/x/net/context/ctxhttp"
)
type Client {
View foobar.ex
defmodule FooBar do
def update_header(headers, key, fun) do
if List.keymember?(headers, key, 0) do
value = fun.(headers)
List.keystore(headers, key, 0, {key, value})
else
value = fun.(nil)
List.keystore(headers, key, 0, {key, value})
end
end
View 01-underground.md

Single word London Underground stations

  • Bermondsey
  • Upney
  • Neasden
  • Croxley
  • Hainault
  • Gunnersbury
  • Greenford
  • Leytonstone
  • Chigwell
View 01-sf-neighborhoods.md

San Francisco Neighborhoods

  • Alamo Square
  • Anza Vista
  • Ashbury Heights
  • Balboa Park
  • Balboa Terrace
  • Bayview
  • Belden Place
  • Bernal Heights
  • Buena Vista
View 1200-test.js
var browserify = require('./');
var through = require('through2');
var b = browserify('./test/entry/main');
var spawn = require('child_process').spawn;
var wrap = b.pipeline.get('wrap');
var n = spawn('node');
var out = through();
View build.js
var Browserify = require('browserify');
var Readable = require('stream').Readable;
function stringStream(content) {
var s = new Readable();
s.push(content);
s.push(null);
return s;
}
View closure.swift
// anonymous function
numbers.map({
(number: Int) -> Int in
let result = 3 * number
return result
})
// implicit return for single statements
numbers.map({ number in 3 * number })
View loader.js
function encodeData(data) {
var result = [];
forEach(data, function(value, key) {
if (isArray(value)) {
forEach(value, function(url) {
result.push(encodeURIComponent(key) + '[]=' + encodeURIComponent(url));
});
} else {
result.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
View keybase.md

Keybase proof

I hereby claim:

  • I am terinjokes on github.
  • I am terin (https://keybase.io/terin) on keybase.
  • I have a public key whose fingerprint is B8DF 1BEF C55C 6A5A 6412 DF5D 5734 824F 6EE3 C823

To claim this, I am signing this object:

View string2Stream.js
var Readable = require('stream').Readable
module.exports = function string2Stream(string) {
var stream = new Readbale();
stream._read = function() {
//todo: you might want to return data based on the 'size' parameter.
stream.push(string);
string = null;
}