This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias runserver="python manage.py runserver_plus" | |
alias sp="python manage.py shell_plus" | |
alias manage="./manage.py" | |
alias syncdb="manage syncdb --migrate" | |
alias dif="git diff" | |
alias add="git add --all" | |
alias gs="git status" | |
alias commit="git commit -m" | |
alias gl="git log --graph --decorate --all" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
import urllib | |
from BeautifulSoup import BeautifulSoup as bs | |
def get_soup(link): | |
html = urllib.urlopen(link).read() | |
return bs(html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def end_other(a, b): | |
a.lower() | |
b.lower() | |
if len(a) > len(b): | |
if a[len(b):] == b: | |
return True | |
return False | |
else: | |
if b[len(a):] == a: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} } | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias dif="git diff" | |
alias add="git add --all" | |
alias commit="git commit -m" | |
alias runserver="python manage.py runserver_plus" | |
alias sp="python manage.py shell_plus" | |
alias manage="./manage.py" | |
alias undo="git reset --soft HEAD^1" | |
alias unstage="git reset HEAD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function push { | |
echo "git push origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" | |
git push origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
} | |
function pull { | |
echo "git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" | |
git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install build-essential python-pip ssh vim zsh git git-flow | |
sudo pip install virtualenvwrapper | |
export WORKON_HOME=~/Envs | |
mkdir -p $WORKON_HOME | |
source /usr/local/bin/virtualenvwrapper.sh | |
sudo add-apt-repository ppa:webupd8team/sublime-text-2 | |
sudo apt-get update | |
sudo apt-get install sublime-text | |
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num = [] | |
maior = 0 | |
for i in range(3): | |
num.append(int(raw_input("Numero %d: " % (i+1)))) | |
if num[i] > maior: | |
maior = num[i] | |
print "\n Maior numero eh %d \n" % maior | |
if maior % 2 == 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fino theme by roddds | |
# Use with a dark background and 256-color terminal! | |
# You can set your computer name in the ~/.box-name file if you want. | |
# Tested in Linux Mint | |
# Borrowing shamelessly from these oh-my-zsh themes: | |
# bira | |
# robbyrussell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy Unrestricted | |
import-module virtualenvwrapper | |
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1") | |
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\PoshGit_b45f39b7c5d40bebb0b5850a200fc120e9bf3646\profile.example.ps1") |