List of incompetent jackasses who can't check a source if their lives depended on it:
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
#! /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
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
from django.contrib import admin | |
from django.core.urlresolvers import reverse | |
from .models import Carro, Fabrica, Pais | |
class CarroAdmin(admin.ModelAdmin): | |
list_display = ('nome', 'fabrica', 'pais') | |
def queryset(self): | |
qs = super(CarroAdmin, self).queryset() |
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
[run] | |
branch = True | |
omit = *migrations*, | |
*urls*, | |
*test*, | |
*admin*, | |
*scripts*, | |
*models*, | |
pipes/config/*, | |
pipes/manage.py, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import time | |
import sys | |
import sched | |
from pync import Notifier | |
def main(): | |
seconds = int(sys.argv[1]) * 60 | |
text = sys.argv[2] |
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
import subprocess | |
import asyncio | |
import os | |
import re | |
from collections import namedtuple | |
from bs4 import BeautifulSoup | |
import requests | |
''' |
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
import os | |
for dirpath, dirnames, files in os.walk('.'): | |
if not (files or dirnames): | |
os.rmdir(dirpath) |