Skip to content

Instantly share code, notes, and snippets.

View supertask's full-sized avatar
🏖️
Chilling

Tasuku TAKAHASHI supertask

🏖️
Chilling
View GitHub Profile
@supertask
supertask / demo.unit
Last active March 13, 2016 22:29
This file is A demo of UnitX language.
飛行機代 = 10{万円} * 2{往復}
rep (i,[{月},{年}]) {
>> 学校代 = 5{万円/月->i}
>> お泊まり代 = 6{万円/月->i}
>> 飛行機代
>> 計 = 飛行機代{万円} + (学校代 + お泊まり代){万円}
---
}
@supertask
supertask / find_real_address.py
Created March 4, 2016 06:35
A script finding a real address from ip address.
import geoip2.database
reader = geoip2.database.Reader('/usr/local/share/Geoip/GeoLite2-City.mmdb')
import sys
ip_address = raw_input('ip address -> ')
response = reader.city(ip_address)
print "%s, %s, %s" % (response.country.name, response.subdivisions.most_specific.name, response.city.name)
@supertask
supertask / Setting Opencv for Python
Created January 28, 2016 03:06
Setting Opencv for Python
sudo port install opencv +python27
/opt/local/bin/python2.7
sudo mv ○○.sty /usr/local/texlive/texmf-local/tex/latex/○○
sudo mkxisr