Skip to content

Instantly share code, notes, and snippets.

View johngoren's full-sized avatar

John Gorenfeld johngoren

View GitHub Profile
fun refreshTokensBlocking(): RefreshMyTokenResponse? {
Log.d("Refresher", "Entering RefreshTokensSync()")
val tokens = getTokens()
var refreshMyTokenResponse: RefreshMyTokenResponse? = null
runBlocking {
try {
val refreshToken = tokens?.refreshToken ?: return@runBlocking
val result = Online.service.refreshToken(refreshToken)
refreshMyTokenResponse = result
public class MyEncyclopediaEntry {
private final int name;
private final int nickname;
private final int summary;
private final int birthplace;
}
@johngoren
johngoren / gist:4600287
Created January 23, 2013 00:15
According to Wikipedia, serialized data was a format invented in the early 1980s by Xerox.
a:8:{s:4:"logo";s:0:"";s:7:"favicon";s:1:"0";s:4:"font";s:6:"Oswald";s:8:"font_alt";s:6:"Oswald";s:5:"color";s:5:"light";s:3:"css";s:0:"";s:16:"slideshow_enable";s:1:"1";s:9:"slideshow";a:6:{s:5:"title";a:2:{i:0;s:10:"Test Title";i:1;s:13:"Another Slide";}s:7:"caption";a:2:{i:0;s:12:"Test Caption";i:1;s:13:"Another Slide";}s:6:"button";a:2:{i:0;s:0:"";i:1;s:0:"";}s:4:"link";a:2:{i:0;s:0:"";i:1;s:0:"";}s:5:"video";a:2:{i:0;s:1:"1";i:1;s:1:"1";}s:5:"image";a:2:{i:0;s:81:"http://1245.gorenfeld.net/wp-content/uploads/2013/01/Bear-at-Campsite-620x949.jpg";i:1;s:83:"http://1245.gorenfeld.net/wp-content/uploads/2013/01/Old-Photo-of-Lodge-620x380.jpg";}}}
dyld: Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/node
Reason: image not found
(in /Users/warren/.rvm/gems/ruby-1.9.3-p362@winestore/gems/spree_core-1.3.1/app/assets/javascripts/store/checkout.js.coffee)