Skip to content

Instantly share code, notes, and snippets.

from datamule import Portfolio
from datetime import datetime
for month in range(1, 13):
# Format month as 2-digit string
month_str = f"{month:02d}"
# Create date ranges for the first and last day of each month
start_date = f"2022-{month_str}-01"

Search by meaning

frontpage the vibes are off in the phillippines inflation poses a threat to the american worker statement on multiculturalism annoyed_with_scotus economic inequality

FulfillmentCenter Location Country SquareFeet YearOpened Description of Operation
PHX3 6835 West Buckeye Road, Phoenix, Arizona, 85043 1,000,000 September2007 Large Sortable Fulfillment CenterOriginally opened at 605,000 Sq. Ft. Expanded by 400,000 Sq. Ft.  in Dec. 2011
PHX5 16920 W. Commerce Dr. , Goodyear, Arizona, 85338-3620 1,200,000 June2008 Non-sortable Fulfillment CenterOriginally opened at 800,000 Sq. Ft. Expanded to 1.2 Million Sq. Ft + a 230,000 sq ft mezzanine in 2011.
PHX6TFC1 4750 & 5050 West Mohave Street, Phoenix, Arizona, 85043-4428 1,207,000 October 2010 Large Sortable Fulfillment Center in one half of the buildingSmall Sortable Fulfillment Center in the other half
PHX7 800 N. 75th Ave, Phoenix, Arizona, 85043-3101 1,200,000 September2011 Small Sortable and Non Sortable Fulfillment Center
UAZ1 Phoenix, Arizona, 85001   2015 Prime Now Hub
ONT2 1910 E. Central Ave., Southgate Building 3, San Bernardino, California, 92408-0123 951,700 October 2012 Small Sortable
@john-friedman
john-friedman / index.html
Created January 16, 2019 03:20
Interactive Map
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/topojson/1.6.9/topojson.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/datamaps/0.5.7/datamaps.all.min.js"></script>
</head>
<body>
@john-friedman
john-friedman / index.html
Last active January 16, 2019 03:19
Interactive Map
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/topojson/1.6.9/topojson.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/datamaps/0.5.7/datamaps.all.min.js"></script>
</head>
<body>
@john-friedman
john-friedman / index.html
Last active January 16, 2019 03:18
Clickable United States
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/topojson/1.6.9/topojson.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/datamaps/0.5.7/datamaps.all.min.js"></script>
</head>
<body>
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<!-- I recommend you host this file on your own, since this will change without warning -->
<script src="http://datamaps.github.io/scripts/datamaps.usa.js?v=1"></script>
<div id="container1" style="position: relative; width: 600px; height: 450px;"></div>
@john-friedman
john-friedman / index.html
Last active January 11, 2019 08:34
Map test
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<script src="https://rawgithub.com/markmarkoh/datamaps/master/dist/datamaps.none.min.js"></script>
<div id="afghan" style="height: 500px; width: 900px;"></div>
<script>
var map = new Datamap({
element: document.getElementById('afghan'),
@john-friedman
john-friedman / index.html
Last active January 11, 2019 05:57
Test of a test
We couldn’t find that file to show.