Welcome To Snipplr


Everyone's Recent Python Snippets



1 2 3 4 5 6 ... 19
Simple animation in C4D (R13) consisting of moving a cube from state 1 to state 2 with Python.
0 155 posted 8 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 101 posted 8 years ago by throb
Two ways of printing a message backwards using either string slicing, or list() function.
0 90 posted 8 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 130 posted 8 years ago by Glycerine
0 116 posted 8 years ago by inky76
Quick method for creating coloured tty in python terminal using 'termcolor' $ pip install termcolor;
0 125 posted 8 years ago by Glycerine
A simple python password generator...
0 107 posted 8 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 192 posted 8 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 122 posted 8 years ago by lukasvinclav
0 116 posted 8 years ago by tilakapash
Shows usage of the Python filter() function
0 154 posted 8 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 104 posted 8 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 86 posted 8 years ago by denakitan
Reference of simple operations with dates, such as formatting and arithmetic.
0 109 posted 8 years ago by denakitan
Snippet to verify whether or not a key exists in a python dictionary.
0 79 posted 8 years ago by denakitan
0 97 posted 8 years ago by eazyigz
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 97 posted 9 years ago by hlongmore
0 107 posted 9 years ago by ronakpatel2006
Based on http://www.ncbi.nlm.nih.gov/books/NBK25498/#chapter3.Application_3_Retrieving_large
0 135 posted 9 years ago by itskkumaran
Hard-coding absolute paths is never ideal so here's a quick way to reference your project folder
0 95 posted 9 years ago by chrisaiv
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 110 posted 9 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 161 posted 9 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 104 posted 9 years ago by magicrebirth
1 2 3 4 5 6 ... 19