Skip to content

Instantly share code, notes, and snippets.

View travis's full-sized avatar

Travis Vachon travis

View GitHub Profile
(do-something :to
:args)))
(do-something :to
:args
)))
(go
(try
(let [posting-ch (parse/get Posting "xWMyZ4YEGZ")
comments-ch (parse/find (doto (Query. Comment)
(.equalTo "posting" posting-pointer)))
posting (<? posting-ch)
comments (<? comments-ch)]
;; now we can do something
)
(catch js/Error e
var query = new Parse.Query(Post);
query.get("xWMyZ4YEGZ", {
success: function(post) {
var query = new Parse.Query(Commment);
query.equalTo("postId", "xWMyZ4YEGZ");
query.first({
success: function(object) {
// Now we can finally do something
},
error: function(error) {
@travis
travis / gist:6466115
Created September 6, 2013 16:15
parse clojurescript core.async workaround
(js* "var setImmediate = function(fn) { fn(); }")
@travis
travis / gist:6225846
Last active December 21, 2015 01:09
The core of UIAutomation/nREPL/emacs awesomeness.
(cemerick.austin.repls/cljs-repl
(cljs.repl.uia/repl-env :app "/path/to/my/app/MyAwesomeApp.app"))
Hi there,
I’m guessing it's not every day you start using a new service and I know from experience it can be a bit tough to get started with a new tool sometimes. I want to make sure you have everything you need to feel welcome and productive. If there's ever anything our team can help you with you can always reach us at team@cisimple.com or drop us a tweet @cisimple.
If there is just one single tip for getting the most out of cisimple, I'd say give OTA notifications a shot. It's super handy being able to update beta testers every time a build finishes and you can always go to your build history and send out an OTA link on the fly whenever you'd like. We also support TestFlight and we take care of all the code signing for you.
One last thing I want to say is that the whole team is always around, almost 24/7, to reply to your emails. In fact, you can just hit reply to this email or any others you receive from us. Whether you need help, have ideas or just want to say "hello", we'll get back to you within
@travis
travis / gist:5542183
Created May 8, 2013 17:48
port broken in 2.1.3
$ lein version
Leiningen 2.1.3 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM
$ lein repl :headless :port 12345
nREPL server started on port 48422
$ ../leiningen/bin/lein repl :headless :port 12345
nREPL server started on port 12345
The street!
Filled with gigantic business dickbags
squinting at tiny, tiny phones, slamming
into each other like AXE-encrusted bumper cars
Navigating this danger zone of douchebaggery, this
avenue of asshats!
Such is the curse of
(defspout resque-spout ["action"]
[conf context collector]
(let [pool (redis/redis (:resque (config/redis-config)))]
(spout
(nextTuple []
(when-let [string (get-action redis)]
(when-let [action (action-from-resque string)]
(let [id (str (java.util.UUID/randomUUID))]
(emit-spout! collector [action] :id id)))))
(ack [id]