# 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/tachyons.min.css"/> | |
<body class='sans-serif'> | |
<h1 class='mw6 center'>IPFS Address flavours</h1> | |
<dl class='lh-copy mw6 center pt4'> | |
<dt>HTTP-to-IPFS</dt> | |
<dd> | |
<a href='http://ipfs.io/ipfs/QmZyRCtk8MGpuWXn2d1QyTfLWKMTHrT2aHs2vDkfry5zKT'> | |
http://ipfs.io/ipfs/QmHash | |
</a> |
I hereby claim:
- I am olizilla on github.
- I am olizilla (https://keybase.io/olizilla) on keybase.
- I have a public key ASDQZFwcbs5BacTGzRYrsIzGbElkL9r2bL2GlTYRvdNNcQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// source json is | |
// https://raw.githubusercontent.com/tableflip/libp2p-website/963d50ccb4d586857b85b0f2d35b448a065ca2b0/data/bundles.json | |
/* | |
GOAL: | |
```json | |
[ | |
{ | |
"name": "Browser JS", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// `orig.json` is copied from: | |
// https://raw.githubusercontent.com/tableflip/libp2p-website/56ff92f5ac93114ca9e1b4d03d98f509a73bc5b5/data/implementations.json | |
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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('&') | |
} |
Devshop NYC - http://info.meteor.com/blog/made-in-nyc-meteor-devshop-is-coming-to-new-york Organizers: Adrian Lanning, Alim S. Gafar, Christie Ewen, Katie Reed
Meteor 1.2.1 - https://github.com/meteor/meteor/blob/devel/History.md#v121-2015-oct-26
- Moar future js via the
ecmascript
&ecmascript-collections
(https://github.com/meteor/meteor/tree/master/packages/ecmascript)
require("core-js/es6/object");
require("core-js/es6/array");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
> name() | |
'juana-gold-driver' | |
> name() | |
'olaf-tan-panel' | |
> name() | |
'tracey-lavender-microchip' | |
*/ | |
function name () { | |
return faker.helpers.slugify(faker.fake('{{name.firstName}}-{{commerce.color}}-{{hacker.noun}}')).toLowerCase() |