possiblyNothing()
  • Home
Subscribe
Tagged

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

David Albone Dec 27, 2012 • 1 min read
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.

David Albone Oct 24, 2012 • 1 min read
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: __enter__() method - before method is run __exit__() method - after method is run   This is useful when you want to ensure that

David Albone 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

David Albone Oct 5, 2012 • 1 min read
possiblyNothing() © 2022
Powered by Ghost