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
mastermind_production=# select count(*) from task_polygon where worktype_id like 'secondary-school-polygons'; | |
count | |
------- | |
38990 | |
(1 row) | |
mastermind_production=# delete from task_polygon where worktype_id like 'secondary-school-polygons'; | |
DELETE 38990 | |
mastermind_production=# select count(*) from task_polygon; | |
count |
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
<html> | |
<head> | |
<!-- <meta http-equiv="content-type" content="text/html; charset=UTF-8"> --> | |
<meta http-equiv="refresh" content="60" > | |
<style type="text/css"> | |
.stock { } | |
</style> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> |
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 mastermind.test.korma_test | |
(:use korma.core | |
korma.db | |
clojure.test)) | |
(defn connect-database [] | |
(let [config-map {:db "korma_test" | |
:user "postgres" | |
:password "postgres" | |
:host "localhost" |
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
mvn archetype:generate \ | |
-DarchetypeGroupId=org.apache.maven.archetypes \ | |
-DgroupId=com.mycompany.app \ | |
-DartifactId=my-app | |
mvn clean compile package | |
java -cp target/my-app-1.0-SNAPSHOT-jar-with-dependencies.jar com.mycompany.app.App |
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 wordcount.core | |
(:use [clojure.java.io :only [reader]] | |
[clojure.string :only [split]])) | |
(defn- word-count [lines] | |
(reduce #(+ %1 (count (split %2 #" "))) 0 lines)) | |
(defn- tab-delimited? [lines] | |
(loop [rest-lines lines columns 0] | |
(if (first rest-lines) |
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 alephtest.core | |
(:use aleph.core | |
aleph.http | |
lamina.core | |
)) | |
(defn put-handler | |
[ch request] | |
(println "######") | |
(let [is (:body request) |
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
2012-03-07 19:04:16 | |
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode): | |
"Attach Listener" daemon prio=10 tid=0x0000000040456800 nid=0x1b7b waiting on condition [0x0000000000000000] | |
java.lang.Thread.State: RUNNABLE | |
"Thread-2" prio=10 tid=0x00007f5f04cd2800 nid=0x1b45 runnable [0x00007f5f02f5b000] | |
java.lang.Thread.State: RUNNABLE | |
at java.io.FileInputStream.readBytes(Native Method) | |
at java.io.FileInputStream.read(FileInputStream.java:220) |