This file contains 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
CLJ_NREPL_PORT:=22340 | |
CLJS_JAR_VERSION:=1.7.48 | |
CLJS_JAR_URL:=https://github.com/clojure/clojurescript/releases/download/r$(CLJS_JAR_VERSION)/cljs.jar | |
.PHONY: def_target | |
def_target : null | |
# http://blog.jgc.org/2015/04/the-one-line-you-should-add-to-every.html |
This file contains 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 zentrope.hornet { | |
import scala.actors._ | |
import org.hornetq.api.core._ | |
import org.hornetq.api.core.client._ | |
// ---------------------------------------------------------------------- | |
private object Util { |
This file contains 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 zentrope.sql { | |
import java.sql.SQLException | |
class Settings ( | |
val url : String, | |
val user: String, | |
val pass: String, | |
val driver: String | |
) |
This file contains 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
// A small chat server in order to work out the details of a | |
// socket server using Actors. And maybe just a little attempt | |
// to wrap TCP itself inside an Actor, kinda like Erlang does | |
// it. The whole idea is to try and make things seem simpler, | |
// ultimately, and to remove any shared state. | |
package zentrope.chat { | |
import java.net.Socket | |
import java.net.ServerSocket |
This file contains 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
// A small chat server in order to work out the details of a | |
// socket server using Actors. And maybe just a little attempt | |
// to wrap TCP itself inside an Actor, kinda like Erlang does | |
// it. The whole idea is to try and make things seem simpler, | |
// ultimately, and to remove any shared state. | |
package zentrope.chat { | |
import java.net.Socket | |
import java.net.ServerSocket |
This file contains 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
private class Http(val address: String) { | |
// Simple class for snagging content from and posting content | |
// to a URL. No error handling. | |
import java.net._ | |
import java.io._ | |
import scala.io._ | |
def get(): String = { | |
val url: URL = new URL(address) |
This file contains 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
// A sample app demonstrating one way to use actors to manage other | |
// actors created dynamically. Use case: an app that needs to maintain | |
// short-lived connections to remote resources (like a messaging queue). | |
import scala.actors._ | |
import scala.actors.Actor._ | |
class DelegateActor(val id: String) extends DaemonActor { | |
// Represents an actor that does some work, or hangs on to | |
// an external resource, such as a socket connection to an MQ |
This file contains 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
import sbt._ | |
import Keys._ | |
import Project.Initialize | |
import org.fusesource.scalate.TemplateSource | |
import org.fusesource.scalate.TemplateEngine | |
import java.io.File |
This file contains 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
import sbt._ | |
import Keys._ | |
import Process._ | |
import Project.Initialize | |
import java.io.File | |
object CoffeeScriptPlugin extends Plugin { |
This file contains 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
import java.io.File | |
import javax.imageio.ImageIO | |
import java.awt.image.BufferedImage | |
import java.awt.geom._ | |
import java.awt.Color | |
import java.awt.Font | |
import java.awt.Graphics2D | |
import java.util.Date |