Skip to content

Instantly share code, notes, and snippets.

View chokkoyamada's full-sized avatar
🐳
✨ 😂

Naoyuki Yamada chokkoyamada

🐳
✨ 😂
View GitHub Profile
import itertools
n = (1, 2, 3, 4, 5, 6, 7, 8, 9)
for x in itertools.permutations(n):
bunbo1 = x[1] * 10 + x[2]
bunbo2 = x[4] * 10 + x[5]
bunbo3 = x[7] * 10 + x[8]
bunshi1 = x[0] * bunbo2 * bunbo3
bunshi2 = x[3] * bunbo1 * bunbo3
bunshi3 = x[6] * bunbo1 * bunbo2
@chokkoyamada
chokkoyamada / gist:40cf12308037ccb0a14c90fdef1041f5
Last active February 13, 2020 05:25
PostgreSQL コマンド

データベースのリスト

\l

テーブルのリスト

\dt

スキーマ内のテーブルリストを表示

\dt testschema.*

スキーマの表示

@chokkoyamada
chokkoyamada / README.md
Last active February 11, 2021 02:48 — forked from Tynael/README.md
How to use npx to run gist based scripts