Skip to content

Instantly share code, notes, and snippets.

@alicewriteswrongs
alicewriteswrongs / tictactoe.py
Created April 9, 2015 18:43
Recurse Center interview pair programming assignment, tic tac toe!
#!/usr/bin/python
## A class which gives us a board and all the methods we need to work with it
class Board:
def __init__(self):
self.board = {1:" ",
2:" ",
3:" ",
4:" ",

Keybase proof

I hereby claim:

  • I am aliceriot on github.
  • I am aliceriot (https://keybase.io/aliceriot) on keybase.
  • I have a public key whose fingerprint is 1A24 475C 7576 4586 22FB 4265 1480 C33E 2920 7A51

To claim this, I am signing this object:

/home/alice/.vim/bundle/youcompleteme/third_party/ycmd/third_party/tern_runtime/node_modules/tern/lib/infer.js:1056
if (node.type == "Identifier") return node.name
^
TypeError: Cannot read property 'type' of null
at patternName (/home/alice/.vim/bundle/youcompleteme/third_party/ycmd/third_party/tern_runtime/node_modules/tern/lib/infer.js:1056:13)
at Array.map (native)
at patternName (/home/alice/.vim/bundle/youcompleteme/third_party/ycmd/third_party/tern_runtime/node_modules/tern/lib/infer.js:1059:65)
at Object.exports.scopeGatherer.walk.make.Function (/home/alice/.vim/bundle/youcompleteme/third_party/ycmd/third_party/tern_runtime/node_modules/tern/lib/infer.js:1095:23)
at c (/home/alice/.vim/bundle/youcompleteme/third_party/ycmd/third_party/tern_runtime/node_modules/acorn/dist/walk.js:68:35)
__XONSH_ENV_BEG__
ADOTDIR=/home/alice/.antigen
ANTIGEN_DEFAULT_REPO_URL=https://github.com/robbyrussell/oh-my-zsh.git
ANT_HOME=/usr/share/apache-ant
BACKGROUND=/home/alice/images/tarsands.jpg
BROWSER=/usr/bin/chromium
CDPATH=/home/alice/Code:/home/alice/dotfiles:/home/alice
CLICOLOR=1
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
__XONSH_ENV_BEG__
ADOTDIR=/home/alice/.antigen
ANTIGEN_DEFAULT_REPO_URL=https://github.com/robbyrussell/oh-my-zsh.git
ANT_HOME=/usr/share/apache-ant
BACKGROUND=/home/alice/images/tarsands.jpg
BROWSER=/usr/bin/chromium
CDPATH=/home/alice/Code:/home/alice/dotfiles:/home/alice
CLICOLOR=1
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
Sending build context to Docker daemon 557.1 kB
Sending build context to Docker daemon 1.114 MB
Sending build context to Docker daemon 1.671 MB
Sending build context to Docker daemon 2.228 MB
Sending build context to Docker daemon 2.785 MB
Sending build context to Docker daemon 3.342 MB
Sending build context to Docker daemon 3.899 MB
Sending build context to Docker daemon 4.456 MB
Sending build context to Docker daemon 5.014 MB
Sending build context to Docker daemon 5.571 MB
diff --git a/static/js/constants.js b/static/js/constants.js
index aac9ccc..1d7c0b3 100644
--- a/static/js/constants.js
+++ b/static/js/constants.js
@@ -621,8 +621,12 @@ export const DASHBOARD_RESPONSE = deepFreeze([
"prerequisites": ""
},
],
- "financial_aid_availability": false,
- "id": 6
@alicewriteswrongs
alicewriteswrongs / webpack-stats-just-search.json
Last active January 6, 2017 18:58
webpack stats 1/6 for mm (just splitting the search page)
{
"errors": [],
"warnings": [],
"version": "2.2.0-rc.3",
"hash": "aaecd06ce4a2b3ff2314",
"time": 63486,
"publicPath": "",
"assetsByChunkName": {
"dashboard": [
"dashboard-157f3777136d022fccdf.js",
@alicewriteswrongs
alicewriteswrongs / webpack-stats-all-splits.json
Created January 6, 2017 19:06
webpack stats 1/6 for mm (with all the splits)
This file has been truncated, but you can view the full file.
{
"errors": [],
"warnings": [],
"version": "2.2.0-rc.3",
"hash": "36bb16b38ead5d0e13c9",
"time": 68755,
"publicPath": "",
"assetsByChunkName": {
"dashboard": [
"dashboard-aa690f004260d45a3801.js",
const getAndSortLessons = () => {
const currentActive = $.jStorage.get("l/activeQueue")
const activeCount = currentActive.length
const currentLessons = $.jStorage.get("l/lessonQueue")
const allLessons = [...currentActive, ...currentLessons]
const [radicals, kanji, vocabulary] = allLessons.reduce(