Skip to content

Instantly share code, notes, and snippets.

Bill Morris wboykinm

Block or report user

Report or block wboykinm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wboykinm
wboykinm / .block
Created Jun 29, 2016
Satellite Projection
View .block
license: gpl-3.0
View README.md

Playing around with the idea of snapping to a latlon grid, by rounding the latlon values of my mouse coordinates to 1 decimal place.

Not exactly sure how this will be useful, but it could be an interesting way to interact with a values binned to a grid on the globe.

Built with blockbuilder.org

forked from enjalot's block: geosnap

forked from anonymous's block: geosnap

View coloring-lidar.html
<html>
<head>
<title>Deckgl RGB PointCloud + Mapbox</title>
<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.54.0/mapbox-gl.js"></script>
<link rel="stylesheet" type="text/css" href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.54.0/mapbox-gl.css">
<style>
body {
background-color: #000000;
margin: 0;
@wboykinm
wboykinm / geojson.php
Last active Oct 21, 2019
Sample PHP to Point GeoJSON
View geojson.php
<?php
/**
* PHP GeoJSON Constructor, adpated from https://github.com/bmcbride/PHP-Database-GeoJSON
*/
# Connect to MySQL database
$conn = new PDO('mysql:host=localhost;dbname=mydatabase','myusername','mypassword');
# However the User's Query will be passed to the DB:
$sql = 'SELECT * from GDA_database WHERE user_query = whatever';
View us-states.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wboykinm
wboykinm / footgun.sql
Last active Oct 4, 2019
Footgun - delete a whole mess of tables by wildcard, with cascade. Obviously this will blow up in your face at some point.
View footgun.sql
CREATE OR REPLACE FUNCTION footgun(IN _schema TEXT, IN _parttionbase TEXT)
RETURNS void
LANGUAGE plpgsql
AS
$$
DECLARE
row record;
BEGIN
FOR row IN
SELECT
@wboykinm
wboykinm / index.html
Last active Sep 27, 2019
Old BTV Finder
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Leaflet mobile example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" /><![endif]-->
@wboykinm
wboykinm / .block
Last active Sep 13, 2019
Bivariate cartogram
View .block
license: mit
@wboykinm
wboykinm / index.html
Created May 6, 2014
Passages - Moving a marker along a line
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Northwest-Northeast</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.5.0/mapbox.js'></script>
<script src='passages.js'></script>
View large_us_cities.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.