Skip to content

Instantly share code, notes, and snippets.

View sammcewan's full-sized avatar

Sam McEwan sammcewan

  • Auckland, New Zealand
View GitHub Profile
blueprint:
name: ZWaveJS - Aeotec WallMote Duo scene controller
description: |
Perform actions when Aeotec WallMote Duo buttons are interacted with.
The release action is equivalent to a long tap.
A release action is always triggered after a hold action, which makes
them a bit tricky to use. The hold action is repeated as long as the
button is held down.
<div class="slides">
<section class="stack" data-id="5b6017fc19d2dc9bd0ef1941599c2b06">
<section class="" data-id="804766a6f962e5c8775b03e1e0051489">
<h1>
<span style="font-size: 115.362px;">#BPMAC</span>&nbsp;</h1>
<div>Bastion Point Model Aircraft Club</div>
<img src="https://s3.amazonaws.com/media-p.slid.es/uploads/sammcewan/images/512590/launch.gif" style="width: 763.1456608497309px; height: 430.48994444596957px; max-height: none; max-width: none;">
</section>
<section class="" data-id="b163e69ae6cf9330cd68a338a9017a23">
<h2>Sam</h2>
@sammcewan
sammcewan / Mapbox.podspec
Last active January 3, 2016 18:09
iOS 7 MapBox
Pod::Spec.new do |m|
m.name = 'Mapbox'
m.version = '1.1.0'
m.summary = 'Open source alternative to MapKit.'
m.description = 'Open source alternative to MapKit supporting custom tile sources, offline use, and complete cache control.'
m.homepage = 'http://mapbox.com/mobile'
m.license = 'BSD'
m.author = { 'Mapbox' => 'ios@mapbox.com' }
@sammcewan
sammcewan / RestKitMagicalRecord.h
Created December 30, 2012 05:02
This Gist will intertwine RK and MagicalRecord.
// Initialize RestKit
AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:url];
RKObjectManager *objectManager = [[RKObjectManager alloc] initWithHTTPClient:httpClient];
[AFNetworkActivityIndicatorManager sharedManager].enabled = YES;
// Complete Core Data stack initialization
NSManagedObjectModel *managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:nil];
RKManagedObjectStore *managedObjectStore = [[RKManagedObjectStore alloc] initWithManagedObjectModel:managedObjectModel];
objectManager.managedObjectStore = managedObjectStore;