Skip to content

Instantly share code, notes, and snippets.

@neverov
neverov / gist:11137506
Created April 21, 2014 09:29
Java variance FTW
// using java play 2.2
public class Foo extends Action.Simple {
public F.Promise<SimpleResult> bar1() {
return F.Promise.pure(unauthorized("unauthorized")); // doesn't compile!
}
public F.Promise<SimpleResult> bar1() {
SimpleResult result = unauthorized("unauthorized");
(ns susanin.handler
(:require [compojure.core :refer :all]
[compojure.route :as route]
[compojure.handler :as handler]
[ring.middleware.json :refer [wrap-json-response]]
[ring.util.response :refer [response]]
[taoensso.carmine :as car :refer [wcar]]
[clj-http.client :as http]))
(defmacro redis [& body] `(car/wcar nil ~@body))
Andrey
/start
5:09:39 PM
Marfa
Greetings, Human! I am Marfa and I am here to guide you through the darkness. I mean, to talk to you.
Text me anytime and I’ll text you back.
5:09:44 PM
Andrey
hi
Process: boundless [86127]
Path: /Users/USER/Library/Application Support/Steam/*/boundless.app/Contents/MacOS/boundless
Identifier: com.turbulenz.boundless
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: boundless [86127]
User ID: 501
Date/Time: 2019-02-23 14:59:48.029 +0100
[2019-02-23 23:03:09.729] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/appbase/macosx/macosxentry.mm:318 TryPixelFormatsGot NSOpenGLPixelFormat for samples:1, opengl32:true
[2019-02-23 23:03:09.729] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/appbase/macosx/macosxentry.mm:395 -[NativeEntryView initWithFrame:]Format: alpha 8, depth 24, stencil 0
[2019-02-23 23:03:09.740] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/browserfeatures/filecache.cpp:169 InitializeCache dir: /Users/andrewn/Library/Caches/com.turbulenz.boundless/
[2019-02-23 23:03:09.740] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/appbase/standaloneplatformreaders.cpp:645 SetHttpCachePathHttpCache: enabled (/Users/andrewn/Library/Caches/com.turbulenz.boundless)
[2019-02-23 23:03:09.869] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/graphicsdriver/gl/glgraphicsdriver.cpp:435 GLExtraIniti