Welcome To Snipplr


Everyone's Recent Snippets Tagged python



going to use twitterlocal to play around a bit with pygooglechart.
0 1517 posted 17 years ago by mandric
Any time I make PHP applications that interact with a database, I use this script. It generates one or more self-populating "View Objects" (a class that represents a single record from a DB). For example, rather than access a MySQL record-set by arra...
1 1845 posted 18 years ago by donkawechico
A way to post to twitter from Google AppEngine using urlfetch.
4 2000 posted 18 years ago by sgraber
Use this to start of new python applications.
1 1639 posted 18 years ago by kangell
0 1266 posted 18 years ago by rob_cowie
0 1163 posted 18 years ago by stagger
This is the SoftPRO library needed by the GUI Collector main file.
0 1226 posted 18 years ago by stagger
0 1289 posted 18 years ago by stagger
This is the main file. You also need the libraries posted here for the program to work.
0 1185 posted 18 years ago by stagger
0 1472 posted 18 years ago by stagger
0 1648 posted 18 years ago by rob_cowie
0 1546 posted 18 years ago by sgraber
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 1217 posted 18 years ago by pr1001
1 1817 posted 18 years ago by arcturus
0 1668 posted 18 years ago by arcturus
You can also check other kind of perms changing the constant os.R_OK
0 1624 posted 18 years ago by arcturus
Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.
1 1875 posted 18 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 3053 posted 18 years ago by ches
like PHP's 'jS'
0 2807 posted 18 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 1509 posted 18 years ago by n3x
1 1237 posted 19 years ago by abhiomkar
1 1312 posted 19 years ago by abhiomkar
Since the version of compose() that ships with functional only allows you to compose two functions, I present this version that composes n functions.
0 1324 posted 19 years ago by collin