Skip to content

Instantly share code, notes, and snippets.

View jethrokuan's full-sized avatar

Jethro Kuan jethrokuan

View GitHub Profile
jethrokuan / index.html.erb
Created July 22, 2012 16:29
Error: assertion failed: an Ember.CollectionView's content must implement Ember.Array. You passed Ol.SubjectsController
<script type="text/x-handlebars">
{{view Ol.ListSubjectsView}}
jethrokuan / sitemap.xml
Created December 20, 2013 08:26
Jekyll sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="">
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% for post in site.posts %}
jethrokuan / Qs.clj
Created November 26, 2015 11:45
Clojure lazy QS
(defn sort-parts
"Lazy, tail-recursive, incremental quicksort. Works against
and creates partitions based on the pivot, defined as 'work'."
(loop [[part & parts] work]
(if-let [[pivot & xs] (seq part)]
(let [smaller? #(< % pivot)]
(recur (list*
(filter smaller? xs)
jethrokuan /
Last active January 27, 2016 17:01
Feedback for Braid


I say this as a new user to Braid, with little to no prior knowledge of how it works (other than watching the demo video).

First look

  • Very overwhelmed. Lots of boxes seen in some channels. Not sure where to begin.
  • Clicks #Fix-Me-Anyway, sees a ton of threads that I can't close/have no option to hide/have no tl;drs that can clue me in as to what's the thread about
  • How do I focus on one thread? Or am I not supposed to?
  • Latency hurts, even when its not about chatting. Changing channels should feel immediate, like in slack.
  • How do you refer people to threads that they may be interested in?
jethrokuan / serve.go
Created March 27, 2016 05:20
Simple Go Webserver
package main
import (
func main() {
fmt.Println("Serving files in the current directory on port 3000")
(ns ttagenda.api
(:require [ttagenda.db :as db]
[ttagenda.util :refer :all]
[ttagenda.keytable :as kt]
[ttagenda.shouter :as s]
[ttagenda.print :as p]
[clojure.string :as st]
[ring.util.response :refer [response]]))
(def FAILURE_TEXT "We couldn't process your request at this time, please try again later")
jethrokuan / shim.clj
Created May 11, 2016 15:42
Shim for uberjar. Set :main to shim/-main, and only AOT shim.
(ns shim
(defn -main [& argv]
(require '
(apply (resolve ' argv))
jethrokuan /
Created August 3, 2016 12:47
snippet for fish < 2.3
for file in ~/.config/fish/conf.d/*.fish
source $file
jethrokuan / metropolis.css
Created August 15, 2016 02:21 — forked from vhodges/metropolis.css
A version of the Beamer theme Metropolis for reveal.js
* A simple theme for reveal.js presentations, derived from serif.css
* It's in the spirit of the Metropolis theme for beamer
* This theme is Copyright (C) 2016 Vince Hodges, - it is MIT licensed.
@import url('');
.reveal a {

Keybase proof

I hereby claim:

  • I am jethrokuan on github.
  • I am jethroksy ( on keybase.
  • I have a public key ASBZCMhhv_7BDI6w28eRM6y_z8u_0S6xKGOFG2cbq02Akgo

To claim this, I am signing this object: