Welcome To Snipplr
Everyone's Recent Python Snippets Tagged python
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Test-first programming, in which you write the unit tests first with the unittest module and then work on the code until it passes all the tests, seems like a good substitute for writing interfaces or documentation first. The unit tests are like an A...
0
631
posted 15 years ago by chombee
This is my implementation of the messager pattern used by Panda3D for event
handling. It's a really nice idea but I think Panda's version is implemented
weirdly, it uses the subscribe objects as keys in the dictionary. That means
that if you want...
0
447
posted 15 years ago by chombee
going to use twitterlocal to play around a bit with pygooglechart.
0
579
posted 16 years ago by mandric
This is the SoftPRO library needed by the GUI Collector main file.
0
480
posted 16 years ago by stagger
This is the main file. You also need the libraries posted here for the program to work.
0
412
posted 16 years ago by stagger
I got halfway making this but switched to another method. Thought I'd save it just in case...
options_for_select(): http://pylonshq.com/WebHelpers/module-webhelpers.rails.form_options.html#options_for_select
Based on http://snipplr.com/view/169/u...
0
430
posted 16 years ago by pr1001
You can also check other kind of perms changing the constant os.R_OK
0
580
posted 16 years ago by arcturus
Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.
1
847
posted 16 years ago by ches
model/form.py is a good place to put schemata in a pylons app: easy to build with inheritance and accessible to controllers via model.form.EmailForm, etc. See the link for further info on the _extra_fields options -- this one is intended for just two...
1
979
posted 16 years ago by ches
The ASPN cookbook has many recipes for singletons in Python. So far, this one
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/412551
has been my favourite, because it is so simple and concise. However, I just ran into a brick wall when I tr...
0
605
posted 16 years ago by n3x