Run with Python:
pip-2.7 install cffi PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi PYTHON=pypy sh go.sh
pip-tools==0.3.5 | |
xlrd==0.9.3 |
#!/usr/bin/env bash | |
for i in {1..100} | |
do | |
echo -ne "\t$i"'%\r' | |
sleep 0.05 | |
done | |
echo -e '\n'"success." |
[Unit] | |
Description=supervisord - Supervisor process control system for UNIX | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf | |
ExecReload=/usr/bin/supervisorctl reload | |
ExecStop=/usr/bin/supervisorctl shutdown |
import java.util.List; | |
import java.util.ArrayList; | |
interface Entity { | |
public int getId(); | |
public int getKind(); | |
} | |
interface Taggable { | |
public void addTag(int tagId); |
PATCHED_FILENAME = "Monaco for Powerline.ttf" | |
$(PATCHED_FILENAME): Monaco.ttf fontpatcher.py fontpatcher-symbols.sfd | |
fontforge -script fontpatcher.py Monaco.ttf | |
@echo "(´・_・`) You can install the $(PATCHED_FILENAME) now." | |
Monaco.ttf: Monaco.dfont | |
fondu Monaco.dfont | |
rm *.bdf |
#!/usr/bin/env sh | |
PYTHON_VERSION=2.7 | |
WXPYTHON_ROOT="$(brew --prefix wxwidgets)/lib/python${PYTHON_VERSION}/site-packages" | |
WXPYTHON_SITE_ROOT="${WXPYTHON_ROOT}/$(cat ${WXPYTHON_ROOT}/wx.pth)" | |
SYSTEM_PYTHON=/usr/bin/python | |
# find the root of the virtualenv, it should be the parent of the dir this script is in | |
ENV=`${SYSTEM_PYTHON} -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"` |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="seeker" | |
# Set to this to use case-sensitive completion |
Run with Python:
pip-2.7 install cffi PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi PYTHON=pypy sh go.sh
import re | |
def convert_string_template(string): | |
index = -1 | |
def repl(matched): | |
nonlocal index | |
keyword = matched.group(1) | |
if keyword: | |
return "{%s}" % keyword.strip('()') |
#!/usr/bin/env python | |
from flask_script import Manager | |
from myapp.app import create_app | |
from myapp.ext import db, oauth | |
app = create_app() | |
manager = Manager(app) |