Skip to content

Instantly share code, notes, and snippets.

View cdesch's full-sized avatar
🏠
Working from home

cdesch cdesch

🏠
Working from home
View GitHub Profile
@cdesch
cdesch / ObjectiveCSnippets
Created March 14, 2012 02:26
Useful Objective-C Snippets
//Deprecating an Item with a define
#define DEPRECATED __attribute__ ((deprecated))
@cdesch
cdesch / touchCorePlot
Created March 13, 2012 23:37
Core Plot Scatterplot Point size for touch detection
// Create plot and increase size for
CPTScatterPlot *dataSourceLinePlot = [[CPTScatterPlot alloc] init];
dataSourceLinePlot.plotSpace = plotSpace;
dataSourceLinePlot.identifier = colorName;
dataSourceLinePlot.plotSymbolMarginForHitDetection = 10.0f;
@cdesch
cdesch / CRC8.m
Created March 1, 2012 19:14
CRC8
//
// CRC8.m
//
// Created by Chris Desch on 2/6/12.
// Translation from http://avrhelp.mcselec.com/index.html?crc8.htm
- (int)crc8Checksum:(NSString*)dataFrame{
char j;
int crc8 = 0;