This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix up Parse.Error handling for rollbar :( | |
app.use(function(err, req, res, next) { | |
var data = null; | |
if (err instanceof Parse.Error) { | |
var parseErr = err; | |
fingerprint = parseErr.code && parseErr.code.toString(); | |
// See if its one of our cloud code errors | |
try { | |
cloudErr = JSON.parse(err.message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix up Parse.Error handling for rollbar :( | |
app.use(function(err, req, res, next) { | |
var data = null; | |
if (err instanceof Parse.Error) { | |
var parseErr = err; | |
fingerprint = parseErr.code && parseErr.code.toString(); | |
// See if its one of our cloud code errors | |
try { | |
cloudErr = JSON.parse(err.message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix up Parse.Error handling for rollbar :( | |
app.use(function(err, req, res, next) { | |
var data = null; | |
if (err instanceof Parse.Error) { | |
var parseErr = err; | |
fingerprint = parseErr.code && parseErr.code.toString(); | |
// See if its one of our cloud code errors | |
try { | |
cloudErr = JSON.parse(err.message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aadhk.woinvoice.util; | |
import android.content.Context; | |
import android.content.pm.ApplicationInfo; | |
import android.os.Build; | |
import android.provider.ContactsContract; | |
import android.provider.Settings; | |
import android.util.Log; | |
import android.util.TimingLogger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aadhk.woinvoice.util; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.content.pm.ApplicationInfo; | |
import android.os.Build; | |
import android.preference.PreferenceManager; | |
import android.provider.Settings; | |
import android.util.Log; | |
import android.util.TimingLogger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript">// <![CDATA[ | |
(function(i,s,o,g,r,a,m){i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//data.driphub.com/gibraltar/track.js','__dphb'); | |
// ]]></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def guidsFromFeedItem(feedItem: FeedItem): Option[(Long, Option[Long])] = { | |
feedItem.id.split(splitChar).toList match { | |
case Long(id1) :: Long(id2) :: Nil => Some(id1, Some(id2)) | |
case Long(id1) :: Nil => Some(id1, None) | |
case _ => log.error("Failed to parse feedItem guid, expected a long, or two colon separated longs: %s".format(feedItem.id) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://xuijs.com/downloads/xui-2.3.2.min.js" type="text/javascript" /> | |
<script type="text/javascript"> | |
x$(window).on('resize', function() { | |
alert('resize'); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.acme | |
import scala.collection.mutable.HashMap | |
class IterableExtensions[A,B](pairs : Iterable[(A,B)] ) { | |
def toHashMap() : HashMap[A,B] = { | |
val hashMap = new HashMap[A,B] | |
hashMap ++= pairs | |
hashMap | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.someone.common | |
import scala.collection.mutable.HashMap | |
class IterableExtensions[A,B](pairs : Iterable[(A,B)] ) { | |
def toHashMap() : HashMap[A,B] = { | |
val hashMap = new HashMap[A,B] | |
hashMap ++= pairs | |
hashMap | |
} |