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
class Box extends React.Component { | |
componentWillEnter (callback) { | |
const el = this.container; | |
TweenMax.fromTo(el, 0.3, {y: 100, opacity: 0}, {y: 0, opacity: 1, onComplete: callback}); | |
} | |
componentWillLeave (callback) { | |
const el = this.container; | |
TweenMax.fromTo(el, 0.3, {y: 0, opacity: 1}, {y: -100, opacity: 0, onComplete: callback}); | |
} |
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'; | |
import { render } from 'react-dom'; | |
class Page extends React.Component { | |
state = { | |
shouldShowBox: true | |
}; | |
toggleBox = () => { |
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
// ==UserScript== | |
// @name Monster Minigame Auto-script | |
// @namespace https://github.com/wchill/steamSummerMinigame | |
// @description A script that runs the Steam Monster Minigame for you. Modified from mouseas's original version to include autoclick. | |
// @version 1.0 | |
// @match http://steamcommunity.com/minigame/towerattack* | |
// @updateURL https://raw.githubusercontent.com/wchill/steamSummerMinigame/master/autoPlay.js | |
// @downloadURL https://raw.githubusercontent.com/wchill/steamSummerMinigame/master/autoPlay.js | |
// ==/UserScript== |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/** | |
* You might want to change baseUrl to something else depending on where your require.js is. | |
* If you want to do conditional loading of Zepto, take a look at the discussion at | |
* https://groups.google.com/forum/?fromgroups=#!topic/requirejs/68oIXcyou48 | |
* Had to add explicit paths for each plugin, otherwise `require` tries to look for it in | |
* /foundation/foundation/foundation.alerts.js | |
*/ | |
require.config({ | |
baseUrl: "js", |