- Untap
- Upkeep (taxes/transformations etc.)
- Draw a Card
- Play lands, spells, creatures, etc.)
- Combat
- Opponent Reaction
- Self: Declare attackers
| /** | |
| * This gist was inspired by the video course titled "Building React Applications with Idiomatic Redux" | |
| * available on Egghead.io by the creator of Redux, Dan Abramov. | |
| * | |
| * The purpose of this gist is to demonstrate general purpose reducers that can be used via Redux's combineReducers | |
| * to compose more complex reducers and therefore maximize code reuse. | |
| * | |
| * Feedback is more than welcome! | |
| * | |
| * @author Christoffer Niska <[email protected]> |
| // wrap <Route> and use this everywhere instead | |
| function RouteNest(props){ return ( | |
| <Route exact={props.exact} path={props.path} render={ p => <props.component {...p} children={props.children}/> } /> | |
| )} | |
| export const MainRoutes = props => | |
| <div className='content layout'> | |
| <Route exact path="/" component={Landing}/> |
| const Rx = require('Rx'); | |
| require('babel/register'); | |
| const Observables = require('./observables.es6'); | |
| // Define a very simple, router-like object | |
| class Router { | |
| constructor() { | |
| this.routes = {}; | |
| } |
| import sys | |
| import functools | |
| ''' | |
| Usage: | |
| consider following functions | |
| import stack_trace | |
| def foo(): | |
| pass | |
| def bar(): |
| import { matchPath } from 'react-router'; | |
| class MainRouter extends Component { | |
| static displayName = 'MainRouter'; | |
| static propTypes = { | |
| store: React.PropTypes.object, | |
| component: React.PropTypes.oneOfType([ | |
| React.PropTypes.element, | |
| React.PropTypes.func, | |
| ]) |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| {url:'stun:stun01.sipphone.com'}, | |
| {url:'stun:stun.ekiga.net'}, | |
| {url:'stun:stun.fwdnet.net'}, | |
| {url:'stun:stun.ideasip.com'}, | |
| {url:'stun:stun.iptel.org'}, | |
| {url:'stun:stun.rixtelecom.se'}, | |
| {url:'stun:stun.schlund.de'}, | |
| {url:'stun:stun.l.google.com:19302'}, | |
| {url:'stun:stun1.l.google.com:19302'}, | |
| {url:'stun:stun2.l.google.com:19302'}, |
| function hashCode (str){ | |
| var hash = 0; | |
| if (str.length == 0) return hash; | |
| for (i = 0; i < str.length; i++) { | |
| char = str.charCodeAt(i); | |
| hash = ((hash<<5)-hash)+char; | |
| hash = hash & hash; // Convert to 32bit integer | |
| } | |
| return hash; | |
| } |