Skip to content

Instantly share code, notes, and snippets.

Jugurtha Hadjar jhadjar

  • BIGmama Technology
  • Algiers, Algeria
Block or report user

Report or block jhadjar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jhadjar
jhadjar / message_processing.py
Created Dec 30, 2017 — forked from MikahB/message_processing.py
Example file from alphaMesh project
View message_processing.py
"""Process inbound messages. Useful for AMQP message consumers.
You can write about what your module does here.
See PEP8 "Style Guide for Python Code."
See PEP257 "Docstring Conventions."
These are really helpful as they contain guidelines
to make code more readable.
@jhadjar
jhadjar / beautiful_idiomatic_python.md
Created Sep 24, 2016 — forked from JeffPaine/beautiful_idiomatic_python.md
Transforming Code into Beautiful, Idiomatic Python: notes from Raymond Hettinger's talk at pycon US 2013. The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!
View beautiful_idiomatic_python.md

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
You can’t perform that action at this time.