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
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import axios from 'axios';
import Product from '../../models/Product'
// Note the special import here!
interface ICardCollectionProps {
}
func longestSequence(_ A: [Int]) -> Int {
var adjacentCounts = [Int: Int]()
var max = 0
for index in 0..<A.count {
if adjacentCounts[index] != nil {
continue
}
var leftSide = adjacentCounts[index - 1] ?? 0
var rightSide = adjacentCounts[index + 1] ?? 0
adjacentCounts[index] = leftSide + rightSide + 1
@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
@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 / 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());
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 / PLCrashUtil
Created November 27, 2012 01:33
Util Script Examples
./plcrashutil convert --format=iphone myapp.plcrash > myapp.crash
@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 / 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 / Breadcrumb.m
Last active October 11, 2015 17:38
Code Snippets for Crittercism iOS Docs
[Crittercism leaveBreadcrumb:@"<breadcrumb>"];