Skip to content

Instantly share code, notes, and snippets.

@leearmstrong
leearmstrong / gist:8674334
Created January 28, 2014 19:22
PPS Source for GPS
/*
* Copyright (C) 2013 the8thlayerof.net
*
* GPS cape for UART4 on connector pins P9.11 P9.13 P8.26
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
@leearmstrong
leearmstrong / gist:2226821
Created March 28, 2012 14:52
Draws a circle with a number in the middle
//// Abstracted Graphic Attributes
NSString* textContent = [NSString stringWithFormat:@"%i",[myAnnotation.annotations count]];
//// General Declarations
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef context = UIGraphicsGetCurrentContext();
//// Gradient Declarations
NSArray* gradient3Colors = [NSArray arrayWithObjects:
(id)[UIColor lightGrayColor].CGColor,