Skip to content

Instantly share code, notes, and snippets.

Chris Granger ibdknox

Block or report user

Report or block ibdknox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ibdknox
ibdknox / chevrotain.d.ts
Created Apr 28, 2017
chevrotain typings
View chevrotain.d.ts
/*! chevrotain - v0.28.1 */
export as namespace chevrotain;
declare class HashTable<V>{}
/**
* The type of custom pattern matcher functions.
* Matches should only be done on the start of the text.
* Note that this is similar to the signature of RegExp.prototype.exec
*
* This should behave as if the regExp match is using a start of input anchor.
* So: for example if a custom matcher is implemented for Tokens matching: /\w+/
View Breaking down tic tac toe.md

Breaking Down Tic-tac-toe

Last week, @RubenSandwich posted an interactive demo on the mailing list capable of playing and scoring tic-tac-toe matches. He provided some great feedback about the issues he ran into along the way. Now that the language is becoming more stable, our first priority is seeing it used and addressing the problems which surface. To that end, his troubles became our guide to making Eve a little friendlier for writing interactive applications in general and tic-tac-toe in specific.

This analysis (and future breakdowns) will be written inline in Eve to make the discussion flow more naturally. Since our blog is capable of rendering Markdown, we can provide a pleasant reading experience directly from the source code. At the moment, Eve's syntax only lends itself to a subset of Markdown, but we plan to make some small changes in the near future to become fully compatible with [GFM][2

View gist:bdb1860a88d99dff72d617f2ae63cb33
-----------------
Handle Events
-----------------
click on a restaurant or pin, show a restaurant
app = [@app]
[#click element]
choose
element = [#yelp-restaurant-list-element restaurant]
or
View eveInstall.sh
./install-multirust.sh
brew install node
pushd . &> /dev/null
cd ui
npm install
popd &> /dev/null
./run.sh
@ibdknox
ibdknox / gist:8701135
Created Jan 30, 2014
osx 0.9.0 nodewebkit crash on startup
View gist:8701135
Process: node-webkit [8612]
Path: /Users/USER/*/node-webkit.app/Contents/MacOS/node-webkit
Identifier: com.intel.nw
Version: 32.0.1700.77 (1700.77)
Code Type: X86 (Native)
Parent Process: launchd [272]
Responsible: node-webkit [8612]
User ID: 501
Date/Time: 2014-01-29 17:35:04.919 -0800
@ibdknox
ibdknox / deafult.behaviors.clj
Created Dec 6, 2013
default behaviors for Light Table
View deafult.behaviors.clj
{
:+
{:app
#{:lt.objs.clients.local/startup-with-local-client
:lt.objs.settings2/load-behaviors
:lt.objs.settings2/load-keys
:lt.objs.settings2/create-user-settings
:lt.objs.proc/set-path-OSX
:lt.objs.workspace/reconstitute-last-workspace
:lt.objs.sidebar.command/init-commands
@ibdknox
ibdknox / paredit.cljs
Created Nov 6, 2013
the paredit plugin for light table
View paredit.cljs
(ns lt.plugins.paredit
(:require [lt.object :as object]
[lt.objs.editor :as editor]
[lt.objs.editor.pool :as pool]
[lt.objs.command :as cmd]
[lt.util.cljs :refer [str-contains?]]
))
(def opposites {")" "("
@ibdknox
ibdknox / behaviors.cljs
Created Oct 21, 2013
My behaviors file
View behaviors.cljs
{:+ {:app [(:lt.objs.style/set-skin "dark")
(:lt.objs.app/run-on-init :window.fullscreen)
(:lt.plugins.vim/map-keys {"-" "$",
"0" "^",
"<BS>" "<PageUp>",
"<Space>" "<PageDown>",
"j" "gj",
"k" "gk"})
(:lt.objs.files/file.ignore-pattern "(^\\..*)|\\.class$|target/|svn|cvs|\\.git|\\.pyc|~|\\.swp|\\.jar|.DS_Store|_site/|_cache/|__pycache__")
:lt.objs.intro/show-new-file
@ibdknox
ibdknox / bootstrap.js
Created Sep 6, 2013
Fix for use-tabs? not working correctly in 0.5.3
View bootstrap.js
This file has been truncated, but you can view the full file.
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !0;
goog.LOCALE = "en";
goog.provide = function(a) {
if(!COMPILED) {
if(goog.isProvided_(a)) {
throw Error('Namespace "' + a + '" already declared.');
}
@ibdknox
ibdknox / ltmain.py
Created Aug 24, 2013
remove prints from ltmain.py
View ltmain.py
import sys
import threading
import os
import ast
import imp
import inspect
import ctypes
import socket
import json
import re
You can’t perform that action at this time.