Skip to content

Instantly share code, notes, and snippets.

Oli Evans olizilla

View GitHub Profile
@olizilla
olizilla / bundle-name.js
Created Nov 16, 2015
Make better bundle names
View bundle-name.js
/*
> 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()
View aws-cor.xml
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
</CORSRule>
</CORSConfiguration>
@olizilla
olizilla / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@olizilla
olizilla / README.md
Last active Jan 10, 2016
Notes from SquatConf 2014. Typed quickly, all concepts may be corrupted, but the gist is there.
View README.md

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

View things.html
<head>
<title>selector</title>
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> hello}}
</body>
@olizilla
olizilla / meteor-account-verify.js
Created Aug 19, 2014
Only allow users on a given email domain to log in to your meteor app.
View meteor-account-verify.js
/*
Only allow users with a verified email address on a pre-verified domain to log in.
We're getting people to authenticate and only authorising those that have an email we recognise.
Assumes a Meteor.settings like:
{ adminDomains: ['tableflip.io', 'meteor.com'] }
...and meteor-developer accounts, but other login mechanisms (email, twitter) would work too.
*/
View jsbin.jayap.css
html,body,#objects {
width: 100%; height: 100%
}
body{
background:white;
}
@olizilla
olizilla / lxjs-and-you.md
Last active Aug 29, 2015
LXJS is made with <3.
View lxjs-and-you.md

LXJS and DRIIFT

It's often said:

"LXJS is made with love".

It's true. Love, and a huge amount of work.

Lot's of awesome happens at LXJS.

View nodebots-flag-notes.txt
head
68 x 36.5 cm
eyes
12cm diameter
- 13cm in from left x 9.5 down from top.
neck 1
47 x 4.7cm
You can’t perform that action at this time.