This interactive Neo4j graph tutorial shows how to use Neo4j to analyse the Offshore Leaks : the case of Azerbaijan.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window, document) { | |
// The end user should be allowed to disable synchronization. This button | |
// is optional on the page | |
var syncAllow = true; | |
var syncButton = document.querySelector('.sync-button'); | |
// If the sync button exists bind a click event and toggle the syncAllow | |
// boolean. Set the value of the button. | |
if(syncButton) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import logging | |
from optparse import make_option | |
from django.core.management.base import BaseCommand, CommandError | |
class Command(BaseCommand): | |
help = ("Invalidates portions of the queryset cache based on the app names" | |
" or models provided as arguments to the command. If no arguments " | |
"are provided, nothing is done. To clear the entire queryset " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import datetime | |
import httplib2 | |
import json | |
import sys | |
import urllib | |
BASE = "https://api.twitter.com/1/statuses/user_timeline.json?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var interactive = new Miso.Storyboard({ | |
// our initial state will be loading | |
initial : 'loading', | |
scenes : { | |
loading: { | |
enter : function() { | |
// show that we are in a loading state | |
$('#loading').show(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run in QGIS python console for read-only view of CartoDB table | |
# Substitute your user name and query on first two lines | |
cartoName = "" # PUT YOUR USER NAME IN THE QUOTES | |
cartoQuery = "" # PUT YOUR QUERY IN THE QUOTES | |
import urllib | |
cartoUrl = 'http://{}.cartodb.com/api/v2/sql?format=GeoJSON&q={}'.format(cartoName, cartoQuery) | |
response = urllib.urlopen(cartoUrl) | |
content = response.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
copy: { | |
main: { | |
files: [{ | |
expand: true, | |
cwd: './partials/', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- http://overpass-turbo.eu/ | |
-- https://gist.github.com/atlefren/60234fb68d8299136c05 | |
-- http://www.norkart.no/produkt/datavarehus/ | |
-- toalett og kommunekart | |
SELECT | |
f.cartodb_id, | |
f.the_geom_webmercator, | |
f.the_geom, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Some good references are: | |
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
#1. Install PostgreSQL postgis and postgres | |
brew install postgis | |
initdb /usr/local/var/postgres | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
A collection of links for a NICAR 2012 presentation. It will suggest broad themes for the past year, and try to support them with examples from work in the field. This is a work in progress. Feel free to crap on it, or add your own ideas.
- Google changed the rules of the game. There are now usage limits. Read about them here
- TileMill, custom tiles, need examples
- Links to ranty blog posts from Nestoria guy and others
- One replacement is simple line maps drawn using HTML5 technologies like SVG, Canvas and VML. You saw this example a lot in election maps during the GOP primaries, like NYT, WaPo, HuffPo, LAT
OlderNewer