View install.md

getting-started

(from guest wireless)

  • install homebrew
    • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    • install cask
      • brew tap caskroom/cask
  • install nvm
    • brew install nvm
View mem.js
import {List} from 'immutable'
export default fn => {
const cache = {}
const cacheKey = List()
return function (...args) {
const hashCode = cacheKey.push(this, ...args).hashCode()
if (!(hashCode in cache)) {
cache[hashCode] = fn.apply(this, args)
}
View 1.js
const getUser = async $id => {
const id = await Promise.resolve($id);
return new Promise((resolve, reject) => {
setTimeout(() => resolve({id}), 100);
});
}
const asyncId = new Promise((resolve, reject) => {
setTimeout(() => resolve(5), 100);
});
View x.js
document.addEventListener('focus', function (e) {console.clear(); console.log(e.target)}, true);
View map.js
function* random(limit = 4) {
let count = 0
while(count < limit) {
yield Math.random();
count++;
}
}
function* map(f, gen){
let next;
View tonicify-lodash.js
(function () {
var textarea;
function createTextArea() {
if (textarea) {
return textarea;
}
textarea = document.createElement('textarea');
textarea.style.position = 'absolute';
textarea.style.left = '-9999px';
textarea.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px';
View .babelrc
{
"stage": 0,
"env": {
"development": {
"plugins": ["react-transform"],
"extra": {
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
View script_jwt.js
#! /usr/bin/env babel-node
import dotenv from 'dotenv';
import program from 'commander';
import jwt from 'jsonwebtoken';
program
.usage('[options]')
.option('-u, --user <user id>', 'user id')
.option('-E, --env [value]', 'environment, defaults to development', 'development')
.parse(process.argv);
View bundle.js
(function(global) {
var defined = {};
// indexOf polyfill for IE8
var indexOf = Array.prototype.indexOf || function(item) {
for (var i = 0, l = this.length; i < l; i++)
if (this[i] === item)
return i;
return -1;
View keybase.md

Keybase proof

I hereby claim:

  • I am autosponge on github.
  • I am autosponge (https://keybase.io/autosponge) on keybase.
  • I have a public key whose fingerprint is 965C 5A63 1C5E 1BB8 D76C 252A DD8A 0FF0 AA8D 9752

To claim this, I am signing this object: