This file contains hidden or 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
# run atos | |
sub symbolize_frames { | |
my ($images,$bt) = @_; | |
# create mapping of framework => address => bt frame (adjust for slid) | |
# and for framework => arch | |
my %frames_to_lookup = (); | |
my %arch_map = (); | |
my %base_map = (); | |
This file contains hidden or 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
-optimizationpasses 25 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontpreverify | |
-verbose | |
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | |
-printmapping out.map | |
-renamesourcefileattribute SourceFile | |
-keepattributes SourceFile,LineNumberTable | |
-keep class com.bugsense.** { *; } |
This file contains hidden or 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
import stripe | |
import collections | |
from texttable import Texttable | |
# TODO add pagination | |
# I will update this gist shortly when pagination is added | |
stripe_customers = stripe.Customer.all(count=100) | |
by_status = collections.defaultdict(list) |
This file contains hidden or 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
// http://stackoverflow.com/questions/5931033/how-can-i-know-if-a-javascript-exception-occurred-in-a-phonegap-application-and | |
(function(){ | |
window.onexception = function(e) { | |
console.log("Got an exception ", e, e.stack); | |
}; | |
This file contains hidden or 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
# encoding: utf-8 | |
class FuzzyClock | |
@@locales ||= {} | |
@@locales[:en] = { | |
:about => "Είναι σχεδόν %t", | |
:hour => { | |
0 => "δώδεκα", | |
1 => "μία", | |
2 => "δύο", |
This file contains hidden or 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
from google.appengine.api import xmpp | |
import logging | |
import logging.handlers | |
import os | |
DEFAULT_FROM_JID = 'logs@%s.appspotchat.com' % os.environ['APPLICATION_ID'] | |
class XmppLogHandler(logging.Handler): | |
def __init__(self, jid, from_jid): |
This file contains hidden or 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
require 'rubygems' | |
require 'activesupport' | |
$KCODE = 'u' | |
class String | |
# Converts the Greek Unicode characters contained in the string | |
# to latin ones (aka greeklish) and returns self. | |
# For unobstructive conversion call the non-bang method 'greeklish' | |
# | |
# example: |