Skip to content

Instantly share code, notes, and snippets.

RND RNDcpp

Block or report user

Report or block RNDcpp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ライフゲーム2.py
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
# 初期値の定義
# 初期配置
x=[
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
@RNDcpp
RNDcpp / life.py
Last active Oct 10, 2019
ライフゲーム
View life.py
import numpy as np
# 初期値の定義
x=[
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,1,0,0,0,0],
[0,0,0,0,0,1,0,0,0],
[0,0,0,1,1,1,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
@RNDcpp
RNDcpp / fetch_table_worker.rb
Last active Sep 9, 2019
google cloud bigquery with large table
View fetch_table_worker.rb
records = Google::Cloud::Bigquery.dataset(dataset_id).table(table_id).data()
@RNDcpp
RNDcpp / conv.sh
Last active Oct 9, 2019
写真をイラスト背景風にするフィルタ.sh
View conv.sh
# USAGE conv.sh [input] [output] [width] [height]
# widthとheightは大きめ(2000以上)の方がいい感じになる
# リサイズします
convert $1 -resize ${3}x${4}! target.png
# 油彩フィルタを重ねがけします
convert target.png -modulate 160,180 -colors 400 -paint 2 -paint 2 -paint 2 -blur 3x4 paint.png
# ぼかした後の画像からエッジ画像を取り出します
You can’t perform that action at this time.