Skip to content

Instantly share code, notes, and snippets.

- sudo
- ssh
- oh-my-zsh
- dotfiles
- node
- http://blog.mixu.net/2011/11/10/my-arch-linux-setup/
- http://stackoverflow.com/questions/19210676/error-while-installing-express-using-npm
- vundle
@jqtrde
jqtrde / mchd.md
Last active August 29, 2015 14:00
@jqtrde
jqtrde / basics.md
Created April 29, 2014 15:07
javascript algo basics
  1. if statements
  2. switch statements
  3. while statements
  4. for statements
  5. Functions that return values
  6. Functions that don't return values
  7. Scope
  8. Recursive functions
  9. OO basics
  1. Mouse Setup
  2. Audio Setup
  3. Weapon selection
  4. Gunplay
  5. Sidearms
  6. Knife
  7. Explosives
  8. Audio Cues
  9. Minimap
  10. Rolling with the Zerg
$.getJSON("./data.json", function(data) {
var map = L.map('map');
var geojson = L.geoJson(data).addTo(map);
});
// define the feature
var geojsonFeature = {
"type": "Feature",
"properties": {
"name": "Null Island
},
"geometry": {
"type": "Point",
"coordinates": [0, 0]
}
@jqtrde
jqtrde / hydrology-cartocss
Created April 10, 2014 19:47
stylesheets for the mapbox project I'm tworking on
@blue: #a4c7d2;
@blue-dark: #69a6be;
#area {
line-color: @blue-dark;
polygon-fill: @blue;
}
#waterbody {
[zoom>=10] {
@jqtrde
jqtrde / nhd.md
Last active August 29, 2015 13:58
Using NHD in Tilemill

For most maps, detailed hydrography isn't important, which means OSM works just fine. For the finer scale, restoration oriented maps than I need to create for SHARE, the OSM data is not up to snuff.

The benefits of NHD data are:

  • Lines for ephemeral, intermittent, and perennial streams. OSM data data does not even consist of a network, just the outlines of larger water bodies.
  • It's a continuous network, with appropriate hunctions.

Things that suck:

  • There are SO many line-strings