Skip to content

Instantly share code, notes, and snippets.

I know the value and cost of nothing

Ohta Shogo athos

I know the value and cost of nothing
View GitHub Profile
bhb /
Last active May 12, 2020
Clojure friendly mode, inspired by
pesterhazy / reagent-ref-functions.clj
Last active Sep 15, 2020
Using ref functions with reagent
View reagent-ref-functions.clj
;; React supports "refs" as a way for a component to get a
;; handle to its children. Classically, refs were string-based.
;; Recent versions of React support callback attributes as a
;; more elegant variant of accessing DOM notes or components.
;; This example uses a Form-3 component as per
;; For callback refs, see React's documentation
tyano / core.clj
Created Feb 11, 2014
MD5ハッシュ突き合わせ(Clojure) - 単体でパフォーマンスチューニングしたものを、core.asyncを使って並列化。引数の末尾に :map をつけると、map/filterを使ったバージョンでもテスト可能。primitiveのloopのほうがちょっとだけ速い。並列化はcore数程度で頭打ち。100とかにしても遅くなるだけ。
View core.clj
(ns mdsample.core
(:require [clojure.core.reducers :as r]
[clojure.core.async :refer [chan >! <!! go close! alts!!]])
(:import [ MessageDigest]
[javax.xml.bind DatatypeConverter]
[java.util Arrays]
[java.util Queue]
[java.util.concurrent ConcurrentLinkedQueue]))
(defn- hexdigest
You can’t perform that action at this time.