Skip to content

Instantly share code, notes, and snippets.

View diegosorrilha's full-sized avatar

Diego Sorrilha diegosorrilha

View GitHub Profile
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@zenorocha
zenorocha / README.md
Last active May 28, 2024 08:23
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@sloria
sloria / bobp-python.md
Last active June 26, 2024 15:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@lbdremy
lbdremy / sound-effect-cordova.md
Created February 5, 2014 19:33
Sound effect on tap in a Cordova application - (work in progress)
@fmasanori
fmasanori / QEduEscolas.py
Created June 28, 2015 15:54
QEdu Busca Simples por Escolas
import urllib.request
import json
url = 'http://educacao.dadosabertosbr.com/api/escolas?nome='
escola = 'embraer'
resp = urllib.request.urlopen(url+escola).read()
resp = json.loads(resp.decode('utf-8'))
for x in resp[1]:
print (x['nome'])
print ('Código:', x['cod'])
print (x['cidade'], x['estado'])
@daldegam
daldegam / commands-unix-macos.md
Last active February 12, 2021 14:20
Comandos Unix (MAC OS)

Unix Commands

Command Sample Description
pipe - Liga a saida de um comando na entrada de outro
&& cmd && cmd Executa um comando logo após o outro
cat cat Duplica o conteúdo digitado (ctrl+d = sair)
cat cat file.txt Lê um arquivo (ctrl+d = sair)
cat cat > file.txt Cria um arquivo com o conteúdo digitado (ctrl+d = sair)
@rg3915
rg3915 / boilerplate2.sh
Last active February 17, 2023 11:53
Boilerplate: Shell script to create a complete Django project in Mac with Python 3.7 and Django 2.2.12
# Shell script to create a complete Django project.
# This script require Python 3.x and pyenv
# Settings.py is config to Django 2.2.12
# The project contains:
# Settings config
# Person model and form
# Person list and detail
# Person create, update and delete
# Admin config