Skip to content

Instantly share code, notes, and snippets.

View robmaceachern's full-sized avatar

Robert MacEachern robmaceachern

View GitHub Profile
@robmaceachern
robmaceachern / .gitignore
Last active March 1, 2016 01:09 — forked from BennettSmith/.gitignore
Google Protobuf v2.6.0 Build Script for iOS
protobuf
protobuf-2.6.0
protobuf-2.6.1
protobuf-master
@robmaceachern
robmaceachern / apple-store-availability-poll.js
Created September 27, 2014 19:10
Polling the Apple Canada availability for the new iPhone and getting alerted via email
// Set the desiredStoreIds, desiredPhoneModels, and alertEmail below.
// Go to https://reserve.cdn-apple.com/CA/en_CA/reserve/iPhone/availability
// Open browser console
// Copy and paste everything in this file in to the console terminal and push Enter
// Get alerted via email when the device you want is available to reserve!
var desiredStoreIds = ['R280', 'R362', 'R460'];
var desiredPhoneModels = ['MG3H2CL/A', 'MG3E2CL/A', 'MG3K2CL/A', 'MG3F2CL/A'];
var alertEmail = 'email@example.com';
@robmaceachern
robmaceachern / Point.java
Created January 25, 2012 00:54
My point class
package com.robmaceachern.practice;
import java.util.Arrays;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
*
* @author Rob MacEachern rob@robmaceachern.com
*