Skip to content

Instantly share code, notes, and snippets.

View theeluwin's full-sized avatar
🎹
스콜라아이돌교수버튜버

Jinseok Seol theeluwin

🎹
스콜라아이돌교수버튜버
View GitHub Profile
@charset "utf-8";
@import url("http://fonts.googleapis.com/earlyaccess/notosanskr.css");
* {
font-family: "Noto Sans KR", "Helvetica Neue", sans-serif;
}
body {
padding-top: 70px;
}
cd ~
mkdir ~/static
mkdir ~/media
mkdir ~/misc
mkdir ~/log
touch ~/log/access.log
touch ~/log/error.log
touch ~/log/uwsgi.log

Keybase proof

I hereby claim:

  • I am theeluwin on github.
  • I am theeluwin (https://keybase.io/theeluwin) on keybase.
  • I have a public key whose fingerprint is 88A8 0956 F830 EF66 35DB 224E DA6B FD1D 9471 C7F1

To claim this, I am signing this object:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import sys
import time
def main(duration=600):
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
import re
from collections import Counter
from konlpy.tag import Mecab
tagger = Mecab()
pip freeze --local | grep -v "^\-e" | cut -d = -f 1 | xargs pip install -U
@theeluwin
theeluwin / pull.py
Last active August 3, 2016 08:59
모나드 => 몬앋으
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from korean import hangul
def pull(text):
exploded = [list(hangul.split_char(c)) if hangul.is_hangul(c) else c for c in text]
for i in range(len(exploded)):
@theeluwin
theeluwin / chem2_ex3.py
Created October 6, 2016 05:49
chem2_ex3.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
__author__ = "theeluwin"
__email__ = "[email protected]"
import numpy as np
@theeluwin
theeluwin / mnist-yellowfin.py
Created July 19, 2017 22:46
Testing fully-connected mnist with yellowfin. See https://github.com/JianGoForIt/YellowFin
# -*- coding: utf-8 -*-
import numpy as np
import tensorflow as tf
from yellowfin import YFOptimizer
from tensorflow.examples.tutorials.mnist import input_data
def linear(X, fanout, scope=None):
from collections import Counter
def F1(precision, recall):
denominator = precision + recall
if not denominator:
return 0
return 2 * precision * recall / denominator