Welcome To Snipplr


Everyone's Recent Snippets Tagged python



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 250 posted 13 years ago by chombee
You
5 426 posted 13 years ago by abhiomkar
going to use twitterlocal to play around a bit with pygooglechart.
0 297 posted 13 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 422 posted 13 years ago by donkawechico
A way to post to twitter from Google AppEngine using urlfetch.
4 475 posted 13 years ago by sgraber
This function takes an amount of time in seconds and returns a human readable time span (i.e., 4h 5m 23s). The suffixes (d for day, h for hour) are configurable to whatever you want (like day, hour, week, etc). Read the comments within the code for...
2 1166 posted 13 years ago by wbowers
Use this to start of new python applications.
1 397 posted 13 years ago by kangell
0 308 posted 13 years ago by rob_cowie
This is the SoftPRO library needed by the GUI Collector main file.
0 253 posted 13 years ago by stagger
0 269 posted 13 years ago by stagger
This is the main file. You also need the libraries posted here for the program to work.
0 251 posted 13 years ago by stagger
0 277 posted 13 years ago by stagger
taken from http://www.amk.ca/python/zeroconf
0 313 posted 13 years ago by yarvin
0 374 posted 13 years ago by rob_cowie
0 369 posted 14 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 261 posted 14 years ago by pr1001
1 340 posted 14 years ago by arcturus
0 354 posted 14 years ago by arcturus
You can also check other kind of perms changing the constant os.R_OK
0 300 posted 14 years ago by arcturus