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
floyd = { | |
'staging': { | |
'cron.d': ['*/10 * * * * deploy java "-Duser.timezone=US/Central" -server -Xmx1024M -cp /apps/floyd/floyd-standalone.jar clojure.main /apps/floyd/cisco_import.clj >> /apps/floyd/cisco_import.log 2>&1'], | |
'scripts': ['cisco_import.clj', 'run.clj'], | |
'nginx' : { | |
'server_name': 'stage.floyd.dev.notifymd.local', | |
'port': 8080 | |
} | |
'supervisord' : { | |
'mx' = '1024M' |
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 treeviewer.core | |
(:require [goog.dom :as dom] | |
[goog.ui.tree.TreeControl :as TreeControl])) | |
(def data {:a 1 :b [1 2] :c {:d 1 :e 2 :f "foo"}}) | |
(declare add-data) | |
(defn tree-control [] | |
(goog.ui.tree.TreeControl. |
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 custom-button [parent text] | |
(let [container (html/el "span") | |
button (goog.ui.CustomButton. text)] | |
(dom/append parent container) | |
(.render button container) | |
{:element container :component button})) |
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
;; Really debug.cljs | |
(ns floyd.debug | |
(:require [goog.events :as events] | |
[goog.object :as o] | |
[goog.debug.Console :as Console] | |
[goog.debug.LogManager :as LogManager] | |
[goog.debug.Logger :as Logger] | |
[goog.ui.Component.EventType :as et] | |
[goog.events.EventType :as EventTypes])) |
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
(defproject floyd "0.10.4-SNAPSHOT" | |
:dependencies ... | |
;; compile this one file | |
:aot [floyd.version] | |
) |
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 conways.core | |
(:use midje.sweet) | |
(:require [clojure.set :as s])) | |
(unfinished ) | |
(def offsets [-1 0 1]) | |
(defn neighbors [[x y]] | |
(s/difference (set (for [x-offset offsets y-offset offsets] | |
[(+ x x-offset) |
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 storm.starter.clj.exclamation | |
(:import [backtype.storm StormSubmitter LocalCluster]) | |
(:use [backtype.storm clojure config]) | |
(:gen-class)) | |
(defspout test-word-spout ["word"] {:prepare false} | |
[collector] | |
(Thread/sleep 100) | |
(emit-spout! collector [(rand-nth ["first" "second" "third" "fourth"])])) |
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
Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: clojure.lang.KeywordLookupSite.<init>(ILclojure/lang/Keyword;)V | |
at clojure.lang.Util.runtimeException(Util.java:165) | |
at clojure.lang.Compiler.eval(Compiler.java:6476) | |
at clojure.lang.Compiler.eval(Compiler.java:6431) | |
at clojure.core$eval.invoke(core.clj:2795) | |
at clojure.main$eval_opt.invoke(main.clj:296) | |
at clojure.main$initialize.invoke(main.clj:315) | |
at clojure.main$script_opt.invoke(main.clj:339) | |
at clojure.main$main.doInvoke(main.clj:426) | |
at clojure.lang.RestFn.invoke(RestFn.java:457) |
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 montyhall | |
(:require [clojure.set :as set])) | |
(defn make-a-deal [_] | |
(let [doors (shuffle [:goat :goat :car]) | |
car? (= (doors (rand-int 3)) :car)] | |
(if car? 1 0))) | |
(defn monty-hall [n] | |
(let [first-guesses (reduce + 0 |
This file has been truncated, but you can view the full file.
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
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.170043.IKWXXKPFGRPZ5YPLRNQJHDAEJFNGWQKSA.txt | |
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.176063.BDBSK43E2NJQ40C3PXU1MYUJFQWFHDPPA.txt | |
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.176169.A1T2FPALR0N5B10RVVAT1TKAAK2DALA4A.txt | |
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.168320.HQYHCK4E1OJ0SVLCDI1Q0WBASB0W24MOB.txt | |
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.175958.P3MB3OJLZKBQKSDYITMRWGL2EWH5S4JSA.1.txt | |
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.168868.IWPSM1CZLZQFO0BBUDBZTTAHZBWP3OXAA.txt | |
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.168295.BQ5I5QQHYO41JNNRJL0CJUPPUSGV3RRZA.txt | |
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.175721.BLP5EOEWMJUSP2UGVWABK0USJYIT2KULB.1.txt | |
/home/petermancini/Downloads/text_wi |