Skip to content

Instantly share code, notes, and snippets.

View rafaelmartins's full-sized avatar
🎹

Rafael G. Martins rafaelmartins

🎹
View GitHub Profile
@rafaelmartins
rafaelmartins / blohg_foo.py
Created January 15, 2014 00:00
Simple example of a blohg extension that mounts a view at the root of the flask app.
from blohg.ext import BlohgExtension
ext = BlohgExtension(__name__)
def foo():
return 'Hello world!'
@ext.setup_extension
@rafaelmartins
rafaelmartins / .Xresources
Last active November 21, 2016 02:18
rxvt-unicode settings for gnome-terminal-like colors
URxvt.scrollBar: false
URxvt*background: #000000
URxvt*foreground: #CCCCCC
URxvt*color0: #000000
URxvt*color1: #CC0000
URxvt*color2: #4E9A06
URxvt*color3: #C4A000
URxvt*color4: #3465A4
@rafaelmartins
rafaelmartins / wtf
Created April 19, 2011 19:41
wtf-server.co.cc client
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
wtf
---
This is the wtf-server.co.cc client. It is based on the old `wtf` game, from
NetBSD, but with a remote backend.
#!/usr/bin/python
# -*- encoding: utf-8 -*-
# MusicLog Daemon
#
# Copyright (c) 2008 Rafael G. Martins <rafael@rafaelmartins.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or