Skip to content

Instantly share code, notes, and snippets.

View pixelknitter's full-sized avatar
🍎
Fresh juice..

Eddie Freeman pixelknitter

🍎
Fresh juice..
View GitHub Profile
@pixelknitter
pixelknitter / archive-dSYM.sh
Last active March 13, 2019 08:08
dSYM Archiving Script
DSYM_ZIP_FPATH="/tmp/$DWARF_DSYM_FILE_NAME.zip"
# create dSYM .zip file
echo "Compressing .dSYM to ${DSYM_ZIP_FPATH} ..."
test -e "${DSYM_SRC}" && (echo "Creating zip of dSYM file" && /usr/bin/zip -r "${DSYM_ZIP_FPATH}" "${DSYM_SRC}" -dc
@pixelknitter
pixelknitter / Breadcrumb.js
Created October 15, 2012 20:55
HTML5 Crittercism Code Snippets for Docs
// Save event handler with breadcrumb
$('#saveButton').click(function() {
savePlayerInfo();
Crittercism.leaveBreadcrumb("Save button clicked");
});
@pixelknitter
pixelknitter / Breadcrumb.m
Last active October 11, 2015 17:38
Code Snippets for Crittercism iOS Docs
[Crittercism leaveBreadcrumb:@"<breadcrumb>"];
@pixelknitter
pixelknitter / Breadcrumb.java
Created October 15, 2012 21:31
Android Code Snippets for Crittercism Docs
// Did the user get here before crashing?
String breadcrumb = "My Breadcrumb";
Crittercism.leaveBreadcrumb(breadcrumb);
@pixelknitter
pixelknitter / find_dsym.sh
Created October 25, 2012 21:46 — forked from gorbster/find_dsym.sh
Find a matching dSYM UUID in the Spotlight index
#!/bin/bash
die () {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 1 ] || die "1 argument (UUID) required, $# provided"
MDFIND=/usr/bin/mdfind
UUID=`echo ${1} |
@pixelknitter
pixelknitter / PLCrashUtil
Created November 27, 2012 01:33
Util Script Examples
./plcrashutil convert --format=iphone myapp.plcrash > myapp.crash
var puzzlers = [
function ( a ) { return 8*a - 10; },
function ( a ) { return (a-3) * (a-3) * (a-3); },
function ( a ) { return a * a + 4; },
function ( a ) { return a % 5; }
];
var start = 2;
var applyAndEmpty = function(num, queueOfFunctions) {
@pixelknitter
pixelknitter / debug_crashreporting_interference
Last active August 29, 2015 14:05
Debug Crash Reporting Interference
NSLog(@"Before Crittercism Init: %p", NSGetUncaughtExceptionHandler());
[Crittercism enableWithAppID:@"<YOUR_CRITTERCISM_APP_ID>"];
NSLog(@"After Crittercism Init: %p", NSGetUncaughtExceptionHandler());
// Then before you cause a crash log the pointer again:
NSLog(@"Handler Before Crash: %p", NSGetUncaughtExceptionHandler());
@pixelknitter
pixelknitter / keybase.md
Created November 12, 2014 21:14
keybase.md

Keybase proof

I hereby claim:

  • I am NinjaSudo on github.
  • I am ninjasudo (https://keybase.io/ninjasudo) on keybase.
  • I have a public key whose fingerprint is CD6B D743 6851 3840 4928 69EB 3462 CC40 6EEB 6BC7

To claim this, I am signing this object:

@pixelknitter
pixelknitter / OLCharacterCreationHelper.adoc
Last active October 28, 2016 16:30
Open Legend RPG - Character Creation Helper: Feats, Boons, and Banes, oh my!

Connecting the Dots in Open Legend Character Creation (WIP)

This graphGist is meant to help find synergies between the different components of a character in the Open Legend RPG system: attributes, feats, boons, and banes.

//Attributes