A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| loadPolyfills() | |
| .then(() => /* Render React application now that your Polyfills are ready */) | |
| /** | |
| * Do feature detection, to figure out which polyfills needs to be imported. | |
| **/ | |
| function loadPolyfills() { | |
| const polyfills = [] | |
| if (!supportsIntersectionObserver()) { |
To remove a submodule you need to:
| import { sample } from 'lodash'; | |
| import React from 'react'; | |
| import cookie from 'cookie'; | |
| import Layout from '../components/layout'; | |
| import HomeV1 from '../components/scenes/home/v1'; | |
| import HomeV2 from '../components/scenes/home/v2'; | |
| const EXPERIMENT_OPTIONS = { | |
| v1: HomeV1, | |
| v2: HomeV2, |