Skip to content

Instantly share code, notes, and snippets.

View travis's full-sized avatar

Travis Vachon travis

View GitHub Profile
@travis
travis / gist:1084767
Created July 15, 2011 14:16
testing facebook connect with capybara and rspec
require 'mogli'
module FacebookIntegrationHelpers
shared_context "with unconnected facebook user" do
let(:fb_user) { create_test_user(installed: false) }
after { fb_user.destroy }
end
def app_client
Mogli::AppClient.new(AppConfig.facebook.access_token, AppConfig.facebook.app_id)

Keybase proof

I hereby claim:

  • I am travis on github.
  • I am tvachon (https://keybase.io/tvachon) on keybase.
  • I have a public key whose fingerprint is D776 98DB FE44 F081 E1DF 25AE 6A7B 3128 E72C 822A

To claim this, I am signing this object:

(.get "/builds"
(->
(fn [request response]
(go
(try
(let [user (<? (fetch (express/current-user)))
builds (<? (domain/recent-builds user))]
(.send response 200 (str (map #(parse-object-map % [:id]) builds))))
(catch :default e
(log-exception e)
(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