This file contains hidden or 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 sqlite3, os | |
conn = sqlite3.connect('Mills1860.mbtiles') | |
results=conn.execute('select * from tiles').fetchall() | |
for result in results: | |
zoom, column, row, png= result | |
try: | |
os.makedirs('%s/%s/' % (zoom, row)) |
This file contains hidden or 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 eightteensixtyOptions = { | |
getTileUrl: function(coord, zoom) { | |
return "/1860/tiles-1860/" + zoom +"/" + coord.x+"/"+coord.y+ ".png"; | |
}, | |
tileSize: new google.maps.Size(256, 256), | |
isPng: true, | |
maxZoom:14, | |
minZoom:10, | |
name:"What", | |
This file contains hidden or 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
$('a[href$=.pdf]').click(function(){ | |
if(pageTracker){ | |
var fixedLink = this.href; | |
fixedLink = fixedLink.replace(/https?:\/\/(.*)/,"$1"); | |
fixedLink = '/downloads/' + fixedLink; | |
pageTracker._trackPageview(fixedLink); | |
if(console){ | |
console.log('page tracked: ' + fixedLink); | |
} | |
}; |
This file contains hidden or 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
on run {input, parameters} | |
tell application "Google Chrome" | |
set myURL to URL of active tab of window 1 | |
set myTitle to title of active tab of window 1 | |
end tell | |
tell application "Paparazzi!" | |
capture myURL min size {1024, 728} |
This file contains hidden or 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/python | |
#requires: openmeta command line tool, openmeta python library | |
from glob import glob | |
from plistlib import readPlistFromString | |
import shlex, subprocess, openmeta | |
get_xml="plutil -convert xml1 -o - %s" |
This file contains hidden or 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
on run {input, parameters} | |
tell application "Google Chrome" | |
set myURL to URL of active tab of window 1 | |
set myTitle to title of active tab of window 1 | |
end tell | |
tell application "Pukka" | |
set post URL to myURL |
This file contains hidden or 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 mechanize, codecs | |
from BeautifulSoup import BeautifulSoup, Comment | |
ci_login_url="https://auth.cooksillustrated.com/" | |
recipe_search_root="http://www.cooksillustrated.com/search/results.asp" | |
initial_query='?query=+&filters=&sort=&filters=type:Recipe' | |
br = mechanize.Browser() | |
br.open(ci_login_url) |
This file contains hidden or 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
BEGIN:VCALENDAR | |
VERSION:2.0 | |
PRODID:-//Meetup//RemoteApi//EN | |
CALSCALE:GREGORIAN | |
METHOD:PUBLISH | |
X-ORIGINAL-URL:http://www.meetup.com/DevOpsDC/events/ical/DevOpsDC/ | |
X-WR-CALNAME:Events - DevOpsDC | |
BEGIN:VTIMEZONE | |
TZID:America/New_York | |
TZURL:http://tzurl.org/zoneinfo-outlook/America/New_York |
This file contains hidden or 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 start() { | |
Foxmarks.BookmarkManager.removeSelectedNode() | |
setTimeout(start, 2000); | |
} | |
start(); |
This file contains hidden or 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 adnpy | |
import sys | |
# Set the default access token for API calls. | |
adnpy.api.add_authorization_token('AQAAAAAACqdtFdqwsJmFbaDL036aIM8RDgQKvbDhXBfFJRMl0IQkurrGfBROJQ5Qx0mEf0oYYdnecAyEZR29jgkEPUTaPes_zg') | |
while True: | |
try: | |
text = raw_input('> ') | |
if text: |
OlderNewer