Skip to content

Instantly share code, notes, and snippets.

View rdmurphy's full-sized avatar
🔴
Red pandas are the best.

Ryan Murphy rdmurphy

🔴
Red pandas are the best.
View GitHub Profile
@rdmurphy
rdmurphy / combine_mbtiles.py
Created March 6, 2023 21:33 — forked from ache051/combine_mbtiles.py
Combine MBTiles
#-------------------------------------------------------------------------------
# Name: combine_mbtiles.py
# Purpose: Processes multiple sqlite .mbtiles files into single file (or by level? or by degree grids?)
#
# Author: joshn. Modified by ache015
#
# Created: 18/11/2014
#
# Last Modified: 10/11/2018
#-------------------------------------------------------------------------------
@rdmurphy
rdmurphy / index.html
Created June 23, 2016 03:17 — forked from d3noob/.block
Sankey diagram with horizontal and vertical node movement
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
background-color: black;
}

Building things with Tabletop.js and Handlebars.js

Description

Maybe you've used pre-packaged vendor tools to create digital news presentations, but you aren't quite ready to tackle full-stack programming, database management and server setup. Maybe you're hoping reporters will learn how keeping structured data about their beat can benefit the organization. Or maybe you're looking for a tool that help organize/display information when that breaking news event happens.

Enter tabletop.js and handlebars.js, two little JavaScript libraries that play well with one another and make it easy to maintain and deliver data-driven content.

The workshop/panel/interactive/session proposes to:

@rdmurphy
rdmurphy / gist:1714802
Created February 1, 2012 02:56 — forked from brianboyer/gist:1696819
Lion dev environment notes
Homebrew (https://github.com/mxcl/homebrew/wiki/installation)
brew install postgres
brew install gdal --with-postgres (EDIT THE FORMULA FIRST, see https://github.com/mxcl/homebrew/issues/8301)
brew install postgis
edit /etc/paths to put /usr/local/bin on top, so that lion's psql doesnt win
PostGIS templates (based on https://wiki.archlinux.org/index.php/PostGIS)
createdb template_postgis -E UTF8
createlang plpgsql template_postgis
psql -d template_postgis -f /usr/local/share/postgis/postgis.sql