Skip to content

Instantly share code, notes, and snippets.

Avatar

Sophia Parafina spara

  • Count Down City
  • Twitter @spara
View GitHub Profile
View tilemill-scripted-export.sh
#!/bin/bash
# Settings: edit these as needed
PROJECT_NAME="test"
OUTPUT_DIRECTORY="~/Documents/MapBox/export/"
# first change into TileMill code directory
cd /Applications/TileMill.app/Contents/Resources/
# hint: use http://bboxfinder.com/ to get bounds in lon/lat
@myobie
myobie / mountain-lion-brew-setup.markdown
Created Feb 18, 2012
Get Mountain Lion and Homebrew to Be Happy
View mountain-lion-brew-setup.markdown

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

View gist:1004704
curl -XPUT 'http://localhost:9200/twitter/'
curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '{
"tweet" : {
"properties" : {
"pin": {
"properties": {
"location": {
"type": "geo_point"
}
View import_geoplanet_mongodb.py
"""
Import Yahoo! GeoPlanet in to MongoDB.
This creates a geoplanet collection containing documents like this:
{
'_id': woeid,
'name': name,
'iso': iso,
'language': language,