Skip to content

Instantly share code, notes, and snippets.

View swannodette's full-sized avatar

David Nolen swannodette

View GitHub Profile
var dt = doc.dtfield.substr(0, doc.dtfield.length-1).split('T');
var d = dt[0].split('-');
var t = dt[1].split(':');
var utc = Date.UTC.apply(null, d.concat(t));
[INFO] snapshot leiningen:lein-swank:1.0.0-SNAPSHOT: checking for updates from central
[null] An error has occurred while processing the Maven artifact tasks.
[null] Diagnosis:
[null]
[null] Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'leiningen:lein-swank:jar': Error getting POM for 'leiningen:lein-swank' from the repository: Unable to store local copy of metadata: Error updating group repository metadata
[null] leiningen:lein-swank:pom:1.0.0-SNAPSHOT
[null]
[null]
[null] for project leiningen:lein-swank
[null] leiningen:lein-swank:jar:1.0.0-SNAPSHOT
(defn start-server-socket!
"Given a `server-socket' (java.net.ServerSocket), call
`handle-socket' for each new connection and provide current
socket.
`multiple-connections?' defines whether multiple connections can be
made to this socket server (default: true).
This will return immediately with the Thread that is blocking for
new connections. Use Thread.join() if you need to wait for the
(start-thread
(let [G__1997 *compile-path*
G__1998 *3
G__1999 *2
G__2000 *ns*
G__2001 *print-level*
G__2002 *allow-unresolved-vars*
G__2003 *macro-meta*
G__2004 *math-context*
G__2005 *read-eval*
; MBP 2.53ghz JDK 1.6 64bit
; ~250ms
(time
(dotimes [x 100000]
(let [[a b c d e f g h i j] (. #" " split "1 2 3 4 5 6 7 8 9 0")])))
; ~150ms
(time
(dotimes [x 100000]
; ~1400ms
(time
(dotimes [x 100000]
(let [ary (. #" " split "1 2 3 4 5 6 7 8 9 0")
a (aget ary 0)
b (aget ary 1)
c (aget ary 3)
d (aget ary 4)
e (aget ary 5)
f (aget ary 6)
Query: SELECT * FROM event WHERE datetime_ref in (NOW(),) AND stream_id in ('49') ORDER BY created DESC LIMIT 10 OFFSET 0
Query: SELECT * FROM event WHERE datetime_ref in (NOW(),) AND stream_id in ('49') ORDER BY created DESC LIMIT 10 OFFSET 0
awake: function()
{
this.mapOutletsToThis();
this.initSelectLanguage();
this.initInstalledSpacesListView();
this.clearInstalledButton.addEvent('click', function(evt) {
evt = new Event(evt);
SSUninstallAllSpaces();
});
},
(defn tests []
[{:name 'suiteA
:total 3
:passed (promise)
:failed (promise)
:success (promise)
:tests [{:name 'testA :success (promise)}
{:name 'testB :success (promise)}
{:name 'testC :success (promise)}]}
{:name 'suiteB