Skip to content

Instantly share code, notes, and snippets.

View jethrokuan's full-sized avatar
💩

Jethro Kuan jethrokuan

💩
View GitHub Profile
(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
jethrokuan / serve.go
Created March 27, 2016 05:20
Simple Go Webserver
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
fmt.Println("Serving files in the current directory on port 3000")
@jethrokuan
jethrokuan / braid.md
Last active January 27, 2016 17:01
Feedback for Braid

Context

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
jethrokuan / sitemap.xml
Created December 20, 2013 08:26
Jekyll sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://jethrokuan.github.io/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
{% for post in site.posts %}
<url>
@jethrokuan
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'."
[work]
(lazy-seq
(loop [[part & parts] work]
(if-let [[pivot & xs] (seq part)]
(let [smaller? #(< % pivot)]
(recur (list*
(filter smaller? xs)
@jethrokuan
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}}
</script>