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
| #!/bin/bash | |
| WORKSPACES=( | |
| "$HOME/code" | |
| ) | |
| WORKSPACE_BINDS=() | |
| for ws in "${WORKSPACES[@]}"; do | |
| if [ -d "$ws" ]; then | |
| WORKSPACE_BINDS+=(--bind "$ws" "$ws") |
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
| ;; add the following to :dependencies in project.clj: | |
| ;; [org.clojure/java.jdbc "0.7.6"] | |
| ;; [com.microsoft.sqlserver/mssql-jdbc "6.4.0.jre8"] | |
| (require '[clojure.java.jdbc :as jdbc]) | |
| (def db-spec | |
| {:classname "com.microsoft.jdbc.sqlserver.SQLServerDriver" | |
| :subprotocol "sqlserver" | |
| :subname "//sql-server-hostname;integratedSecurity=true;authenticationScheme=JavaKerberos"}) |
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
| user=> :0 | |
| :0 | |
| user=> ::0 | |
| :user/0 | |
| user=> (read-string ":0") | |
| :0 | |
| user=> (clojure.edn/read-string ":0") | |
| :0 | |
| user=> (read-string "::0") | |
| :user/0 |
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 longest-common-prefix | |
| "Returns the longest common prefix among xs, all of which must be seqable" | |
| [& xs] | |
| (->> xs | |
| (apply map (fn [f & r] (when (apply = f r) f))) | |
| (take-while identity))) |
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 weka-rf-parser.core | |
| (:require | |
| [clojure.java.io :as io] | |
| [clojure.pprint :as pp] | |
| [clojure.string :as string] | |
| [clojure.zip :as zip] | |
| [clj-ml.classifiers :as ml-cls] | |
| [clj-ml.data :as ml-data] | |
| [clj-ml.io :as ml-io]) | |
| (:import [weka.classifiers.trees RandomForest])) |