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 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
#!/bin/bash | |
# https://mtunn.wordpress.com/odroid-u2★セットアップ/radikoの録音・再生(archlinux)/ | |
pid=$$ | |
wkdir='/var/tmp' | |
playerurl=http://radiko.jp/player/swf/player_4.1.0.00.swf | |
playerfile="${wkdir}/player.swf" | |
keyfile="${wkdir}/authkey.png" | |
auth1_fms="${wkdir}/auth1_fms_${pid}" | |
auth2_fms="${wkdir}/auth2_fms_${pid}" |
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 datetime | |
import requests | |
URL = 'http://www.google.com/calendar/' \ | |
'feeds/ja.japanese%[email protected]/' \ | |
'public/full' |
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 datetime | |
import workdays | |
from dateutil import relativedelta | |
def is_last_working_day_of_month(target_date): | |
first_day_of_next_month = target_date + relativedelta.relativedelta(months=1) | |
end_of_this_month = datetime.date(first_day_of_next_month.year, |
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 | |
if [ $# -eq 0 ]; then | |
CMD=`basename $0` | |
echo "usage: ${CMD} projectname" | |
exit 1 | |
fi | |
PROJECT_NAME=$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
#!/bin/sh | |
PROJECT_TEMPLATE_PATH=${HOME}/google-cloud-sdk/platform/google_appengine/new_project_template | |
if [ $# -eq 0 ]; then | |
CMD=`basename $0` | |
echo "usage: ${CMD} projectname" | |
exit 1 | |
fi |
NewerOlder