Skip to content

Instantly share code, notes, and snippets.

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

Jinseok Seol theeluwin

🎹
스콜라아이돌교수버튜버
View GitHub Profile

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:

cd ~
mkdir ~/static
mkdir ~/media
mkdir ~/misc
mkdir ~/log
touch ~/log/access.log
touch ~/log/error.log
touch ~/log/uwsgi.log
@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;
}
@charset "utf-8";
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
-webkit-appearance: none;
-moz-appearance: none;
}
select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: checkbox-container;
@charset "utf-8";
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
-webkit-appearance: none;
-moz-appearance: none;
}
select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: checkbox-container;
@theeluwin
theeluwin / comma.py
Created June 26, 2015 06:04
Decimal mark regex (python example).
import re
def comma(value):
if not value.isdigit():
raise ValueError("input must be an integer")
return re.sub('\B(?=(\d{3})+(?!\d))', ',', str(int(value)))
@theeluwin
theeluwin / pilfer.py
Created March 15, 2015 11:50
코딩 전력 60분 13일의 금요일
# -*- coding: utf-8 -*-
# https://twitter.com/Code_60/status/577062012250796032
import tweepy
API_KEY = 'YOUR_APP_KEY_HERE'
API_SECRET = 'YOU_APP_SECRET_HERE'
auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
api = tweepy.API(auth)
@theeluwin
theeluwin / harakiri.py
Created January 22, 2015 09:22
please, kill yourself
import os
os.system('sudo kill -9 %d' % os.getpid())
@theeluwin
theeluwin / infinite-monkey-sort.py
Created January 14, 2015 13:35
Simple integer sorting algorithm based on infinite monkey theorem (http://en.wikipedia.org/wiki/Infinite_monkey_theorem).
#!/usr/bin/python
# -*- coding: utf-8 -*-
import random
import unittest
def infinite_monkey_sort(numbers):
length = len(str(numbers))
while True:
def price(value):
parts = str(value).split('.')
parts[0] = re.sub('\B(?=(\d{3})+(?!\d))', ',', parts[0])
return '.'.join(parts)