Skip to content

Instantly share code, notes, and snippets.

View tasuten's full-sized avatar
🛏️
out sick for a few years

tasuten tasuten

🛏️
out sick for a few years
View GitHub Profile
@tasuten
tasuten / ambiwidth.py
Last active February 15, 2017 16:47
parse "5c backslash"-like lines file and list up ambiwidth glyphs
import sys
import unicodedata
def main():
for line in sys.stdin:
line_data = line.split(" ")
# Python 2.7
w = unicodedata.east_asian_width(unichr(int(line_data[0], 16)))
if w == 'A':
print line.rstrip('\n')
@tasuten
tasuten / FLOSS_fonts.md
Last active June 2, 2017 13:06
FLOSS fonts that is clone of / inspired by popular typography
@tasuten
tasuten / game_of_life.pde
Created April 16, 2017 19:45
Game of Life by Processing
int winWidth = 600; // ウィンドウの横幅
int winHeight = 400; // ウィンドウの縦幅
static final int CELL_SIZE = 15; // セルの大きさ
int start = 2; // 初期盤面のパターン番号
int nCellX = winWidth / CELL_SIZE; // 横(x)方向のセルの個数
int nCellY = winHeight / CELL_SIZE; // 縦(y)方向のセルの個数
// 盤面(field)の状況
// 各セルはALIVEが生存、DEADが死亡を表す
FROM ubuntu
RUN apt-get update
RUN apt-get install -y build-essential curl
# NodeJS >= 6.0
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
# ttfautohint