Skip to content

Instantly share code, notes, and snippets.

Tradução do Python 3000 pra pt-BR

Hoje, dia 14/07/2010 teremos um sprint para traduzir a documentação do Python 3000, usando um sistema chamado Pootle. O objetivo é usar o trabalho de i18n do Sphinx produzido durante o Google Summer of Code 2010.

Mais informações sobre o sprint em http://hltbra.blogspot.com/2010/07/mini-sprint-pra-traducao-da.html

Como vai funcionar o sprint

"""
>>> usuarios = [Usuario('usuario %d' % i, i) for i in range(10)]
>>> pegar_usuarios(usuarios, [1, 2, 3])
[<Usuario 1>, <Usuario 2>, <Usuario 3>]
"""
class Usuario(object):
def __init__(self, nome, id):
self.id = id
## shell
$ python manage.py harvest
Django's builtin server is running at 0.0.0.0:8000
Feature: WILLDO list # willdo/features/list_with_items.feature:1
In order to have a WILLDO list # willdo/features/list_with_items.feature:2
As a forgetful person # willdo/features/list_with_items.feature:3
I want to create lists to help me organize my work # willdo/features/list_with_items.feature:4
Scenario: Empty WILLDO list # willdo/features/list_with_items.feature:6
@hltbra
hltbra / patch_issue_34.patch
Created March 24, 2011 22:17
Kelsey Hightower's patch to issue #34 (in github) -- Issue when trying to remove from list twice.
# HG changeset patch -- Bitbucket.org
# Project pip
# URL https://bitbucket.org/khightower/pip/overview
# User Kelsey Hightower <kelsey.hightower@gmail.com>
# Date 1296943694 18000
# Node ID 384c3784a22c449e80b58d5ba159f637e84f5cc7
# Parent 0542924d062debf8a4b9a8c83da8241411955139
Fixing #205 -- Issue when trying to remove from list twice.
--- a/pip/req.py
@hltbra
hltbra / patch_issue_32.patch
Created March 24, 2011 22:20
Kelsey Hightower's patch to issue #32 (in github) -- pip crashes when server does not send content-type header
# HG changeset patch -- Bitbucket.org
# Project pip
# URL https://bitbucket.org/khightower/pip/overview
# User Kelsey Hightower <kelsey.hightower@gmail.com>
# Date 1296967318 18000
# Node ID 1bb3bf439fdb61596b1f28ad32e7ba60e67ff064
# Parent 0542924d062debf8a4b9a8c83da8241411955139
Fixing issue 207 -- pip crashes when server does not send content-type header
--- a/pip/download.py
@hltbra
hltbra / patch_issue_68.patch
Created March 25, 2011 02:36
Patch from Peter Waller: Prevent 'pip bundle' from trying to copy the package to the build-bundle twice.
# HG changeset patch -- Bitbucket.org
# Project pip
# URL https://bitbucket.org/pwaller/pip/overview
# User Peter Waller <peter.waller@gmail.com>
# Date 1290443993 -3600
# Node ID 4ab07b7bde7886d5e1021d8ae7723bd3137fb3e7
# Parent 69b27453590266fca0706cef63569397b114e8e2
Prevent 'pip bundle' from trying to copy the package to the build-bundle twice.
--- a/pip/req.py
describe("CompletaPraMim", function() {
var NAMES_JSON = 'http://localhost:4567/names.json';
var result;
var completer = new CompletaPraMim(NAMES_JSON, function(values) {
result = values;
});
function checkIf(options) {
runs(function() {
completer.tell(options.telling);
@hltbra
hltbra / gist:1120276
Created August 2, 2011 14:16
centralniak_patch_to_pip_issue_52
# HG changeset patch -- Bitbucket.org
# Project pip
# URL https://bitbucket.org/centralniak/pip/overview
# User Piotr Kilczuk <p.kilczuk@stylesheet.pl>
# Date 1284562027 -7200
# Node ID 0271386efe0bf178bf99a96f370127e8d8899577
# Parent 2abe82ba88d3bba17199c5b04ef2ea4b14040a92
Probably fixes issue #143
--- a/pip/vcs/__init__.py
@hltbra
hltbra / gist:1372100
Created November 17, 2011 01:32
Links complementares à palestra "Quero ser programador! #comofas?"
Slides usados na SCTI 2011:
http://www.slideshare.net/hugobr/quero-serprogramadorcomofas
Eu separei alguns links que eu acho interessante pra quem estava na palestra.
Alguns estão nas referências dos slides, outros não:
* Teach Yourself Programming in Ten Years
@hltbra
hltbra / udacity_autonext_ext_new_ui.patch
Created May 15, 2012 23:23
Patch Udacity EXT auto next video & quiz
--- udacity_ext.js 2012-05-15 20:19:44.000000000 -0300
+++ udacity_ext_new_ui.js 2012-05-15 20:22:49.000000000 -0300
@@ -5,7 +5,7 @@
// @version 0.1
// @include http://www.udacity.com/view*
// @match http://www.udacity.com/view*
-// @copyright 2012, Damian Sepczuk
+// @copyright 2012, Damian Sepczuk, Hugo Lopes Tavares
// ==/UserScript==