i = 0
for j in ['foo', 'bar', 'baz']
    puts "#{i} #{j}"
...

Ruby Python's enumerate in Ruby?

by robby86533.identity.net, July 14, 2008 23:02, 4 refactorings, tagged with ruby, python, for, enumerate

What is the best way to emu...

Cbb09ca8a832170ec73186f5c8cafba4 Talk
import wsgiref.handlers

from google.appengine.ext import webapp
...

Python Get request path using Goog...

by Zote, July 14, 2008 18:34, 4 refactorings, tagged with python, google application engine, gae, request path

if my url is http://zote.ap...

3079a42933388fed686653b9cd9affba Talk
def segment_pages(page):
    page.paginator.left = []
    page.paginator.right = []
...

Python Django / Python / Paginatio...

by bramston, June 11, 2008 04:58, 1 refactoring, tagged with python, django, pagination

Really quickly ported some ...

Eb74aac8da41a993ae9dd91a5b13b78a Talk
def sort(words):
...

Python Custom sort a list of words

by armandino.myopenid.com, December 10, 2007 02:36, 8 refactorings, tagged with python, sort

My second python script. :)...

2155c92be66863c4634778bf522efe14 Talk
import re

def addWord(token, frequencies):
...

Python Count word occurrences in a...

by armandino.myopenid.com, December 08, 2007 07:03, 9 refactorings, tagged with python

This code counts number of ...

2155c92be66863c4634778bf522efe14 Talk
class SearchLet(Form):
    district = Field(widget=SelectMultiple(choices=DISTRICTS, required=False)
...

Python Django models search

by lbolognini, November 10, 2007 16:30, 3 refactorings, tagged with search, python, django, orm

I'm using the following cod...

D2ff155cd04fa175620d2f3495b11b08 Talk