Skip to content

Instantly share code, notes, and snippets.

View iest's full-sized avatar

Iestyn Williams iest

View GitHub Profile
export function AnimateMixinFactory(stateName) {
var animateMixin = {
getInitialState() {
return {
[stateName]: {}
}
}
};
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@iest
iest / jquery to vanilla.md
Last active December 14, 2015 05:58 — forked from liamcurry/gist:2597326
Snippets to help the transition from jQuery to vanilla. Vanilla is generally more verbose than jQuery, but is up to a million billion faster.

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})