This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'jaeyoung' | |
def make(url): | |
tmp = dict() | |
param_line = url.split("?")[1] | |
param_list = param_line.split("&") | |
for param in param_list: | |
par = param.split("=") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ls='ls -FGw' | |
alias ll='ls -alG' | |
alias ss='python /Users/leejaeyoung/Work/imgtl_osx/screenshot.py $1' | |
alias venv='/Users/leejaeyoung/Documents/make_venv.sh $*' | |
export PS1='\[\033[0;35m\]\u\[\033[0;00m\] \[\033[47m\] \w \[\033[00m\] \[\033[0;32m\]\$ \[\033[0;0m\]' | |
export JAVA_HOME=/Library/Java/Home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias venv='~/Documents/make_venv.sh $*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main#wrap { | |
margin: auto; | |
width: 100%; | |
height: 912px; | |
background: #3f77a4; /* Old browsers */ | |
background: -webkit-linear-gradient(top, #3f77a4, #8bb6d0, #6e80b8 70%, #26447c); | |
background: -moz-linear-gradient(top, #3f77a4, #8bb6d0, #6e80b8 70%, #26447c); | |
background: -o-linear-gradient(top, #3f77a4, #8bb6d0, #6e80b8 70%, #26447c); | |
background: -ms-linear-gradient(top, #3f77a4, #8bb6d0, #6e80b8 70%, #26447c); | |
background: linear-gradient(top, #3f77a4, #8bb6d0, #6e80b8 70%, #26447c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "screen-256color" | |
set -g status-bg colour235 | |
set -g status-fg white | |
set-window-option -g window-status-current-fg black | |
set-window-option -g window-status-current-bg green | |
set -g pane-border-fg colour235 | |
set -g pane-border-bg black | |
set -g pane-active-border-fg green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
leejaeyoung ~ $ curl -O http://speedtest-nyc1.digitalocean.com/100mb.test | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
8 100M 8 8700k 0 0 547k 0 0:03:07 0:00:15 0:02:52 515k^C | |
leejaeyoung ~ $ rm -rf 100mb.test | |
leejaeyoung ~ $ curl -O http://speedtest-nyc2.digitalocean.com/100mb.test | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 100M 100 100M 0 0 496k 0 0:03:26 0:03:26 --:--:-- 330k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo add-apt-repository ppa:fkrull/deadsnakes | |
sudo apt-get update | |
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O /tmp/ez_setup.py | |
py_ver=`python -c 'import sys; print ".".join(str(x) for x in sys.version_info[:2])'` | |
for i in 2.6 2.7 3.2 3.3 3.4 | |
do | |
if [ "$i" != "$py_ver" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def indicator(message='Processing...' ): | |
sys.stdout.write(message) | |
time.sleep(1) | |
sys.stdout.write('|') | |
time.sleep(1) | |
sys.stdout.write('\r/') | |
time.sleep(1) | |
sys.stdout.write('\r-') | |
time.sleep(1) | |
sys.stdout.write('\r\\') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ReactAppend(a, t) { | |
var reactBoxWrap = t; | |
var reactBox = document.createElement('div'); | |
reactBox.className = 'react-box'; | |
t.appendChild(reactBox); | |
React.render(a, t.lastChild); | |
} | |
ReactAppend(<SettingsBox />, document.getElementById('react-boxes')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User(models.Model): | |
~~~~ | |
class Post(models.Model): | |
author = models.ForeignKey(User) | |
column_a = modelsIntegerField(default=0) | |
@property | |
def comments(self): | |
return self.comment_list.order_by('created_at') |
OlderNewer