- @fergbyrne
- HTM = Hierarchical Temporal Memory
- Slides
- big data is like teenage sex
- noone knows how to do it
- everyone thinks everyone else is doing it
| (ns example.main | |
| (:use [backtype.storm clojure config log])) | |
| (defbolt split-sentence ["word"] | |
| [tuple collector] | |
| (let [words (.split (.getString tuple 0) " ")] | |
| (doseq [w words] | |
| (emit-bolt! collector [w] :anchor tuple)) | |
| (ack! collector tuple))) |
| (ns om-tut.core | |
| (:require [om.core :as om :include-macros true] | |
| [om.dom :as dom :include-macros true])) | |
| (enable-console-print!) | |
| (def app-state (atom {:text "Works", :data [{:text "Doesn't"}]})) | |
| (defn handle-change | |
| [e data edit-key owner] |
| $ jpm init | |
| JPM info Running init on undefined | |
| title: (My Jetpack Addon) | |
| name: (my-jetpack) | |
| version: (0.0.0) | |
| Enable node packages? (yes) | |
| description: | |
| entry point: (index.js) | |
| author: | |
| engines (comma separated): (firefox,fennec) |
| (ns async-test.throttle.core | |
| (:require [cljs.core.async :refer [chan close!o sliding-buffer]] | |
| [clojure.string :as string]) | |
| (:require-macros | |
| [cljs.core.async.macros :as m :refer [go alts!]])) | |
| (def c (chan (sliding-buffer 1))) | |
| (def loc-div (.getElementById js/document "location")) | |
| (.addEventListener js/window "mousemove" |
| # Create background noise profile from mp3 | |
| /usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
| # Remove noise from mp3 using profile | |
| /usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
| # Remove silence from mp3 | |
| /usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
| # Remove noise and silence in a single command |
| // URL for Jira's REST API for issues | |
| var getIssueURL = "https://[Your Jira host]/rest/api/2/issue/"; | |
| // Personally I prefer the script to handle request failures, hence muteHTTPExceptions = true | |
| var fetchArgs = { | |
| contentType: "application/json", | |
| headers: {"Authorization":"Basic [Your BASE64 Encoded user:pass]"}, | |
| muteHttpExceptions : true | |
| }; |
https://gist.github.com/4357479 で「ダイナミックスコープな変数であるかどうか」をプログラムから(というかreplから)知る方法について調べた経緯です。
*print-readably* を対象にして調べる途上で出会ったいろいろなものについて、とりとめなくgdgdに書いています。
replで *print-readably* だけみると、値については教えてくれますが、変数については教えてくれません。
さっきのしらべものの途中で見つけた http://d.hatena.ne.jp/athos/20111204/elephant_things_in_clojure に #'fact の表記があったため、試してみたところ
pe-16.core=> #'*print-readably*| (ns countdown1 | |
| (:use | |
| [clojure.core.logic]) | |
| (:require | |
| [clojure.string :as str])) | |
| ;; Attempt to solve the "Numbers Game" from the UK Channel 4 gameshow | |
| ;; countdown. | |
| ;; Basically, 6 random numbers are chosen; then a random target is |