Skip to content

Instantly share code, notes, and snippets.

View rjvitorino's full-sized avatar

Ricardo Vitorino rjvitorino

View GitHub Profile
from django.conf.urls import include, patterns, url as django_url
import re
def url(pattern, view, kwargs=None, name=None, prefix='', constraints={}):
'''
url('/path/:id/to/:something/', some_view, constraints={'id': r'\d{4}'})
'''
def convert(match):
name = match.group(1)
@dmfrancisco
dmfrancisco / _dotfiles.md
Last active September 24, 2017 06:11
dotfiles for Unix and Unix-like Operating Systems

Super quick installation (for the lazy ones)

$ curl https://gist.githubusercontent.com/dmfrancisco/8dc4057a8585af2de0c9/raw/install.sh | sh

If you're running Linux replace curl with wget -qO-.
Restart your bash shell to put the changes in effect.


Installing this manually

@dmfrancisco
dmfrancisco / trello.com.css
Last active December 10, 2016 21:10
Custom styles for Trello.com
/*
* Custom styles for Trello.com
* ----------------------------
*
* Before: http://drop.dmfranc.com/8ed1
* After (high contrast): http://drop.dmfranc.com/kzdp
* After (low contrast): http://drop.dmfranc.com/dEqy
*
* To use this stylesheet, setup github.com/stewart/dotcss or a similar software.
* These styles target only webkit-based browsers (for now).