start new:
tmux
start new with session name:
tmux new -s myname
import re | |
import markdown | |
from markdown.util import etree | |
class AdmonitionExtension(markdown.Extension): | |
def extendMarkdown(self, md, md_globals): | |
md.registerExtension(self) |
" Vim color file | |
" | |
" Author: André Terra <[email protected]> | |
" | |
" Note: Anthony Carapetis original version of github's syntax thmee | |
" with a few changes, like better .py highlighting and line #s. | |
" Used Brian Mock's darkspectrum as a starting point/template | |
" Thanks to Ryan Heath for an easy list of some of the colours: | |
" http://rpheath.com/posts/356-github-theme-for-syntax-gem |
from django.template.loader import add_to_builtins | |
add_to_builtins('django.contrib.staticfiles.templatetags.staticfiles') | |
add_to_builtins('django.templatetags.i18n') | |
add_to_builtins('django.templatetags.future') |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" a lot of this was stolen from: http://amix.dk/vim/vimrc.html " | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => VIM user interface | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Set 7 lines to the curors - when moving vertical.. | |
set so=2 | |
set wildmenu "Turn on WiLd menu |
from django.contrib import admin | |
from django.contrib.auth.admin import UserAdmin | |
from django.contrib.auth.models import User | |
from userprofiles.models import UserProfile | |
class UserProfileInline(admin.StackedInline): | |
model = UserProfile | |
fk_name = 'user' | |
max_num = 1 |
import urllib2, urllib, sys | |
from BeautifulSoup import BeautifulSoup | |
import re | |
class VisaVale(): | |
def get_visavale_informations(self,visa): | |
url = 'http://www.cbss.com.br/inst/convivencia/SaldoExtrato.jsp' | |
data = urllib.urlencode([('numeroCartao',visa),('primeiroAcesso','S')]) | |
request = urllib2.Request(url) |