Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert MacEachern robmaceachern

View GitHub Profile
@robmaceachern
robmaceachern / .gitignore
Last active Mar 1, 2016 — forked from BennettSmith/.gitignore
Google Protobuf v2.6.0 Build Script for iOS
View .gitignore
protobuf
protobuf-2.6.0
protobuf-2.6.1
protobuf-master
@robmaceachern
robmaceachern / apple-store-availability-poll.js
Created Sep 27, 2014
Polling the Apple Canada availability for the new iPhone and getting alerted via email
View apple-store-availability-poll.js
// 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';
View Point.java
package com.robmaceachern.practice;
import java.util.Arrays;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
*
* @author Rob MacEachern rob@robmaceachern.com
*