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 856 posted 11 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 658 posted 11 years ago by throb
Two ways of printing a message backwards using either string slicing, or list() function.
0 560 posted 11 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 754 posted 12 years ago by Glycerine
0 570 posted 12 years ago by inky76
0 662 posted 12 years ago by inky76
Quick method for creating coloured tty in python terminal using 'termcolor' $ pip install termcolor;
0 646 posted 12 years ago by Glycerine
A simple python password generator...
0 661 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 924 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 673 posted 12 years ago by lukasvinclav
0 708 posted 12 years ago by tilakapash
Shows usage of the Python filter() function
0 778 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 613 posted 12 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 546 posted 12 years ago by denakitan
Reference of simple operations with dates, such as formatting and arithmetic.
0 665 posted 12 years ago by denakitan
Snippet to verify whether or not a key exists in a python dictionary.
0 456 posted 12 years ago by denakitan
0 568 posted 12 years ago by eazyigz
2 752 posted 12 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 636 posted 12 years ago by hlongmore
0 567 posted 12 years ago by ronakpatel2006
0 1364 posted 12 years ago by ronakpatel2006
Based on http://www.ncbi.nlm.nih.gov/books/NBK25498/#chapter3.Application_3_Retrieving_large
0 712 posted 12 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 528 posted 12 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 805 posted 12 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 683 posted 12 years ago by magicrebirth
1 2 3 4 5 6 ... 18