Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drwelby
drwelby / waze_download.ps1
Last active January 17, 2017 20:14
Waze file backup using PowerShell
// Powershell script to download a file from a url
// and save a timestamped copy
//=================================================
// SETTINGS
//The url of the file you want to download
$fileURL = 'https://na-georss.waze.com/YOUR/ENDPOINT'
// The directory where you want to store your backup.
import React, { Component } from 'react';
import './App.css';
import 'onsenui/css/onsenui.css';
import 'onsenui/css/onsen-css-components.css';
import 'react-select/dist/react-select.css';
import { Page } from 'react-onsenui';
import Select from 'react-select';
class App extends Component {
import urllib2
import tempfile
from zipfile import Zipfile
import os
import shutil
def web_import(url, target):
''' Takes a url, downloads the file, and copies it to a feature class
For zipped shapefiles at the moment!!
Expects the target to be consistent since it truncate/appends'''
class Point(object):
def __init__(self, x, y):
self.x = float(x)
self.y = float(y)
def square(x):
return x * x
def distance_squared(v, w):
return square(v.x - w.x) + square(v.y - w.y)

canvas.town

Mastodon works like Twitter, but instead of a central server users are on independent instances that can talk to each other.

Let's say every Canvas grid tile is an account on a server called canvas.town. It can post activities, like:

[email protected]: WV04 acquired imagery over me, ID 1001212350

It can also take commands if someone sends it a message.

@drwelby
drwelby / info.json
Created July 16, 2019 15:43
TileJSON.io - Canvas Demo
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
Roadmap - what we want to do
???
Sketch
shaping
Pitch - how we're going to build a piece of it