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
import src from './src'; | |
console.log(src({ apple: 'hi' })); |
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
'use strict'; | |
const lodash = require('lodash'); | |
function getObj() { | |
return { | |
prop1: { | |
0: { }, | |
1: null, | |
2: { |
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
/** | |
* Don't put your vars in the global scope in production code, | |
* much less these tersely-named ones. | |
*/ | |
var end = new Date('July 1, 2016 12:00:00'); | |
var el; | |
// Seconds/minute, etc (in miliseconds) |
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
// From http://robots.thoughtbot.com/an-introduction-to-webgl | |
var app = function () { | |
var canvas = document.getElementById('canvas'), | |
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); | |
// Create elements on the page which contain your shaders. | |
// I like using script tags with a different type attribute, like: | |
// `<script id="vertex-shader" type="x-vertex/x-shader">` | |
// You could also just put the shaders inline, but I hate escaping line breaks. | |
var shaders = { |