See https://github.com/delitescere/docker-zulu and https://github.com/delitescere/docker-lein
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
Written for my buddy Charles Miller, 28-Aug-2013: | |
I look at you all see the tests there that're failing | |
While my compiler gently weeps | |
I look at the heap and I see it needs mark/sweeping | |
Still my compiler gently weeps | |
I don't know why nobody told you | |
How to unfold your data | |
I don't know how someone controlled you |
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
For @ctford, 16-Sep-2013 | |
@juliansgamble: | |
You get your algorithms for nothing and your theorems for free | |
I want my | |
I want my | |
I want my AST | |
@delitescere: | |
Now look at that IO |
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
tuple(... | |
).verifying("Invalid username or password", _ match { | |
case (Some(u), Some(p), _) => authenticate(u, p) | |
... | |
}) |
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
aMap.get("a key that might not exist") | |
.map(expressionUsingTheValue(_)) | |
.getOrElse(anotherExpression) |
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
lazy val defaultBrowserVersion = Play.configuration.getString("snapshot.browserVersion") | |
.map(extractVersion _) | |
.getOrElse(BrowserVersion.FIREFOX_3_6) // Firefox 3.6 makes a good default because it works on all OSes | |
// Do you really need to throw an exception? Why not log it as an error, and return None so you end up with the default above? | |
def extractVersion(browserString: String): Option[BrowserVersion] = { | |
allCatch opt { | |
Some(classOf[BrowserVersion].getField(browserString).get(null).asInstanceOf[BrowserVersion]) | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Greeting</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.10/handlebars.min.js"></script> | |
</head> | |
<body> | |
<h1>Greetings!</h1> |
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
(defproject com.example/foo "0.1.0" | |
:description "Does fooness" | |
:url "http://example.com/" | |
:license {:name "Copyright ©2014 Josh Graham"} | |
:aliases {"dist" ["do" ["clean"] ["test"] ["uberjar"]] ;$ lein dist # create distribution JAR | |
"debug" ["with-profile" "dev,debug" "run"]} ;$ lein debug # run for a 'remote' debugger | |
:aot :all | |
:auto-clean false ;"dist" alias does the full cycle | |
:clean-targets ^{:protect false} [:target-path :junit-results-dir] | |
:dependencies [ |
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
{"api":{"title":"Scan Data","links":{"describedBy":"https://mport.com/api-docs/scan-data","author":"mailto:api@mport.com?subject=scan-data+json-home"}},"resources":{"tag:https://mport.com/api-docs/scan-data/resource/scans":{"hints":{"formats":{"application/edn":{},"application/json":{}},"allow":["GET"],"authSchemes":[{"scheme":"Bearer"}]},"href":"/scan/"},"tag:https://mport.com/api-docs/scan-data/resource/scan":{"hints":{"formats":{"application/edn":{},"application/json":{}},"acceptRanges":["items"],"acceptPut":["application/json","application/edn"],"acceptPost":["application/json","application/edn"],"allow":["GET","POST","PUT","DELETE"],"authSchemes":[{"scheme":"Bearer"}]},"hrefVars":{"scan-id":"https://mport.com/api-docs/scan-data/param/scan-id"},"hrefTemplate":"/scan/{scan-id}"}}} |
OlderNewer