Skip to content

Instantly share code, notes, and snippets.

View devth's full-sized avatar
Hacking on @yetibot

Trevor Hartman devth

Hacking on @yetibot
View GitHub Profile
@devth
devth / spec.cljs
Last active February 21, 2017 00:16 — forked from swannodette/spec.cljs
om.next query spec
(ns om.next.spec
(:require [cljs.spec :as s]))
(s/def ::ident (s/and vector? (s/cat :ident keyword? :value #(not (coll? %)))))
(s/def ::join-key (s/or :prop keyword? :ident ::ident))
(s/def ::join (s/map-of ::join-key ::query))
(s/def ::union (s/map-of keyword? (s/map-of keyword? ::query)))
(s/def ::param-expr
I like LYAH as a reference and cheat-sheet but I found it a little slow for
learning Haskell.
Here's my recommended order for just learning Haskell:
http://yannesposito.com/Scratch/en/blog/Haskell-the-Hard-Way/ 80% completion
here is fine if you feel your attention waning, the next thing will address
hammering in things like functors and monads via typeclasses.
https://github.com/NICTA/course/ this will hammer in the lessons in a very
@devth
devth / dominos.html
Created March 20, 2012 03:58 — forked from jacktandrew/gist:2131145
Create Dominoes
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<style>
div.tile {height: 70px; width: 35px; border-radius: 7px; float: left; margin: 10px;}
div.tile, div.bar {border: 2px outset #444;}
div.pips {height: 30px; width: 35px;position: relative; margin-top: 2px;}
div.pips div {border-radius: 5px; height: 4px; width: 5px; background: #333; position: absolute; border:2px inset #444;}
@devth
devth / set_env.sh
Created August 18, 2011 04:42 — forked from wayneeseguin/gist:774785
zsh chpwd example
my_chpwd()
{
if [[ -s "$PWD/.set_env" ]] ; then
source "$PWD/.set_env"
echo '(automatically sourced .set_env)'
fi
}
add-zsh-hook chpwd my_chpwd
@devth
devth / about.md
Created August 9, 2011 16:58 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
<script type="text/javascript">
var queueBytesLoaded = 0;
var queueBytesTotal = 0;
var myQueue = null;
var queueChangeHandler = function(queue){
// alert('Uploading Started');
myQueue = queue;
// console.log("COLLECTION CHANGE!");
var list = document.getElementById('file_todo_list');