Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View key's full-sized avatar

Mitsukuni Sato key

View GitHub Profile
@key
key / drive.py
Last active December 31, 2021 07:59 — forked from basuke/drive.py
Python3 support! Create the GPX file from origin and destination using the GoogleMap Direction API. You can use this output for simulate the location apps in Xcode.
#
# python drive.py 'origin' ['waypoint' ... ] 'destination' --apikey=GOOGLE_MAPS_APIKEY
#
# i.e. python drive.py 'Union Square, San Francisco' 'Ferry Building, San Francisco' 'Bay Bridge' SFO
import hashlib
import json
import sys
import urllib
import os
from urllib.parse import quote_plus
@key
key / swfrect.py
Created March 14, 2012 04:52 — forked from moriyoshi/swfrect.py
to get rectangle of swf object.
import struct
import zlib
import itertools
class bitstream(object):
def __init__(self, buf):
self.buf = buf
self.i = 0
self.rem = 0
self.n = 0