Skip to content

Instantly share code, notes, and snippets.


Ben Gotow bengotow

View GitHub Profile
bengotow / app.js
Created August 7, 2015 19:42
concurrency - rolling average
View app.js
var Promise = require('bluebird');
var request = Promise.promisify(require('request'));
var fs = require('fs');
global.Nylas = require('nylas').config({
appId: '1',
appSecret: '2',
apiServer: ''
bengotow / pong.rb
Created August 22, 2014 01:05
Ping back and forth between two email accounts over and over forever using Inbox
View pong.rb
#!/usr/bin/env ruby
require 'inbox'
@inbox_careless ='xdfim6g4mbduytzjhn8ud490', '80q785tt4l6qn5g07c5ylwi6a', '<<token 1>>')
@inbox_emoink ='xdfim6g4mbduytzjhn8ud490', '80q785tt4l6qn5g07c5ylwi6a', '<<token 2>>')
emoink = @inbox_emoink.namespaces.first
careless = @inbox_careless.namespaces.first
while true do
View gist:131e51f30155efe5bd42
### Keybase proof
I hereby claim:
* I am bengotow on github.
* I am bengotow ( on keybase.
* I have a public key whose fingerprint is 74AB 1024 E78C 6F3A 12F1 D92C C034 F07C CC52 32D1
To claim this, I am signing this object:
bengotow /
Last active August 29, 2015 14:04
A simple implementation of the authorization flow for Inbox. Presents a sign in page, and then displays the first message from the user's inbox once they've signed in.
#!/usr/bin/env python
# NOTE: This sample app does NOT use SSL. Before deploying this code to a
# server environment, you should ENABLE SSL to avoid exposing your API
# access token in plaintext.
# To run this demo app:
# 1. Save this file to your computer as ``
# 2. In the Inbox Developer Portal, create a new application. Replace the
bengotow / gist:9433828
Created March 8, 2014 15:52
Objective-C convenience methods for abstracting timing dependency
View gist:9433828
- (void)example
NSTextView * console = [self xcodeConsoleIn: IDEWindow];
NSInteger baseLength = [[console string] length] + [command length];
[_log appendFormat: @"\n Writing into console: %@", command];
[console insertText: command];
[console insertNewline:nil];
bengotow /
Last active December 17, 2015 04:39
Living document with information about adding the Spark Inspector framework into a RubyMotion project

###Add the Spark Inspector to a RubyMotion Project

Please give these instructions a try and let me know how it goes - it should be possible to get the Spark Inspector working. I don't own a copy of RubyMotion yet, but I identified the vendor_project options I think you'll need to include and link the Inspector's framework into your app.

UPDATE: @tbdr has confirmed that the instructions below work. Feel free to comment below if you discover issues!

UPDATE 2: @tbdr has published a gem motion-sparkinspector to make this easier. Source available

  1. Download the Spark Inspector from
View namespace.html
<html version="XHTML+RDFa 1.1" xmlns=""
lang="en" >