Skip to content

Instantly share code, notes, and snippets.

View byron-janrain's full-sized avatar

Byron Kam byron-janrain

View GitHub Profile
noUnderscores = gelfData.map {|k,v| [k[0] != "_" ? k : k[1..-1],v]}.to_h

Keybase proof

I hereby claim:

  • I am byron-janrain on github.
  • I am byronjanrain (https://keybase.io/byronjanrain) on keybase.
  • I have a public key ASDB4PzMyEd4f7ct1c2AYjSVS-f6fQdGa-tJeff6MDAYhwo

To claim this, I am signing this object:

ubuntu@ip-10-11-0-239:~$ cat load.log
2016/06/09 19:53:34 current speed: 0 puts/sec
2016/06/09 19:53:36 current speed: 176 puts/sec
2016/06/09 19:53:37 current speed: 624 puts/sec
2016/06/09 19:53:39 current speed: 888 puts/sec
2016/06/09 19:53:39 current speed: 0 puts/sec
2016/06/09 19:53:40 current speed: 272 puts/sec
2016/06/09 19:53:40 current speed: 470 puts/sec
2016/06/09 19:53:42 current speed: 283 puts/sec
2016/06/09 19:53:44 current speed: 679 puts/sec
@byron-janrain
byron-janrain / gist:91dc1c830bc1ecab2796
Last active August 29, 2015 14:17
example social login event handler
(function() {
if (typeof window.janrain !== 'object') window.janrain = {};
if (typeof window.janrain.settings !== 'object') window.janrain.settings = {};
/* _______________ can edit below this line _______________ */
janrain.settings.tokenUrl = '__REPLACE_WITH_YOUR_TOKEN_URL__';
janrain.settings.type = 'embed';
janrain.settings.appId = 'ohhongcgbmddmdplpanb';
janrain.settings.appUrl = 'https://plex-qa.rpxnow.com';
@byron-janrain
byron-janrain / semsem.py
Created October 24, 2014 21:28
SublimeText 3 plugin for SemSem
import sublime, sublime_plugin
class SemSemListener(sublime_plugin.EventListener):
def on_modified(self, view):
if not view.settings().get('semsem_go'):
return
region = view.sel()[0]
current = region.begin() - 1
prev = region.begin() - 2
sem = view.substr(current)