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
module.exports = React.createClass | |
displayName: 'Switcher' | |
getInitialState: (props) -> | |
props ||= @props | |
checked: props.checked | |
componentWillReceiveProps: (newProps, oldProps) -> | |
@setState @getInitialState(newProps) |
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
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
function createFakeQueries(count, minTime, maxTime) { | |
return Array(count) | |
.fill() | |
.map((_, i) => { | |
const time = getRandomInt(minTime, maxTime); | |
const queryCaller = () => |
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
# Set CLICOLOR if you want Ansi Colors in iTerm2 | |
export CLICOLOR=1 | |
# | |
# # Set colors to match iTerm2 Terminal Colors | |
export TERM=xterm-256color | |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh |
OlderNewer