Skip to content

Instantly share code, notes, and snippets.


Bill Morris wboykinm

View GitHub Profile
darribas / contextily_labels.ipynb
Created Feb 4, 2021
Contextily labels examples
View contextily_labels.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View pencilish.xml
<!DOCTYPE qgis_style>
<qgis_style version="2">
<symbol alpha="1" force_rhr="0" clip_to_extent="1" type="fill" name="pencilish">
<layer class="MarkerLine" pass="0" locked="0" enabled="1">
<prop k="average_angle_length" v="4"/>
<prop k="average_angle_map_unit_scale" v="3x:0,0,0,0,0,0"/>
<prop k="average_angle_unit" v="MM"/>
<prop k="interval" v="0.02"/>
<prop k="interval_map_unit_scale" v="3x:0,0,0,0,0,0"/>
IanColdwater / twittermute.txt
Last active Mar 4, 2021
Here are some terms to mute on Twitter to clean your timeline up a bit.
View twittermute.txt
Mute these words in your settings here:
View coloring-lidar.html
<title>Deckgl RGB PointCloud + Mapbox</title>
<script src="^7.0.0/dist.min.js"></script>
<script src=""></script>
<link rel="stylesheet" type="text/css" href="">
body {
background-color: #000000;
margin: 0;
brambow / postgis-to-geojson-feature-collection.sql
Last active Nov 12, 2020
PostGIS query to build a GeoJSON FeatureCollection
View postgis-to-geojson-feature-collection.sql
SELECT json_build_object(
'type', 'FeatureCollection',
'crs', json_build_object(
'type', 'name',
'properties', json_build_object(
'name', 'EPSG:4326'
'features', json_agg(
View Landsat 8 gdal processing
#! /bin/bash -ex
# Convert Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs.
# Requirements:
# * gdal
# * Dan Stahlke's
# * convert (image-magick)
# Reference info:
Zoom Tile size at equator (km) Resolution at equator (m)
0 22568 88155
1 11284 44078
2 7656 29904
3 4577 17881
4 2443 9544
5 1244 4861
6 625 2442
7 313 1223
View object detection
import base64 as b64
import numpy as np
import cv2
import matplotlib.pyplot as plt
from ipywidgets import interact, interactive, fixed
from IPython.display import Image, display
import ipywidgets as widgets
from itertools import tee, izip
WINDOW_SIZE = 41 # size of window to use when computing averages. Endpoint images outside
subfuzion /
Last active Mar 6, 2021
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

bmcbride /
Last active Jan 30, 2021
Create a new GitHub Issue from a Google Form submission

Wiring up a Google Form to GitHub is not that difficult with a little bit of Apps Script automation. All you need is a Google account, a GitHub account, and a web browser...

Set up your GitHub Personal Access Token

Personal access tokens provide an easy way to interact with the GitHub API without having to mess with OAuth. If you don't already have a personal access token with repo or public_repo access, visit your GitHub settings page and generate a new token.

Be sure to copy your token some place safe and keep it secure. Once generated, you will not be able to view or copy the token again.

Set up the Form & Spreadsheet

  1. Create a Google Form.