Skip to content

Instantly share code, notes, and snippets.

View CGamesPlay's full-sized avatar
:bowtie:

Ryan Patterson CGamesPlay

:bowtie:
View GitHub Profile
$PATH:
/usr/local/bin
./node_modules/.bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/opt/X11/bin

Checklist

Game basics

  • Players can pass device to choose armies.
  • Game state is loaded from the URL.
  • URL is kept up-to-date with the state of the game.
  • When the game is over, the winner is displayed and the board is disabled.

Challenges

@CGamesPlay
CGamesPlay / createSelectorSelector.js
Created July 14, 2017 21:16
createSelectorSelector
import { createSelector } from 'reselect';
import _ from 'underscore';
const createSelectorSelector = (...funcs) => {
const base = createSelector(...funcs);
const selector = (...args) => base(...args)(...args);
_.extendOwn(selector, base);
return selector;
};
@CGamesPlay
CGamesPlay / .babelrc
Created January 23, 2017 20:04
Screeps grunt / webpack config
{
plugins: [ 'transform-flow-strip-types' ]
}
begin
require 'byebug/core'
rescue LoadError
return
end
module Byebug
def self.byebug_on_error
unless started?
self.mode = :attached

Keybase proof

I hereby claim:

  • I am cgamesplay on github.
  • I am cgamesplay (https://keybase.io/cgamesplay) on keybase.
  • I have a public key ASBpgw6-u6iHxjSfSGeerJhP7Ip781-yultldTJDqEPzxgo

To claim this, I am signing this object:

4/24/14 10:37:38.167 AM iTerm[33163]: setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.
4/24/14 10:37:38.193 AM iTerm[33163]: -[PseudoTerminal loadWindow]: failed to load window nib file 'PseudoTerminal'.
4/24/14 10:37:38.195 AM iTerm[33163]: -[PseudoTerminal loadWindow]: failed to load window nib file 'PseudoTerminal'.
4/24/14 10:37:38.199 AM iTerm[33163]: -[AutocompleteView loadWindow]: failed to load window nib file 'Autocomplete'.
4/24/14 10:37:38.200 AM iTerm[33163]: -[PseudoTerminal loadWindow]: failed to load window nib file 'PseudoTerminal'.
4/24/14 10:37:38.200 AM iTerm[33163]: -[PseudoTerminal loadWindow]: failed to load window nib file 'PseudoTerminal'.
4/24/14 10:37:38.221 AM iTerm[33163]: unable to find nib named: FindView in bundle path: (null)
4/24/14 10:37:38.221 AM iTerm[33163]: -[NSViewController loadView] could not load the "FindView" nib.
4/24/14 10:37:38.241 AM iTerm[33163]: -[PseudoTerminal loadWi
/*!
* Chart.js
* http://chartjs.org/
*
* Copyright 2013 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
//Define the global Chart Variable as a class.