Instantly share code, notes, and snippets.

# Start in a clean, up to date checkout of master
$ git checkout master

# Create v1 branch
$ git checkout -b v1

# Push v1 branch to GH
$ git push -u origin v1
View index.html
<!doctype html>
<link rel="stylesheet" href=""/>
<body class='sans-serif'>
<h1 class='mw6 center'>IPFS Address flavours</h1>
<dl class='lh-copy mw6 center pt4'>
<a href=''>

Keybase proof

I hereby claim:

  • I am olizilla on github.
  • I am olizilla ( on keybase.
  • I have a public key ASDQZFwcbs5BacTGzRYrsIzGbElkL9r2bL2GlTYRvdNNcQo

To claim this, I am signing this object:

View convert-bundles.js
// source json is
"name": "Browser JS",
View convert.js
// `orig.json` is copied from:
const data = require('./orig.json')
const langNames = ['Browser JS', 'Node.js', 'Go']
const res = Object.keys(data).map(categoryName => {
const category = data[categoryName]
const libs = Object.keys(category).map(libName => {
const lib = category[libName]
View objectify.js
* Convert cols and rows into an array of objects.
* Will return array of objects mapping cols to row values.
* Repeated cols are mapped to array values.
* @param {Array} cols The keys
* @param {Array} rows the array of arrays of values
* @return {Array} The rows as objects
* @example
cd /home/cotech/sites
git stash
git pull
rm -rf web/wp
composer update
cd web/app/themes/coop-tech-oowp-theme
composer update
npm install
View queryify.js
function queryify (obj) {
const pairs = Object.keys(obj).map((k) => {
const key = encodeURIComponent(k)
const val = encodeURIComponent(obj[k])
return key + '=' + val
return '?' + pairs.join('&')
View bundle-name.js
> name()
> name()
> name()
function name () {
return faker.helpers.slugify(faker.fake('{{name.firstName}}-{{commerce.color}}-{{hacker.noun}}')).toLowerCase()