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 escher.core | |
(require [quil.core :as q]) | |
(:gen-class)) | |
;;================================================================== | |
;; | |
;; vector-manipulation primitives | |
;; | |
;;================================================================== |
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
22:11 clj-record $lein reset-db | |
resetting mysql | |
Exception in thread "main" java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'clj_record_test' | |
at clojure.lang.Util.runtimeException(Util.java:165) | |
at clojure.lang.Compiler.eval(Compiler.java:6476) | |
at clojure.lang.Compiler.eval(Compiler.java:6455) | |
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) |
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
*/ | |
This is a Java class that has been translated into | |
Clojure at http://gist.github.com/369239 | |
*/ | |
package edu.umd.cs.piccolo.tutorial; | |
import java.awt.Color; |
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
; This is the "Graph Editor" sample program for the Piccolo2D structured 2D | |
; graphics framework. It draws 50 circular nodes, then draws 50 lines | |
; (called "edges" in the code) between randomly selected nodes. On mouseover, | |
; nodes turn red. As you drag a node to a new position, the lines stretch and | |
; stay with the node. | |
; | |
; You can find the original Java program at | |
; | |
; http://www.piccolo2d.org/learn/grapheditor.html | |
; |
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
; This is the "Graph Editor" sample program for the Piccolo2D structured 2D | |
; graphics framework. It draws 50 circular nodes, then draws 50 lines | |
; (called "edges" in the code) between randomly selected nodes. On mouseover, | |
; nodes turn red. As you drag a node to a new position, the lines stretch and | |
; stay with the node. | |
; | |
; You can find the original Java program at | |
; | |
; http://www.piccolo2d.org/learn/grapheditor.html | |
; |
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
package edu.umd.cs.piccolo.tutorial; | |
import java.awt.Color; | |
import java.awt.Graphics2D; | |
import edu.umd.cs.piccolo.*; | |
import edu.umd.cs.piccolo.event.*; | |
import edu.umd.cs.piccolo.nodes.*; | |
import edu.umd.cs.piccolo.util.*; | |
import edu.umd.cs.piccolox.*; |
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
; This is the canonical Hello World program for the Piccolo2D structured 2D | |
; graphics framework. You can find the original Java program at | |
; | |
; http://www.piccolo2d.org/learn/patterns.html | |
; | |
; This program creates a Swing window that displays the phrase "Hello World" | |
; as a pNode object. You can: | |
; | |
; * pan the underlying canvas by holding down the LEFT mouse button while the | |
; pointer is anywhere within the window |