Skip to content

Instantly share code, notes, and snippets.

View olizilla's full-sized avatar

Oli Evans olizilla

View GitHub Profile
@olizilla
olizilla / meteor-cordova.md
Created September 18, 2014 18:01
Meteor Cordova
<head>
<title>selector</title>
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> hello}}
</body>
@olizilla
olizilla / README.md
Last active January 10, 2016 19:52
Notes from SquatConf 2014. Typed quickly, all concepts may be corrupted, but the gist is there.

Notes From SquatConf 2014

@dhigit9 - UDT: an application leyer TCP you can tune.

Replace TCP, application layer comm framework.

instantwebp2p - node fork that supports UDT. congestion control - optimal usage of bandwidth flow control - avoid overwhelming the receiver. window based - no packets in flight

@olizilla
olizilla / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
</CORSRule>
</CORSConfiguration>
@olizilla
olizilla / bundle-name.js
Created November 16, 2015 10:39
Make better bundle names
/*
> 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()
@olizilla
olizilla / meteor-news-2015-11-19.md
Last active November 19, 2015 10:16
Meteor News 2015-11-19
@olizilla
olizilla / queryify.js
Created December 21, 2016 11:29
Minimal object to query string function
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('&')
}
#!/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
/**
* 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