Skip to content

Instantly share code, notes, and snippets.

// this runs hellaoften
$(window).scroll(function() {
});
// this runs hellaoften
$(window).scroll(_.throttle(function() {
}, 250));
  • remove extension:

find /path/to/your/files -name '*.html.tmp' -exec sh -c 'mv -i "{}" "$(dirname "{}")/$(basename "{}" .tmp)"' \;

  • add extension:

find /path -type f -not -name "*.*" -exec mv "{}" "{}".jpg \;

or

Seafood:

  • mussels
  • crabs
  • onions
  • green onions/scallions
  • spicy pork or beef sausage
  • green bell pepper
  • okra
  • chicken stock

Map layer

Data handling

  • lessons from USA Today election
  • lazily request only the data you actually need for a given view, including the HTML template, geodata, and results data (full project description)

More to hotosm/old-export-tool#68

What's useful for a user at OTI?

  1. Presets are confusing. It would be good to have GUI to select just "school" or "clinic". Maybe as a subset of the default preset?
  2. KML is a useful format since Google Earth is an easy tool to visualize the locations.
  3. POI is more widely used than buildings. There is no current standard for POI vs buildings when it comes to tracing in certain regions (eg. Haiti).

We are thinking of a potential hackathon that focuses on particular needs. Andrew might have a list/can talk to people of projects that fall under the same theme, so that the hackathon can be project-based and more concrete.

@jueyang
jueyang / README.md
Last active August 29, 2015 14:02
Making a map with d3
@jueyang
jueyang / index.js
Last active August 29, 2015 14:02
Gist from mistakes.io: explaining different d3.scale()
"hello, world"; // edit this to begin
require('http://d3js.org/d3.v3.min.js');
// equal interval
var color1 = d3.scale.quantize()
.domain([0,10]) // continuous
.range(["#000", "#111", "#222", "#333", "#444", "#555"]);
// manual interval