Skip to content

Instantly share code, notes, and snippets.

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 / .bashrc
Last active July 16, 2017 21:30
.bashrc
ulimit -n 10240
export JOBS=max
export CLICOLOR=1
# aliases
alias l="ls -al"
alias ws="cd ~/workspace"
alias g="git add . && git commit -m"
alias nr="npm run"
@sethvincent
sethvincent / git-config.sh
Last active July 16, 2017 20:58
setting up git
#!/bin/bash
# download this file to your vagrant box:
# wget https://gist.githubusercontent.com/sethvincent/1754789/raw/git-config.sh
# curl -o- https://gist.githubusercontent.com/sethvincent/1754789/raw/git-config.sh | bash
# run this script to set up git:
# sh ./git-config.sh
@sethvincent
sethvincent / README.md
Last active April 8, 2017 17:39
useful DOM element modules