Skip to content

Instantly share code, notes, and snippets.

View sethvincent's full-sized avatar

Seth Vincent sethvincent

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sethvincent on github.
  • I am sethvincent (https://keybase.io/sethvincent) on keybase.
  • I have a public key ASC5VCJ_G31zo96YD5OlEYf-2PucD2jGepwCZida8YK9Hgo

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Select features around a clicked point</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v1.3.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.3.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@sethvincent
sethvincent / readme.md
Created September 8, 2019 15:26
Observe workshop SOTMUS 2019

observe workshop!

Agenda

  • 20 minutes set up & introduction
    • 5 minutes intro
    • 10 minutes app install & edit ideas
    • 5 minutes edit & person groups
  • 20 minutes mapping
  • 20 minutes how did it go? what should happen next?
  • 10 minutes small group discussion & sending feedback
brew install docker-machine-driver-hyperkit
brew cask install minikube

To use the driver:

var fs = require('fs')
var url = require('url')
var path = require('path')
var request = require('request')
var pump = require('pump')
var getGranules = require('../tasks/search-cmr/get-granules')
function readJSON (filepath) {
return JSON.parse(fs.readFileSync(filepath, 'utf8'))
[ { type: 'Feature',
properties:
{ geoid: '14000US53033004600',
name: 'Census Tract 46, King, WA',
dataset: 'census-tracts' },
geometry: { type: 'MultiPolygon', coordinates: [Array] } },
{ type: 'Feature',
properties: { district: 6, dataset: 'city-council-districts' },
geometry: { type: 'Polygon', coordinates: [Array] } },
{ type: 'Feature',
@sethvincent
sethvincent / README.md
Last active July 24, 2017 03:03
set up a local ssl cert for development

based on this: https://gist.github.com/jonathantneal/774e4b0b3d4d739cbc53

mkdir some/path/ssl
sudo openssl genrsa -out some/path/ssl/localhost.key 2048
sudo openssl req -new -x509 -key some/path/ssl/localhost.key -out some/path/ssl/localhost.crt -days 3650 -subj /CN=localhost
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain some/path/ssl/localhost.crt

use with budo:

@sethvincent
sethvincent / README.md
Last active April 8, 2017 17:39
useful DOM element modules
@sethvincent
sethvincent / index.html
Last active March 27, 2017 21:07
my favorite jekyll title & description tags
<!-- formatted -->
<title>
{% if page.title %}
{{ page.title }} | {{ site.title}}
{% elsif post.title %}
{{ post.title }} | {{ site.title}}
{% else %}
{{ site.title }} | {{ site.description}}
{% endif %}
</title>
// spacing
// colors
// forms
// font size
// font weight
var scale = [0, 5, 10, 20, 35, 60, 100, 150]
var positions = {
a: '',