Skip to content

Instantly share code, notes, and snippets.

View index.html
<!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 Sep 8, 2019
Observe workshop SOTMUS 2019
View readme.md

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
View notes.md
brew install docker-machine-driver-hyperkit
brew cask install minikube

To use the driver:

View index.js
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'))
View example-response.js
[ { 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 Jul 24, 2017
set up a local ssl cert for development
View README.md

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 Apr 8, 2017
useful DOM element modules
View README.md
@sethvincent
sethvincent / index.html
Last active Mar 27, 2017
my favorite jekyll title & description tags
View index.html
<!-- formatted -->
<title>
{% if page.title %}
{{ page.title }} | {{ site.title}}
{% elsif post.title %}
{{ post.title }} | {{ site.title}}
{% else %}
{{ site.title }} | {{ site.description}}
{% endif %}
</title>
View spaaaace.js
// spacing
// colors
// forms
// font size
// font weight
var scale = [0, 5, 10, 20, 35, 60, 100, 150]
var positions = {
a: '',
@sethvincent
sethvincent / index.js
Created Nov 27, 2016
a merry township
View index.js
const merry = require('merry')
const township = require('township')
const ship = township()
const log = merry.log('main')
const app = merry({
log: { stream: process.stdout },
env: { PORT: 8080 }
})