Skip to content

Instantly share code, notes, and snippets.

@notthatbreezy
notthatbreezy / info.json
Created February 27, 2020 08:59
TileJSON.io - Demo for February 26, 2020
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"
]
},
@notthatbreezy
notthatbreezy / info.json
Created February 26, 2020 22:38
TileJSON.io - Demo for February 26, 2020
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"
]
},
@notthatbreezy
notthatbreezy / philadelphia-center-city.geojson
Created February 14, 2020 13:30
GEOJSON covering Center City Philadelphia
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package notthatbreezy.memcached4s.client
import java.net.InetSocketAddress
import cats.effect._
import cats.implicits._
import com.colisweb.tracing.LoggingTracingContext
import com.colisweb.tracing.implicits._
import fs2.io.tcp._
import fs2.{Chunk, text}
@notthatbreezy
notthatbreezy / annotation.json
Created September 13, 2019 14:59
Example Feature Post to Annotation API
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@notthatbreezy
notthatbreezy / create_scene_project.py
Created September 13, 2019 14:23
Creates a COG scene with minimal metadata and adds it to a project for visualization
import requests
def get_session(refresh_token):
"""Helper method to create a requests Session"""
post_body = {'refresh_token': refresh_token}
response = requests.post('https://app.rasterfoundry.com/api/tokens/', json=post_body)
response.raise_for_status()
token = response.json()['id_token']
@notthatbreezy
notthatbreezy / ndvi-maml.json
Created July 19, 2017 01:28
NDVI MAML implementation
{
"id": "a1460c96-8377-4bf1-aad4-18a6e47093c6",
"args": [
{
"id": "fe1763d4-9b4d-4eba-9968-f7d707869d7f",
"args": [
{
"id": "67013aad-21c5-4e7f-b8bd-5910e92aa425",
"type": "src",
"metadata": {
@notthatbreezy
notthatbreezy / local-subtraction.json
Created July 19, 2017 01:26
Example MAML Local Subtraction
{
"id": "fe1763d4-9b4d-4eba-9968-f7d707869d7f",
"args": [
{
"id": "67013aad-21c5-4e7f-b8bd-5910e92aa425",
"type": "src",
"metadata": {
"label": "A"
}
},
@notthatbreezy
notthatbreezy / philly-pd.geojson
Created October 14, 2013 20:44
philly police districts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@notthatbreezy
notthatbreezy / did_bynum_play.py
Created February 21, 2013 13:25
Simple script to see if Andrew Bynum played last night for the Philadelphia 76ers
import urllib2
from lxml.html import parse, make_links_absolute
from StringIO import StringIO
import re
from datetime import date, timedelta
# Helper Function to Scrape Pages #
def get_html_tree(url):
html = urllib2.urlopen(url).read()