Skip to content

Instantly share code, notes, and snippets.

View spacepluk's full-sized avatar

Oscar Morante spacepluk

  • Berlin
  • 12:17 (UTC +02:00)
View GitHub Profile
function fetchAllStuff() {
fetchSomething().then(function(something) {
return fetchSomethingElse(something)
}).then(function(somethingElse) {
return fetchTheLastThing(somethingElse)
})
}
diff --git a/config.h.in b/config.h.in
index 914d606..2e2e03f 100644
--- a/config.h.in
+++ b/config.h.in
@@ -18,6 +18,9 @@
/* Define if you want your background to use the parent window background */
#undef ENABLE_TRANSPARENCY
+/* Define if you want to display wide glyphs */
+#undef ENABLE_WIDE_GLYPHS
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
#Option "SwapbuffersWait" "true"
Option "AccelMethod" "sna"
EndSection
(defmethod action->events "new-session"
[action state]
(let [state (action->events {:action "stop-session"} state)
state (assoc state :session (session state (:params action)))
state (add-events state [(session-start state)])]
state))
System.TypeInitializationException: An exception was thrown by the type initializer for ClojureRepl ---> System.NullReferenceException: Object reference not set to an instance of an object
at clojure.lang.Compiler.TryLoadInitType (System.String relativePath) [0x00000] in <filename unknown>:0
at clojure.lang.RT.load (System.String relativePath, Boolean failIfNotFound) [0x00000] in <filename unknown>:0
at clojure.lang.RT.load (System.String relativePath) [0x00000] in <filename unknown>:0
at clojure/core$load$fn__5867__5871.invoke () [0x00000] in <filename unknown>:0
at clojure/core$load__5874.doInvoke (System.Object ) [0x00000] in <filename unknown>:0
at clojure.lang.RestFn.invoke (System.Object arg1) [0x00000] in <filename unknown>:0
at clojure/core$load_one__5747.invoke (System.Object , System.Object , System.Object ) [0x00000] in <filename unknown>:0
at clojure/core$load_lib$fn__5785__5789.invoke () [0x00000] in <filename unknown>:0 , compiling: (C:\Users\space\Desktop\GITest\Assets\Ar
$ lein with-profile +android skummet compile
Exception in thread "main" java.lang.RuntimeException: Unable to resolve var: clojure.core/*lean-var?* in this context, compiling:(/tmp/form-init49049350861462216.clj:1:223)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6730)
at clojure.lang.Compiler.analyze(Compiler.java:6524)
at clojure.lang.Compiler.analyze(Compiler.java:6485)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3791)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6725)
at clojure.lang.Compiler.analyze(Compiler.java:6524)
at clojure.lang.Compiler.analyze(Compiler.java:6485)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3791)
(defproject tv.mirada/tvmetrix-client "0.1.0"
:description "tvmetrix cross-platform client."
:min-lein-version "2.5.3"
:dependencies [[org.clojure/clojure "1.7.0"]
[prismatic/schema "1.0.4"]]
:clean-targets ["target"]
:profiles
//#include <Cocoa/Cocoa.h>
#include <pthread.h>
#include <mono/metadata/appdomain.h>
#include <mono/metadata/assembly.h>
#include <mono/metadata/image.h>
#include <mono/metadata/class.h>
#include <mono/metadata/object.h>
// http://www.jerrodputman.com/2010/01/10/the-unityobjective-c-divide/
@spacepluk
spacepluk / java.clj
Last active December 23, 2015 15:42
(defn java->clj
"Recursively transforms Java arrays into Clojure vectors, and Java Maps into
Clojure persistent maps. With option ':keywordize-keys true' will convert
keys from strings to keywords."
([x] (java->clj x :keywordize-keys false))
([x & opts]
(let [{:keys [keywordize-keys]} opts
keyfn (if keywordize-keys keyword identity)
f (fn thisfn [x]
(cond
diff --git a/build/genie_linux b/build/genie_linux
old mode 100644
new mode 100755
diff --git a/build/scripts/Torque6.lua b/build/scripts/Torque6.lua
index a861b97..3eda816 100644
--- a/build/scripts/Torque6.lua
+++ b/build/scripts/Torque6.lua
@@ -127,7 +127,7 @@ function Torque6()
configuration "linux or bsd"
links { "m" }