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 1056 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 878 posted 12 years ago by throb
Two ways of printing a message backwards using either string slicing, or list() function.
0 706 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 980 posted 12 years ago by Glycerine
0 750 posted 12 years ago by inky76
0 856 posted 12 years ago by inky76
Quick method for creating coloured tty in python terminal using 'termcolor' $ pip install termcolor;
0 827 posted 12 years ago by Glycerine
A simple python password generator...
0 826 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 1146 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 826 posted 12 years ago by lukasvinclav
0 913 posted 12 years ago by tilakapash
Shows usage of the Python filter() function
0 1035 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 793 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 768 posted 13 years ago by denakitan
Reference of simple operations with dates, such as formatting and arithmetic.
0 875 posted 13 years ago by denakitan
Snippet to verify whether or not a key exists in a python dictionary.
0 631 posted 13 years ago by denakitan
0 764 posted 13 years ago by eazyigz
2 984 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 822 posted 13 years ago by hlongmore
0 741 posted 13 years ago by ronakpatel2006
0 1767 posted 13 years ago by ronakpatel2006
Based on http://www.ncbi.nlm.nih.gov/books/NBK25498/#chapter3.Application_3_Retrieving_large
0 941 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 687 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 997 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 858 posted 13 years ago by magicrebirth
1 2 3 4 5 6 ... 18