Skip to content

Instantly share code, notes, and snippets.

View jgravois's full-sized avatar

john gravois jgravois

View GitHub Profile
@jgravois
jgravois / .block
Last active April 26, 2016 01:37
locate, query (w/turf)
license: apache-2.0
@jgravois
jgravois / index.html
Last active October 30, 2015 15:55
Parks
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href=
"http://js.arcgis.com/3.14/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href=
"https://rawgit.com/benheb/legend/master/legend.css">
@jgravois
jgravois / webmap.json
Created October 30, 2015 15:54
Parks
{
"item": {
"title": "New Map",
"snippet": "Parks",
"extent": [
[
-119.2374999999679,
-38.27765021858897
],
[
@jgravois
jgravois / keybase.md
Created October 28, 2015 03:48
keybase.md

Keybase proof

I hereby claim:

  • I am jgravois on github.
  • I am jgravois (https://keybase.io/jgravois) on keybase.
  • I have a public key whose fingerprint is 97D1 DF53 8F56 CC93 AC21 9C4E B5FC FA40 FA11 07BF

To claim this, I am signing this object:

@jgravois
jgravois / _webserver.md
Last active April 12, 2024 00:21
a simple guide for getting a local web server set up

Do I have a web server running?


having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.

if you're not sure whether or not you have a web server running, no problem! its easy to confirm.

what happens when you visit http://localhost/?

@jgravois
jgravois / water.txt
Created August 1, 2015 17:37
Esri hosted resources related to h20
Public / Open Content
1. USA Rivers and Streams
a. http://www.arcgis.com/home/item.html?id=0baca6c9ffd6499fb8e5fad50174c4e0
2. USA Water Bodies
a. http://www.arcgis.com/home/item.html?id=9dff3cf646704abd9e74265f02abeb09
3. USA Permitted Pollutant Discharge Permits
a. http://www.arcgis.com/home/item.html?id=b0f683b5543d406697e0d82b414b3ddf
4. Vegetative Change Index Library Web Services (Time Enabled)
a. http://imagery.arcgisonline.com/arcgis/rest/services/LandsatGLSChange
@jgravois
jgravois / index.html
Last active February 18, 2016 18:01
raleigh open data talk
<html>
<head>
<meta charset=utf-8 />
<title>Simple FeatureLayer</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.css" />
<script src="//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.js"></script>
@jgravois
jgravois / gravois-travel.md
Last active August 29, 2015 14:21
places i've been

places i've been

Africa:

  • not yet

Antarctica

  • ross sea

Australia

  • melbourne
@jgravois
jgravois / commands.md
Last active March 22, 2016 16:46
get out of jail git commands

use these commands VERY carefully!

$ git checkout filename.txt

blows away whatever changes you've made to a tracked file and replaces the file with what was present in the most recent commit

$ git reset --hard HEAD

forcefully rewinds you to the most recent commit, blowing away all uncommitted changes you've made locally

$ git reset --hard f772f4 (sha)

same as above, but allows you to rewind to a specific named commit (via its SHA)

@jgravois
jgravois / gfm.css
Created March 24, 2015 23:58
gfm.css test
/* gfm.css v1.0.6 - 03/19/15 - http://ngoldman.github.io/gfm.css/ */
.markdown-body *,.markdown-body img{-moz-box-sizing:border-box;box-sizing:border-box}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;overflow:hidden;font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:16px;line-height:1.6;word-wrap:break-word}.markdown-body>:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.markdown-body a{background:0 0;color:#4183c4;text-decoration:none}.markdown-body a:active,.markdown-body a:hover{outline:0}.markdown-body a:active,.markdown-body a:focus,.markdown-body a:hover{text-decoration:underline}.markdown-body strong{font-weight:700}.markdown-body em{font-style:italic}.markdown-body blockquote,.markdown-body dl,.markdown-body ol,.markdown-body p,.markdown-body pre,.markdown-body table,.markdown-body ul{margin-top:0;margin-bottom:16px}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.mark