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
<!-- https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html --> | |
<a href="maps://?q=dallas" data-rel="external">iOS launch in apple maps</a> | |
<!-- https://developers.google.com/maps/documentation/ios/urlscheme --> | |
<a href="comgooglemaps://?q=dallas" data-rel="external">iOS launch in google maps</a> | |
<a href="geo://0,0?q=dallas" data-rel="external">Android launch in google maps</a> |
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
# Workaround for the ensurepip problem: https://lwn.net/Articles/592007/ | |
# -------------------------------------- | |
# Usage: | |
# Add this script to your path, then run | |
# env.sh my_virtualenv_name | |
# -------------------------------------- | |
pyvenv-3.4 --without-pip $1 | |
source ./$1/bin/activate | |
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-3.4.4.tar.gz |
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
#!/bin/sh | |
help () { | |
log "Usage: `basename $0` [-h] [-n] [-a] [-u] [-s hh:mm:ss] [-d ss] [-w px] [-f n] [-S n] [-b n] [-t subtitle.sub] [-c default | basic | fontsize | fontstyle | full] <filename> [result.gif] | |
-h show this help | |
-n turn off subtitles | |
-a don't open directory with frames in filemanager | |
-u update this script from gist. Create .gifupd file in the script's directory to automatically check for updates once per day or put the number of seconds in the file to check with that period. | |
-s start time in seconds or as hours:minutes:seconds, default: 0 |
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 | |
# -*- coding: utf-8 -*- | |
''' | |
Simple script to create geojson from osm files. | |
Prints geojson features line by line. | |
Currently we don't support relations. | |
Requires (unmodified) imposm and imposm.parser | |
Inspired by https://github.com/emka/OSMCouch | |
''' |
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
public class RestClient { | |
private ArrayList<NameValuePair> params; | |
private ArrayList<NameValuePair> headers; | |
private String url; | |
private int responseCode; | |
private String message; | |