possiblyNothing()
  • Home
Sign in Subscribe

python

A collection of 4 posts
projects

Quarter to Seven - a simple RSS reader

I've just completed my second webapp and this one is a little more adventurous than the password generator. It's a simple, easy-to-use RSS reader that allows you to add new feeds, delete old feeds and define the feed that is loaded by default. All your feeds and preferences are held
Dec 27, 2012
projects

Password generator

I've just completed my first web project using a combination of python, Flask and jQuery. It's a simple password generator that supports three different methods of password generation. You can find it here [http://passgen.dpauk.webfactional.com/].
Oct 24, 2012
python

Python: "with" statement

with EXPRESSION [as VARIABLE]: BLOCK OF CODE The with statement always calls two methods on the EXPRESSION, regardless of what happens inside the BLOCK OF CODE: 1. __enter__() method - before method is run 2. __exit__() method - after method is run This is useful when you want to ensure
Oct 5, 2012 1 min read
python

Decorators

To request database connections, flaskr uses decorators. For example: @app.before_request def before_request(): g.db = connect_db() From http://stackoverflow.com/questions/739654/understanding-python-decorators: Functions are objects in python and can be assigned to a variable.Functions can be embedded inside other functions, but the inner function is
Oct 5, 2012 1 min read
Page 1 of 1
possiblyNothing() © 2023
Powered by Ghost