Skip to content

Instantly share code, notes, and snippets.

View airtoxin's full-sized avatar
🌴
On vacation

Ryoji Miyazato airtoxin

🌴
On vacation
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
u"""
mymodule.stablesortは https://github.com/airtoxin/mymodule/blob/master/stablesort.py
"""
from numpy import array
from mymodule.stablesort import stable_sort_by_row, stable_sort_by_column
@airtoxin
airtoxin / access.py
Created May 12, 2013 15:25
アクセスログ解析
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re, urllib
from BeautifulSoup import BeautifulSoup
r_ip = re.compile(r"\"?((\d{1,3}\.){3}\d{1,3})\"?")
r_content = re.compile(r".*whose location is (.*)\.")
placefile = open("place.txt", "r")