Skip to content

Instantly share code, notes, and snippets.

View ericmaxwell2003's full-sized avatar

Eric Maxwell ericmaxwell2003

View GitHub Profile
@ericmaxwell2003
ericmaxwell2003 / Animal.java
Last active September 25, 2017 21:49
Using composition over inheritance with Realm
interface Animal {
String getColor();
void setColor(String color);
int getLegCount();
void setLegCount(int legCount);
}
@ericmaxwell2003
ericmaxwell2003 / Find_iPhone_6+_in_Columbus
Last active August 29, 2015 14:06
Groovy Script to determine if there are any 64 or 128 byte iPhone 6 Plus's in Columbus Ohio. (specifically at the Easton or Polaris stores).
/**
* Simple script you can run in GroovyConsole or elsewhere to quickly find 64 or 128 byte
* iPhone 6 plus's in Columbus.
*
* You could easily adapt this to work for other locations as well.. It's pretty amazing
* how much infomration you can get back from Apple and how easy it is to get it.
*
* The link to get the JSON describing whether the phone is in and details for stores, ordered from
* closest to farthest by zip code is:
* "http://store.apple.com/us/retailStore/availabilitySearch?parts.0=${partNumber}&zip=${zip}",