Skip to content

Instantly share code, notes, and snippets.

@sadaco
sadaco / gist:4065305
Created November 13, 2012 11:24
Console logs
Oct 18 17:48:11 unknown BugSenseDemo[176] <Warning>: BugSense --> Symbols are being retained...
Oct 18 17:48:11 unknown BugSenseDemo[176] <Warning>: BugSense --> Symbols have been retained.
Oct 18 17:49:22 unknown BugSenseDemo[176] <Warning>: BugSense --> Processing crash report...
Oct 18 17:49:22 unknown BugSenseDemo[176] <Warning>: BugSense --> Crashed on 2011-10-18 09:02:49 +0000, with signal SIGABRT (code #0, address=0x309c332c)
Oct 18 17:49:22 unknown BugSenseDemo[176] <Warning>: BugSense --> Generating JSON data from crash report...
Oct 18 17:49:22 unknown BugSenseDemo[176] <Warning>: BugSense --> Posting JSON data...
Oct 18 17:49:24 unknown BugSenseDemo[176] <Warning>: BugSense --> Server responded with status code: 200
@sadaco
sadaco / gist:4065296
Created November 13, 2012 11:22
messages at logging
[BugSenseController setLogMessagesCount:10];
[BugSenseController setLogMessagesLevel:8];
@sadaco
sadaco / gist:4065286
Created November 13, 2012 11:18
Track application flow
[BugSenseController leaveBreadcrumb:@"DetailViewController"];
@sadaco
sadaco / gist:4065268
Created November 13, 2012 11:14
Logging
@try {
// some exception throwing code
} @catch (NSException *exc) {
NSDictionary *data = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"sample-value", nil]
forKeys:[NSArray arrayWithObjects:@"sample-key", nil]];
BUGSENSE_LOG(exc, data);
}
@sadaco
sadaco / gist:4065261
Created November 13, 2012 11:12
send reports
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[BugSenseController sharedControllerWithBugSenseAPIKey:@"<Your BugSense API Key>"
userDictionary:nil
sendImmediately:YES];
// ...
}
@sadaco
sadaco / gist:4065251
Created November 13, 2012 11:09
custom data
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSDictionary *aNiceLittleDictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"myObject", @"myKey", nil];
[BugSenseController sharedControllerWithBugSenseAPIKey:@"<Your BugSense API Key>"
userDictionary:aNiceLittleDictionary];
//...
}
@sadaco
sadaco / bugsense_service.java
Created July 19, 2012 12:36
bugsense_service
public void onCreate() {
BugSenseHandler.setup(context, YOUR_API_KEY);
}
@sadaco
sadaco / gist:2989990
Created June 25, 2012 17:21
Nested Rules example LESS
@lightblue:#a9c6d2;
.cloudstyle(){
content: '';
position: absolute;
background: @lightblue;
z-index: -1
} //every Cloud has this style
#cloud {
@sadaco
sadaco / gist:2989984
Created June 25, 2012 17:20
Nested Rules example css
#cloud {
width: 350px;
height: 120px;
background: #a9c6d2;
border-radius: 100px;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
position: relative;
margin: 120px auto 20px;
}
@sadaco
sadaco / gist:2989979
Created June 25, 2012 17:19
Nested Rules pseudo-classes
a{
color:@pinky;
&:hover{
opacity:0.7;
}
}