Skip to content

Instantly share code, notes, and snippets.

#coding: utf-8
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template
@route('/')
@route('/index.html')
def index():
return '<a href="/hello">Go to Hello World page</a>'
@route('/hello')
def hello():
@pierrepo
pierrepo / alert.sh
Last active December 11, 2015 21:48 — forked from thisirs/gist:4655411
# Alert user that a job finished:
# lengthycmd; alert
# or
# lengthycmd
# <CTRL-Z>
# fg; alert
function alert() {
JOB=$(history 1)
if [[ "$JOB" == *fg\;* ]]
then
@pierrepo
pierrepo / ola.py
Created August 1, 2012 10:14 — forked from brunobord/ola.py
Olà in Python / ASCII art
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import os
import time
def cls():
os.system(['clear', 'cls'][os.name == 'nt'])
figure_repos = '.o.'