This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // main.go | |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "strings" | |
| ) | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import datetime | |
| import time | |
| url = "https://reserve.cdn-apple.com/GB/en_GB/reserve/iPhone/availability.json" | |
| interested_stores = ['R245'] | |
| # Exclude iPhone 6 | |
| excluded = ['MGA92B/A', 'MGA92B/A', 'MGAJ2B/A', 'MGAE2B/A', 'MGAA2B/A', | |
| 'MGAK2B/A', 'MGAF2B/A', 'MGA82B/A', 'MGAH2B/A', 'MGAC2B/A'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| mat "github.com/skelterjohn/go.matrix" | |
| base "golearn/base" | |
| util "golearn/utilities" | |
| knnclass "golearn/knn" | |
| "fmt" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var width = 1500; | |
| var height = 1500; | |
| var color = d3.scale.linear() | |
| .domain([0, 350000]) | |
| .range(["white", "#3498db"]); | |
| var div = d3.select("body").append("div") | |
| .attr("class", "tooltip") | |
| .style("opacity", 0.8); |