brew bundle
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 | |
import win32com.client | |
import datetime | |
def add_outlook_schedule(): | |
APPOINTMENT_ITEM = 1 |
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 | |
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' |
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 | |
import requests # pip install requests | |
import re | |
# liタグのclassが"toctree-l1"のタイトルを取得する正規表現 | |
rgx = re.compile('<li class="toctree-l1">.*>(.*)</a>') | |
def main(): |
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
swagger: '2.0' | |
info: | |
title: Todo App | |
description: Todoを管理するAPI | |
version: "1.0.0" | |
basePath: /api | |
consumes: | |
- application/json | |
produces: | |
- application/json |
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 | |
import asyncio | |
import aiohttp | |
import requests | |
import json | |
import os | |
import click | |
from hashlib import md5 |
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 | |
import boto.sdb | |
def main(): | |
conn = boto.sdb.connect_to_region('ap-northeast-1') | |
if conn is None: | |
print 'connect failed.' |
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 | |
import os | |
import time | |
import re | |
import shutil | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler |
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 | |
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 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' |
NewerOlder