Skip to content

Instantly share code, notes, and snippets.

View semisight's full-sized avatar

Alex Bogart semisight

View GitHub Profile
@semisight
semisight / core.clj
Created January 21, 2013 07:46
These files will show a problem when using clojure's `map` with clojure.java.jdbc's (formerly known as clojure.contrib.sql) `insert-record`. To run, create a new app with lein (2) called db, then use `lein run`.
(ns db.core
(:use clojure.java.jdbc)
(:gen-class))
(def db
{:classname "org.sqlite.JDBC"
:subprotocol "sqlite"
:subname "test.db"})
(def schema
from __future__ import division
from json import dumps
data = [
'arostn a ard aoyd rad radrpd',
'aodha a aoydydyo 43qlgdi',
'ta <irhaotyqodl>og</irhaotyqodl>'
]
# dict of {words => [line nos]}
@semisight
semisight / grammar.y
Created December 20, 2013 22:05
Flex + Lemon problems
%include {
#include <assert.h>
#include <stdlib.h>
}
%token_type { char* }
%syntax_error { fprintf(stderr, "Syntax error.\n"); }
%stack_overflow { fprintf(stderr, "Stack overflow.\n"); }
%parse_failure { fprintf(stderr, "Parse failed.\n"); }

Awesome, that sounds really great then!

I've added my private gmail, linked in, and phone number. (I clicked on every verify button I could find).

Free time: we're pretty open minded. We like to explore. Last summer, we spent a weekend walking around San Francisco, and another in Monterey. Otherwise, you might find me working on some new side project (programming) or working out. Yael has also reminded me (in her words) we "<3 to bbq."

Messiness: I'm a senior in college. I've had some roommates that would easily hit an 8 or 9 on your scale. Yael grew up with two brothers. We can tolerate a mess. We do try to keep our personal space fairly clean.

My coolest thing (advance warning: this is about to get nerdy): I started programming when I was a kid by programming games. I've always had a soft spot for crazy graphics programming, so this essay that I read recently blew my mind: http://experilous.com/1/blog/post/procedural-planet-generation. "Procedural generation" is a sort of meta-art, where the artist tell