Skip to content

Instantly share code, notes, and snippets.

View eight's full-sized avatar

Yoshinori Morimoto eight

View GitHub Profile
@eight
eight / towers.txt
Last active July 21, 2021 06:05
各フロアに郵便番号の割り当てられている高層ビルの一覧
9800021 宮城県仙台市青葉区中央
# 1 98061 アエル(31F)
# 2 98060 住友生命仙台中央ビル(SS30)(30F)
3300081 埼玉県さいたま市中央区新都心
# 3 33060 明治安田生命さいたま新都心ビル(35F)
2610023 千葉県千葉市美浜区中瀬
# 4 26171 ワールドビジネスガーデン(35F)
<?php
// 全国郵便番号一覧 - 郵便専門ネット http://yubin.senmon.net/
// PHP XML-RPCクライアントクラス yubin.class.php
// 使い方は一番下のテストを。
//
// 2002.11.05 受け渡す郵便番号の型がintになっていたのをstringに修正。
// 2002.11.06 見つからない場合にはfaultCode()が返るようになったのでそれに合わせて変更。
// 2002.11.08 セルフテストのスペルミスを訂正。
// 2002.11.09 仕様変更に対応。初期化関数の冗長な記述を削除。
// 2002.11.11 Addressというクラス名は一般的するぎるのでYubinXMLRPC_Addressに変更。
@eight
eight / gist:294489
Created February 4, 2010 09:50 — forked from eight/gist:294278
CREATE OR REPLACE PACKAGE WKD_PKG AS
/*
営業日パッケージ
※土曜、日曜が営業日の場合は、IS_WORKDAYを直す
※国民の祝日が営業日の場合は、休日テーブルを直す
-- 休日テーブル(祝祭日、お盆とか、都民の日とかも)
create table holidays (
holiday date,
@eight
eight / gist:227575
Last active January 13, 2016 08:55
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""yurpc2.py
XML-RPCで郵便番号から住所を取得するPythonスクリプト
"""
import sys
import string
try:
from xmlrpc.client import ServerProxy
except ImportError:
@eight
eight / iso3166-2.txt
Last active October 15, 2015 07:46
ISO 3166 Alpha-2 code and English short name. www.iso.org removed text file from http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1-semic.txt
Anonymous Proxy;A1
Satellite Provider;A2
Other Country;O1
Andorra;AD
United Arab Emirates;AE
Afghanistan;AF
Antigua and Barbuda;AG
Anguilla;AI
Albania;AL
Armenia;AM
#!/usr/bin/env python
# coding: utf-8
import datetime
START_DAY = datetime.date(2010, 10, 20)
def nosmoking_days(todate = None):
if not todate:
todate = datetime.date.today()
delta = todate - START_DAY
@eight
eight / codium-extend-ja.po
Created September 9, 2011 02:55
WordPress theme Japanese translation for Codium Extend ver.1.0.9
msgid ""
msgstr ""
"Project-Id-Version: Codium Extend JP\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-10-22 17:20+0100\n"
"PO-Revision-Date: 2011-09-09 11:36+0900\n"
"Last-Translator: Yoshinori Morimoto <eight@jinim.jp>\n"
"Language-Team: eight <eight@jinim.jp>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@eight
eight / htpchk.conf
Last active September 4, 2015 15:25
[test_HEAD]
url: http://example.com/
[test_GET]
url: http://example.com/
method: GET
[test_POST]
url: http://example.com/
method: POST
/*
|| 消費税率のカレンダーテーブル
*/
DROP TABLE TAX_CALENDAR;
/
-- TAX CALENDAR TABLE
CREATE TABLE TAX_CALENDAR (
DtS date NOT NULL,
DtE date NOT NULL,
TAX number(3,2)
#!/usr/bin/env python
# coding: utf-8
####################################################################
# dullyhttpd.py
# $Id: dullyhttpd.py,v 1.2 2005/04/20 08:37:11 ymo Exp $
#
# メンテナンスなどで、一時的にどこのURLにアクセスしても、
# 同じメッセージを表示するために作ったもの。dully httpd.
#
# 例えば、80番ポートで動くApacheなどをシャットダウンした状態で