Skip to content

Instantly share code, notes, and snippets.

View onitonitonito's full-sized avatar
🎯
Focusing

Kay & SuParX onitonitonito

🎯
Focusing
View GitHub Profile
@onitonitonito
onitonitonito / css_cache_buster_original.py
Last active July 24, 2017 16:51
Solving CSS Cache Problems in FLASK web framework on Windows Platform
'''
flask.org suggests to use snipets of cache buster as below
http://flask.pocoo.org/snippets/40/
'''
@app.context_processor
def override_url_for():
return dict(url_for=dated_url_for)
def dated_url_for(endpoint, **values):
@onitonitonito
onitonitonito / model_car.py
Created June 1, 2017 04:43
Python, Object Oriented Programming -- Drill #01. Speed Up Your Car!
FORM_INTRO='''\
=================================
\tVEHICLE INFORMATION
---------------------------------
1. MODEL : %s (%s)
2. MAX SPEED : %d km/h
3. ACCELARAT : +_ %d kmh
4. STATUS : %d kmh
---------------------------------\n\n\n'''
@onitonitonito
onitonitonito / xmas_tree_2016_blinking.py
Last active December 28, 2019 02:53
Some modification on package file
"""
# 3년전 이맘때 쯤, 블링킹 xmas 트리
"""
import os
import time
import random
# print(__doc__)
filler = '.'