This file contains hidden or 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
<div class="iframe-container"> | |
<iframe src="//glueboss.herokuapp.com/#/" width="1200" height="600" frameborder="0"></iframe> | |
</div> | |
<style> | |
.iframe-container { | |
position: relative; | |
padding-bottom: 75%; | |
height: 0; | |
overflow: hidden; | |
} |
This file contains hidden or 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
@-webkit-keyframes spaceboots { | |
0% { -webkit-transform: translate(2px, 1px) rotate(0deg); } | |
10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); } | |
20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); } | |
30% { -webkit-transform: translate(0px, 2px) rotate(0deg); } | |
40% { -webkit-transform: translate(1px, -1px) rotate(1deg); } | |
50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); } | |
60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); } | |
70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); } | |
80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); } |
This file contains hidden or 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
function Car() {} | |
var myCar = new Car; | |
Car.prototype.tickets = 0; | |
Car.prototype.incrementTickets = function() { | |
this.tickets++; | |
return this.tickets; | |
} |
This file contains hidden or 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
function myCar() {} // create a new car function object | |
myCar.driverCount = 0; // add a property to keep track of how many drivers are in myCar | |
myCar.incrementDriverCount = function() { | |
// increment the driver count of myCar by 1 | |
myCar.driverCount++; | |
return myCar.driverCount; // return the driverCount of myCar for convenience | |
}; |
This file contains hidden or 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
function Car() { // constructor | |
this.driverCount = 0; // this refers to the newly created object | |
} | |
Car.prototype.incrementDriverCount = function() { | |
// increments the driverCount of the instance of the new object invoking this method | |
this.driverCount++; // this still refers to the object who is invoking this function | |
return this.driverCount; | |
}; |
This file contains hidden or 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
// <script type="text/javascript"> // remove the first two backslashes if pasting this into html | |
$(document).ready(function() { // document ready function | |
function loadScreenSafty() { | |
// Removes the loading class incase the library fails | |
var MILLISECONDS_FOR_LOAD_SCREEN_TO_FAIL = 5000; // change this to change delay time | |
function disableLoadScreens() { |
This file contains hidden or 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 csv | |
import json | |
import sys | |
def main(argv): | |
''' | |
usage: | |
$ python update_json.py <glueboss-data.csv> <glueboss-data.json> | |
''' |
This file contains hidden or 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
/* | |
* ReducerTestSkeleton | |
* Author: Will Farley <@goldhand> | |
* Skeleton for writing simple reducer tests. | |
* takes a reducer and expects it to return stateAfter when invoked with stateBefore and action. | |
* | |
*/ | |
// Example: = | |
// const dummyTest = () => reducerTestSkeleton( | |
// {counter: 1}, |
This file contains hidden or 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 React from 'react'; | |
const {PropTypes} = React; | |
const loaderStyles = { | |
position: 'fixed', | |
top: 0, | |
left: 0, | |
width: '100%', |
This file contains hidden or 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
Array.from(Array(5).keys()); | |
// -> [0, 1, 2, 3, 4] | |
// Array(5) | |
// -> [ , , , , ] | |
// the values are empty but the keys will increment so we create another array from this array's keys. |