Warning: those are personal not, can't guarantee they are correct!
alias kd="kubectl --namespace=deis"
Table of Contents
test12345 |
const debug = initDebug('generic-pool') | |
const removeResource = (arr, resource) => { | |
const index = arr.findIndex((ele) => ele.resource === resource) | |
return arr.splice(index, 1)[0] | |
} | |
/** | |
* getResource: promise return function, called on acquire | |
* max (optional): total maximum resources in pool |
/** | |
* This module is used to implement server side rendering | |
* with async http requests | |
*/ | |
import ReactDOM from 'react-dom/server' | |
// TODO | |
// export default waitKey = '@@wait' |
#!/bin/bash | |
# | |
# This script will mount /Users in the boot2docker VM using NFS (instead of the | |
# default vboxsf). It's probably not a good idea to run it while there are | |
# Docker containers running in boot2docker. | |
# | |
# Usage: sudo ./boot2docker-use-nfs.sh | |
# |
#!/bin/bash | |
# | |
# This script will mount /Users in the boot2docker VM using NFS (instead of the | |
# default vboxsf). It's probably not a good idea to run it while there are | |
# Docker containers running in boot2docker. | |
# | |
# Usage: sudo ./boot2docker-use-nfs.sh | |
# |
"" | |
"" Gist | |
"" | |
let g:gist_clip_command = 'pbcopy' |
# Testing | |
Testing vim gist! | |
some more | |
text | |
here |
data Tree = Node Int [Tree] | Leaf Int deriving Show | |
add :: Tree -> Int | |
add (Node i []) = i | |
add (Leaf i) = i | |
add (Node i trees) = i + sum (map add trees) | |
var _ = require('underscore'), | |
inflection = require('inflection'), | |
path = require('path'); | |
function join (arr) { | |
return path.join.apply(null, arr); | |
} | |
function map (app, context) { | |
context = _.extend({ |