I hereby claim:
- I am ticean on github.
- I am ticean (https://keybase.io/ticean) on keybase.
- I have a public key whose fingerprint is 873B 7B9D 4093 F77D AFA0 2649 2FBD B246 DAD1 352A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Multi-series line chart rendered using React and D3.
| ;;; TODO - drag-enter and -exit events : Right now, a component doesn't receive events for other components | |
| ;;; If a component responds to drag-over, it won't "revert" state until the drag ends. | |
| ;; NOTE - compiles with om 0.1.7. Needs updating to 0.2+ | |
| (ns omdnd.ux | |
| (:require-macros | |
| [cljs.core.async.macros :refer [go alt!]] | |
| ) |
| (ns ingredient.core | |
| (:require [clojure.browser.repl] | |
| [om.core :as om :include-macros true] | |
| [sablono.core :as html :refer [html] :include-macros true] | |
| [cljs.core.async :refer [put! chan close! sliding-buffer]]) | |
| (:require-macros [cljs.core.async.macros :refer [go]])) | |
| (enable-console-print!) | |
| (def app-state |
| #!/bin/bash | |
| usage() | |
| { | |
| cat << EOF | |
| usage: $0 options | |
| This script set ownership for all table, sequence and views for a given database | |
| Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto |
| #!/bin/bash | |
| # | |
| # This script will mount /Users in the boot2docker VM using NFS (instead of the | |
| # default vboxsf). It's probably not a good idea to run it while there are | |
| # Docker containers running in boot2docker. | |
| # | |
| # Usage: sudo ./boot2docker-use-nfs.sh | |
| # |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| // Demo contextual log pattern with the logfmt-node library. | |
| var logger = require('logfmt').namespace({app: "test"}); | |
| function task(id, throwError) { | |
| var taskLogger = logger.namespace({event: "task.run", "task.id": id}); | |
| var taskTimer = taskLogger.time(); | |
| taskLogger.log({msg: "Starting the task.", at: "start"}); | |
| setTimeout(function() { |
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(query_start, clock_timestamp()), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |