Skip to content

Instantly share code, notes, and snippets.

View aksimhal's full-sized avatar

Anish aksimhal

View GitHub Profile
@roadmapper
roadmapper / apple_availability.py
Last active September 18, 2016 05:22
Check all zip codes for availability of an Apple product
#!/usr/bin/python
import os
import sys
import json
import requests
import time
import urllib
cities = []
function metrics = pr_eval(detectVol, truthVol)
% W. Gray Roncal - 02.12.2015
% Feedback welcome and encouraged. Let's make this better!
% Other options (size filters, morphological priors, etc. can be added.
% z = rand(100,100);
% t = z > 0.8;
%
tic
%% params
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }