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:
I hereby claim:
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; |
| 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))) |
| # -*- 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) |
| import os | |
| os.system('sudo kill -9 %d' % os.getpid()) |
| #!/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) |