Skip to content

Instantly share code, notes, and snippets.

View dhnam's full-sized avatar
🙂
Military over

LegenDUST dhnam

🙂
Military over
  • Seoul
View GitHub Profile
@dhnam
dhnam / self_number.py
Created February 22, 2020 03:07
self number - brute force
import time
def d(n):
dest = n
while 1:
if n == 0:
break
dest += n % 10
n //= 10
return dest
@dhnam
dhnam / downattach.py
Created September 20, 2019 13:39
Download attachment from email using easyimap
import easyimap
import base64
import os
def get_unconflict_name(old_name, num=2):
try:
file_name, ext = old_name.rsplit(".", maxsplit=2)
file_name = file_name + " (" + str(num) + ")"
new_name = file_name + "." + ext
except ValueError:
@dhnam
dhnam / pi.aheui
Created July 21, 2019 04:52
pi aheui
우ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ반반반반반반반반북
우ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ반반반반오ㅇㅇㅇㅇㅇㅇㅇ아반반반분
우ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ반반본ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ카ㅇㅇㅇㅇ반반분
우ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ반반오ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ 아반분
우ㅇㅇㅇㅇㅇㅇㅇㅇㅇ반본ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ반분
우ㅇㅇㅇㅇㅇㅇㅇㅇ반오ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ아분
우ㅇㅇㅇㅇㅇㅇㅇ반오ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ아분
우ㅇㅇㅇㅇㅇㅇ반오ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ아분
우ㅇㅇㅇㅇㅇ반오ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ아분
@dhnam
dhnam / Hangul_box.md
Last active June 13, 2019 11:22
For Hangul Box art

Example list of box art

initial consonant and final consonant

───┐
   │
   │
@dhnam
dhnam / Hangul_ascii.md
Last active June 13, 2019 06:12
For Hangul ascii art

Example list of ascii art

initial consonant and final consonant

___
   |
   | 
---.