Skip to content

Instantly share code, notes, and snippets.

(function(exports){
crossfilter.version = "1.3.13";
function crossfilter_identity(d) {
return d;
}
crossfilter.permute = permute;
function permute(array, index) {
for (var i = 0, n = index.length, copy = new Array(n); i < n; ++i) {
copy[i] = array[index[i]];
@danbjoseph
danbjoseph / illustrator-crash-course-topics.md
Created January 22, 2016 02:04
emily's notes on topics to cover when teaching illustrator
  • Overview of Adobe products and stuff
    • When to use what program
    • What’s a vector graphic? What do the formats mean, etc.
    • Show past fave maps, talk about style guide, the GIS team styles, etc. -Resources: give them fonts, swatches, and some samples to play around on
  • Adobe Illustrator interface -Layout -Layers! Turning them on/off, locking, stacking, hide things don’t delete them, best practices for setting up map layers -Border vs. Inside – how the color thingy works -Basic tools
### Disaster types
--- Biological ---
Epidemic
Grasshoppers
Locusts
Animal Attack
Meteorite
--- Geophysical ---
Earthquake
@danbjoseph
danbjoseph / omk-notes.md
Last active August 27, 2019 12:24
notes on OpenMapKit (OMK), specifically mbtiles and osm files

#OpenMapKit (OMK) https://github.com/AmericanRedCross/OpenMapKit/wiki

  • install node
    • install the following packages tl, mbtiles, tilelive-http
    • npm install -g tl @mapbox/mbtiles tilelive-http
  • go to http://bboxfinder.com/ and box your area
    • should return your cooridinates in the following order: lng-min, lat-min, lng-max, lat-max
  • open terminal/command line and cd to your project folder and run the following:
  • tl copy -z 13 -Z 20 -b '{{lng-min}} {{lat-min}} {{lng-max}} {{lat-max}}' 'http://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png' mbtiles://./{{myFileName}}.mbtiles
@danbjoseph
danbjoseph / plugins.md
Last active December 24, 2016 17:34
plugins to remember

QGIS

  • color ramp manager
  • Quick Map Services

JOSM

  • building tools
  • utilsplugin2
    • replace geometry (Ctrl+Shift+G)
  • todo list (work systematically through a selection)
  • download along plugin (Alt+Shift+D)
@danbjoseph
danbjoseph / conditionalGalleryResize.jsx
Last active August 29, 2015 14:20
Photoshop script for thumbnail and small preview img
var inFolder = new Folder("~/Desktop/forUpload");
var fileList = inFolder.getFiles(/\.(jpg|tif|psd|bmp|gif|png|pdf|)$/i);
for(var a = 0 ;a < fileList.length; a++)
{
@danbjoseph
danbjoseph / spatialite-qgis.md
Created April 28, 2015 14:37
spatialite db for osm data in qgis
@danbjoseph
danbjoseph / osm-meta-api_data-upload
Last active August 29, 2015 14:19
osm-meta-api data upload
http://planet.osm.org/replication/changesets
new window ... ctrl-a c
nav menu ... ctrl-a "
change name ... ctrl-a A
detach ... ctrl-a d
re-attch ... $screen -r
2014-01-01 00:00 - 000/598/424
@danbjoseph
danbjoseph / oms-meta-api_install
Last active August 29, 2015 14:19
osm-meta-api install
cd /
sudo wget http://nodejs.org/dist/v0.12.2/node-v0.12.2-linux-x64.tar.gz
sudo tar -C /usr/local --strip-components 1 -xzf node-v0.12.2-linux-x64.tar.gz
node -v
npm -v
sudo npm install pm2 -g
sudo add-apt-repository ppa:git-core/ppa
sudo add-apt-repository ppa:webupd8team/java