Skip to content

Instantly share code, notes, and snippets.

@d3netxer
d3netxer / diff-overpass-query.txt
Created February 27, 2016 23:17
difference Overpass-turbo ql query
/*
This is an example Overpass query that is used to find the differences in all buildings, highways, and POIs between two points in time within the bounding box
*/
[diff:"2016-02-01T15:00:00Z","2016-02-26T15:00:00Z"];
(
// get all buildings
way[building]({{bbox}});
// get all roads
way[highway]({{bbox}});
// get important POIs
/*
This just gets all toilets and drinking water points from March 1st 2010
*/
[date:"2010-03-01T06:55:00Z"];
(
node["amenity"="toilets"]({{bbox}});
node["amenity"="drinking_water"]({{bbox}});
);
out body;
>;
@d3netxer
d3netxer / geonode-slds
Last active May 19, 2016 19:16
geonode-slds
- Log into GeoNode as Admin
- In the menu, click on GeoServer and open a new tab
- In the GeoServer data menu, click on 'styles'
@d3netxer
d3netxer / daadab_dollo_ado_camps.md
Last active July 13, 2016 14:56
Time-based OverPass query on Daadab and Dollo Ado Refugee Camps
<!--how to embed a gifv! -->
<video autoplay loop poster="http://i.imgur.com/xIlXXEg.jpg" id="backgroundgif" width="500" height="300">
<source src="http://i.imgur.com/xIlXXEg.webm" type="video/webm">
<source src="http://i.imgur.com/xIlXXEg.mp4" type="video/mp4">
</video>
@d3netxer
d3netxer / index.html
Last active March 1, 2017 15:25 — forked from d3noob/index.html
Leaflet.draw plugin with options set.
<!DOCTYPE html>
<html>
<head>
<title>Leaflet.draw Plugin</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"
/>
<link
@d3netxer
d3netxer / jquery_listener_tip.md
Last active April 14, 2017 17:20
jquery tip: attach listener to body tag

jquery tip: attach listener to body tag

$("body").on("click", "a", function(event) {
... your custom code
.... this attaches the listener to the body, but will match against any click from an <a> tag.
.... so you don't have to attach to every a tag every time, but can use only 1 listener
... also good, because you can attach the listener to a parent element and not have to update the listners whenever a new <a> tag is created
});
@d3netxer
d3netxer / geonode_csw_calls.md
Created May 5, 2017 16:55
GeoNode CSW calls
@d3netxer
d3netxer / install_osmnx.md
Created November 26, 2017 16:22
Installing OSMNX
@d3netxer
d3netxer / switch-local-git-repo-to-fork.md
Created December 7, 2017 17:15 — forked from jpierson/switch-local-git-repo-to-fork.md
How to move to a fork after cloning

If you are like me you find yourself cloning a repo, making some proposed changes and then deciding to later contributing back using the GitHub Flow convention. Below is a set of instructions I've developed for myself on how to deal with this scenario and an explanation of why it matters based on jagregory's gist.

To follow GitHub flow you should really have created a fork initially as a public representation of the forked repository and the clone that instead. My understanding is that the typical setup would have your local repository pointing to your fork as origin and the original forked repository as upstream so that you can use these keywords in other git commands.

  1. Clone some repo (you've probably already done this step)

    git clone git@github...some-repo.git