Skip to content

Instantly share code, notes, and snippets.

@channemann
channemann / (A) CareLink-Range-2.md
Last active October 27, 2018 19:51
Range tests of Medtronic CareLink USB Stick
@ps2
ps2 / gist:2eaafd0e3635b13a5c7c
Last active August 29, 2015 14:27
dump history medtronic pump carelink rf
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
meter a7 628077 5d 00 b7
@bobspryn
bobspryn / preferredFontDescriptorWithTextStyle sizes and styles
Created December 11, 2013 01:12
Apple iOS7 sizes and traits for all UIFontTextStyle's and UIContentSizeCategory's
UIContentSizeCategoryExtraSmall
FontStyle: UICTFontTextStyleBody
Point size 14.000000
Family Name .AppleSystemUIBody
FontStyle: UICTFontTextStyleHeadline
Point size 14.000000
Family Name .AppleSystemUIHeadline
Bold
FontStyle: UICTFontTextStyleSubhead
Point size 12.000000
@kylef
kylef / post-checkout.sh
Last active December 11, 2019 21:09
Git post-checkout hook to install CocoaPods
#!/bin/bash
#
### CocoaPods git-checkout hook
#
# This is a hook which you can install, it will automatically
# run `pod install` when you do a git pull/clone/checkout.
#
# The hook can be used to make CocoaPods usable with Xcode CI.
#
## Installation
@ryancole
ryancole / foo.m
Created August 7, 2012 01:06
Convert NSPredicate into NSDictionary for use as a query string in an AFNetworking HTTP request
- (NSURLRequest *)requestForFetchRequest:(NSFetchRequest *)fetchRequest
withContext:(NSManagedObjectContext *)context {
// init the query string dictionary
NSMutableDictionary *queryString = nil;
// if we're given a predicate, convert it to a dictionary
if (fetchRequest.predicate) {
if ([fetchRequest.predicate isKindOfClass:[NSCompoundPredicate class]]) {