Skip to content

Instantly share code, notes, and snippets.

View bohyunjung's full-sized avatar

정보현 Bohyun Jung bohyunjung

View GitHub Profile
@bohyunjung
bohyunjung / human111.py
Created February 25, 2020 09:58
based on the story that Sungwoo shared...
def life():
while True:
for action in ["sex", "bob"]:
yield action
if __name__ == "__main__":
for action in life():
print(action)
@bohyunjung
bohyunjung / cmd-calinou-colors.reg
Created August 6, 2019 06:20 — forked from Calinou/cmd-calinou-colors.reg
Color schemes for the Windows Command Prompt and Windows PowerShell
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:00242424
"ColorTable01"=dword:00FFAA77
"ColorTable02"=dword:0077EE77
"ColorTable03"=dword:00EEEE77
"ColorTable04"=dword:007777FF
"ColorTable05"=dword:00EE77EE
"ColorTable06"=dword:0077EEEE
@bohyunjung
bohyunjung / mysql-docker.sh
Created October 21, 2018 08:30 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@bohyunjung
bohyunjung / pycon-kr-2018-lablup-codegolf.py
Last active October 14, 2018 07:49
pycon 한국 2018 래블업 코드골프 제출 코드
n=int(input())
m=int(input())
l="-"
z=n+2
q=1<<z
for i in range(n):
a=n-i if i>n/2-1 else i+1
b=abs(n-2*i)
b+=(b==0)+a
q^=(1<<a|1<<b)