Skip to content

Instantly share code, notes, and snippets.

@pooja
pooja / developing-on-filecoin.md
Last active Jul 30, 2020
Developing on Filecoin: Resources
View developing-on-filecoin.md
@andrewxhill
andrewxhill / cartodb-utils.py
Last active Sep 28, 2019
command-line python interface for manipulating data on CartoDB
View cartodb-utils.py
import os
import urllib
import urllib2
import base64
import json
import sys
import argparse
try:
import requests
except ImportError:
@jsanz
jsanz / gist:5141420
Created Mar 12, 2013
From CartoDB to DXF, with all my love to CAD users
View gist:5141420
# With the GeoJSON OGR driver one can use the CartoDB SQL API to create any OGR supported format output
# OGR Formats: http://gdal.org/ogr/ogr_formats.html
# CartoDB SQL API: http://developers.cartodb.com/documentation/sql-api.html
# This sample creates a DXF making a "select the_geom from meteo" from my account at CartoDB
ogr2ogr -skipfailures -f DXF out.dxf "http://xurxosanz.cartodb.com/api/v2/sql?q=select%20the_geom%20from%20meteo&format=GeoJSON" OGRGeoJSON
@mhkeller
mhkeller / gist:3834498
Created Oct 4, 2012 — forked from abelsonlive/gist:3751902
google geocoding API, R
View gist:3834498
Forked from @BrianAbelson
library('rjson') # For parsing json in R
library('RCurl') # For sending an http request
library('plyr') # For ddply
# Takes an data frame with a unique id column and an address column at the very least
# it returns a data frame with the uid, lat, lng and specificity of geocoding
# use the uid to join these results back to your data if you want
# you can also accomplish roughly the same thing with a for loop instead of ddply
You can’t perform that action at this time.