Welcome To Snipplr


Everyone's Recent Python Snippets



1 2 3 4 5 6 ... 18
Simple animation in C4D (R13) consisting of moving a cube from state 1 to state 2 with Python.
0 1066 posted 12 years ago by adarpodracir
A function that adds gamma attribs to the image files that are 8 bit in nature (aka not EXR or HDR) so that you can get to a linear workflow easily
0 889 posted 12 years ago by throb
Two ways of printing a message backwards using either string slicing, or list() function.
0 713 posted 12 years ago by jdsantiagojr
Reset a branch. Notably used for moving a commit from one branch to another, or fix a commit on 'no branch'
0 987 posted 12 years ago by Glycerine
0 757 posted 12 years ago by inky76
0 866 posted 12 years ago by inky76
Quick method for creating coloured tty in python terminal using 'termcolor' $ pip install termcolor;
0 836 posted 12 years ago by Glycerine
A simple python password generator...
0 835 posted 12 years ago by p1p1092
I started messing around with the Last.fm API and somehow just started building more and more service requests. This should be enough to get anyone started on using Last.FM's API
0 1155 posted 12 years ago by chrisaiv
Django's middleware for global app login. With this middleware you don't have to decorate views by login_required decorator.
0 832 posted 12 years ago by lukasvinclav
0 922 posted 12 years ago by tilakapash
Shows usage of the Python filter() function
0 1046 posted 12 years ago by andrewjsledge
Example of some random number generation mechanisms built-in Python. More details in the following link: http://docs.python.org/library/random.html
0 804 posted 13 years ago by denakitan
Basic thread example showing how to create a class inheriting from threading.Thread class. For more information, take a look at the following links: http://docs.python.org/library/thread.html http://docs.python.org/library/threading.html http://www.i...
0 780 posted 13 years ago by denakitan
Reference of simple operations with dates, such as formatting and arithmetic.
0 886 posted 13 years ago by denakitan
Snippet to verify whether or not a key exists in a python dictionary.
0 637 posted 13 years ago by denakitan
0 774 posted 13 years ago by eazyigz
2 998 posted 13 years ago by blackthorne
This is based on the JavaScript snippet at the snipplr URL listed. It in turn referenced a page that is no longer available. So I have decided to make my pythonification of the JavaScript available for others instead of hoarding it.
0 835 posted 13 years ago by hlongmore
0 750 posted 13 years ago by ronakpatel2006
0 1778 posted 13 years ago by ronakpatel2006
Based on http://www.ncbi.nlm.nih.gov/books/NBK25498/#chapter3.Application_3_Retrieving_large
0 948 posted 13 years ago by itskkumaran
Simple código en python que te pregunta tu email (gmail) y el correo de tu amigo, pregunta tu contraseña para loguearse vía SMTP en Gmail y enviar el correo. Copyright: http://andriy.im
0 693 posted 13 years ago by andriyleu
You need to convert Python source code into HTML markup, rendering comments, keywords, operators, and numeric and string literals in different colors. tokenize.generate_tokens does most of the work. We just need to loop over all tokens it finds, to...
0 1005 posted 13 years ago by magicrebirth
[from the author's website] I wrote this to better understand the relationship between RGB colors. Running it will generate a fairly large HTML file with all sorts of color transitions on it so you can see what is happening as colors are tweaked in...
0 867 posted 13 years ago by magicrebirth
1 2 3 4 5 6 ... 18