This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2013 Jean Niklas L'orange. All rights reserved. | |
* | |
* The use and distribution terms for this software are covered by the | |
* Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) | |
* which can be found in the file LICENSE at the root of this distribution. | |
* | |
* By using this software in any fashion, you are agreeing to be bound by | |
* the terms of this license. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[com.taoensso/timbre "3.3.1"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(js/$ | |
(fn [] | |
(.. (js/$ "#sample-text") (on "change" #(js/alert (.. % -target -value)))) | |
(.. (js/$ "#sample-select") (on "change.bfhselectbox" #(js/alert "abc"))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[edn-config "0.2"] | |
[yesql "0.4.0"] | |
[domina "1.0.2"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; distance : 駅からの徒歩時間 (分) | |
; space : 専有面積 (m*m) | |
; age : 築年数 (年) | |
; stair : 階数 | |
; aspect : 向き [ N / NE / E / SE / S / SW / W / NW ] | |
; | |
{"distance" 8 | |
"space" 32.00 | |
"age" 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns jubatus-sample.recommender | |
(:require [clojure.java.io :as io] | |
[clojure.string :as s]) | |
(:import [us.jubat.recommender RecommenderClient] | |
[us.jubat.common Datum])) | |
(defn map->datum [hmap] | |
(let [d (Datum.)] | |
(doseq [[k v] hmap] | |
(condp instance? v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns jubatus-sample.core | |
(:import [us.jubat.classifier ClassifierClient LabeledDatum] | |
[us.jubat.common Datum])) | |
(def train-data | |
{"徳川" ["家康" "秀忠" "家光" "家綱" "綱吉" "家宣" "家継" "吉宗" "家重" "家治" "家斉" "家慶" "家定" "家茂" #_"慶喜"] | |
"足利" ["尊氏" "義詮" "義満" "義持" "義量" "義教" "義勝" "義政" "義尚" "義稙" "義澄" "義稙" "義晴" "義輝" "義栄" #_"義昭"] | |
"北条" ["時政" "義時" "泰時" "経時" "時頼" "長時" "政村" "時宗" "貞時" "師時" "宗宣" "煕時" "基時" "高時" "貞顕" #_"守時"]}) | |
(defn- make-datum [value] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"alt-s" [:editor.sublime.selectNextOccurrence (:eval.custom "(with-out-str (clojure.repl/source __SELECTION__))" {:verbatim true})] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn clj->js | |
"Recursively transforms ClojureScript values to JavaScript. | |
sets/vectors/lists become Arrays, Keywords and Symbol become Strings, | |
Maps become Objects. Arbitrary keys are encoded to by key->js." | |
[x] | |
(when-not (nil? x) | |
(if (satisfies? IEncodeJS x) | |
(-clj->js x) | |
(cond | |
(keyword? x) (name x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body | |
#loader //"起動時の画面。起動後はopacity: 0;" | |
#wrapper | |
#canvas | |
#multi //"中心部分" | |
.tabsets | |
.tabset | |
.tabset | |
... | |
span.button.fullscreen //"フルスクリーン時の閉じるボタン" |