Skip to content

Instantly share code, notes, and snippets.

View ento's full-sized avatar

ento

View GitHub Profile
@ento
ento / .gitignore
Last active January 25, 2016 19:58
benchmarks for elm-format PRs #121 and #122
/dist/
/cabal.sandbox.config
/.cabal-sandbox/
@ento
ento / gdc2016_personal_schedule.csv
Created March 7, 2016 01:41
GDC 2016 sessions I've bookmarked
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
"session title","start time","end time","duration","day","description","takeaway","intended audience","location","tracks","format","passes","speakers","gdc vault recording"
"A Course About Game Balance","2016-03-14 13:20:00","2016-03-14 13:50:00","30-Minute","Monday","Game balance is a task that must be performed on virtually every game, and is thus vitally important to a game designer. Yet there are no textbooks, few writings, and even fewer classes that look at this niche topic in depth. What would a game balance course look like? In this session, game designer and educator Ian Schreiber will present a summary of his college-level course in game balance, examining the major topics covered in the syllabus and a set of assignments that can be used to further build balance skills by putting the theory into practice.","The audience will leave with an understanding of the realistic scope of a battle-tested course in game balance, and the kinds of topics and assignments that might be covered in such a course were
@ento
ento / deploying-deepanimebot-to-gke.sh
Last active July 23, 2016 20:40
Deploying DeepAnimeBot to GKE
gcloud container clusters create deepanimebot --machine-type g1-small --num-nodes 1
# to setup process based monitoring
gcloud compute ssh $(kubectl get nodes --output=jsonpath={.items[*].metadata.name})
curl -O https://repo.stackdriver.com/stack-install.sh
sudo bash stack-install.sh --write-gcm
sudo /opt/stackdriver/stack-config --api-key XXXXXXXXXXXXXXXXXXXXXX
sudo service stackdriver-extractor start
# create stuff

Keybase proof

I hereby claim:

  • I am ento on github.
  • I am ento (https://keybase.io/ento) on keybase.
  • I have a public key ASDgeLKyfvN8jvLE_5uy5MM0ff15a_SntDGs_iitTYnIiQo

To claim this, I am signing this object:

from __future__ import print_function
import os
import re
from collections import Counter
import itertools
import argparse
import json
import requests
{ "path": "path/to/Main'.elm", "line": 1, "column": 1, "message": "<file would change>"}
{ "path": "path/to/Main'.elm", "line": 2, "column": 1, "message": "file would change"}
{ "path": "path/to/View.elm", "line": 1, "column": 1, "message": "file would change"}
gistup
@ento
ento / bllip.py
Created November 17, 2016 19:10
Simpler formatting of syntax trees: ((The quick brown fox) (jumps (over (the lazy dog))))
# Patch to make nltk.parse.bllip.py work in Python 3
def _ensure_ascii(words):
try:
for i, word in enumerate(words):
if isinstance(word, bytes):
word.decode('ascii')
else:
word.encode('ascii')
except UnicodeDecodeError:
((elm-mode
(eval . (progn
(require 'projectile)
(setq elm-format-elm-version "0.18")
(setq elm-format-command "elm-format-0.18")))))
@ento
ento / include-exclude-precedence.md
Created October 1, 2017 21:56
include-exclude-precedence

Include/exclude precedence in lint-like tools

Ad hoc research for deciding how to implement file inclusion/exclusion logic in elm-doc.

Notes:

  • Listed up lint-like tools I know off the top of my head, and then supplemented by cherry-picking tools from awesome-static-analysis
  • "Included" here means explicitly included by being specified in the command line, not just in a config file.
  • I either tried out each tool to see how it actually behaves, or looked at existing issues or actual code.
  • Numbers