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/env python | |
# coding: utf-8 | |
import boto.sdb | |
def main(): | |
conn = boto.sdb.connect_to_region('ap-northeast-1') | |
if conn is None: | |
print 'connect failed.' |
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/env python | |
# coding:utf-8 | |
import os | |
import time | |
import re | |
import shutil | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler |
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/env python | |
# coding:utf-8 | |
import os | |
import time | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler | |
class EventHandler(FileSystemEventHandler): | |
def on_created(self, event): |
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/envy python | |
# coding:utf-8 | |
import sys | |
from getpass import getpass | |
import gdata.docs.client | |
APP_NAME = 'GoogleDocumentAPITest' | |
SERVICE_NAME = 'writely' | |
URI = 'https://docs.google.com/feeds/default/private/full/-/mine' |
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/env python | |
# -*- coding:utf-8 -*- | |
import sys | |
import re | |
class Base58: | |
def __init__(self): | |
self._CHARS = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ' | |
self._CHAR_NUM = len(self._CHARS) |
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/env python | |
# coding:utf-8 | |
import re | |
import requests | |
class Hanako: | |
COOKIE_URL = 'http://kafun.taiki.go.jp/Hyou0.aspx?MstCode={0}&AreaCode={1}' | |
INFO_URL = 'http://kafun.taiki.go.jp/Hyou2.aspx' |
NewerOlder