Skip to content

Instantly share code, notes, and snippets.

@alex-dixon
alex-dixon / README.md
Last active July 28, 2018 14:53 — forked from bhb/README.md
Clojure cool mode

Stay cool Clojurists 😎

Usage:

clj -Sdeps '{:deps {cool {:git/url "https://gist.github.com/alex-dixon/bf2218ed3d3c633ed0602e23ae76c420" :sha "a9859300b5af48a18c88bdec2feb28bc91bd9d80"}}}' -m cool

(ns myapp.typeahead
(:require [reagent.core :as r]
[goog.functions :as gf]
[myapp.api :as api]))
(defn input-control [props]
(let [value (r/atom (:default-value props ""))
local-change #(reset! value (.. % -target -value))]
(fn [{:keys [on-change] :as props}]
@alex-dixon
alex-dixon / 0_reuse_code.js
Created October 11, 2015 03:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console