Skip to content

Instantly share code, notes, and snippets.

@sadaco
sadaco / README.md
Last active November 8, 2015 18:11
USA map with "click-to-zoom via transform" and "zoom controls"
@sadaco
sadaco / gist:8562460
Last active January 4, 2016 03:29
wrk command
wrk -c 16 -t 8 -d 85s -s wrk.lua —latency —timeout 5s http://our.host/our/uri
@sadaco
sadaco / gist:6291715
Last active December 21, 2015 10:28
Gradle
apply plugin: 'android'
repositories {
maven {
url "http://www.bugsense.com/gradle/"
}
}
dependencies {
compile "com.bugsense.trace:bugsense:3.5"
@sadaco
sadaco / gist:6291345
Created August 21, 2013 07:34
add repo details to the pom.xml file
<repositories>
<!-- other repositories here -->
<repository>
<id>bugsense repo</id>
<name>The BugSense Repository</name>
@sadaco
sadaco / gist:6291333
Created August 21, 2013 07:32
Maven dependency
<dependencies>
<!-- other dependencies here -->
<dependency>
<groupId>com.bugsense.trace</groupId>
<artifactId>bugsense</artifactId>
<version>3.5</version>
</dependency>
@sadaco
sadaco / gist:4986080
Created February 19, 2013 13:52
enable the LogCat logging
setLogging(int lines)
setLogging(String filter)
setLogging(int lines, String filter)
@sadaco
sadaco / gist:4985798
Created February 19, 2013 13:19
add key value pairs to the extra map
BugSenseHandler.addCrashExtraData("level", "second level");
BugSenseHandler.addCrashExtraData("difficulty", "impossibruuu");
@sadaco
sadaco / gist:4079302
Created November 15, 2012 15:49
bugsense logcat support
// For example if you want to get the last 1000 lines and log all messages
// with priority level "warning" and higher
BugSenseHandler.setLogging(1000, "*:W");
//Log last 100 messages
BugSenseHandler.setLogging(100);
//Log all the messages with priority level "warning" and higher, on all tags.
BugSenseHandler.setLogging("*:W");
@sadaco
sadaco / gist:4065796
Created November 13, 2012 13:36
Set up BugSense
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[BugSenseController sharedControllerWithBugSenseAPIKey:@"<Your BugSense API Key>"];
// ...
}
@sadaco
sadaco / gist:4065792
Created November 13, 2012 13:36
Bugsense library
#import <BugSense-iOS/BugSenseController.h>