Welcome To Snipplr
Everyone's Recent Python Snippets Tagged python
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Example of some random number generation mechanisms built-in Python. More details in the following link: http://docs.python.org/library/random.html
0
624
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
553
posted 12 years ago by denakitan
Reference of simple operations with dates, such as formatting and arithmetic.
0
679
posted 12 years ago by denakitan
Snippet to verify whether or not a key exists in a python dictionary.
0
469
posted 12 years ago by denakitan
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
647
posted 12 years ago by hlongmore
This context manager restores the value of the current working directory (cwd) after the enclosed code block completes or raises an exception. If a directory name is supplied to the context manager then the cwd is changed prior to running the code b...
0
690
posted 12 years ago by ches
Created to have a LEO editor file upload itself to dropbox. Just replace your dropbox email in the script. The script will ask you the name of the file without the extension, then will ask for your password and finally it uploads the file.
0
493
posted 12 years ago by eristoddle
See: http://docs.python.org/library/smtpd.html
You might use other port instead 25.
0
711
posted 13 years ago by wnasich
Hi Guys,
I had a job to remove all kinds of comments from the Lua file. I tried to find a usable Python script to this on the net, but Google did not help.
Therefore, I made one. This script recognizes all types of comments such as single and mul...
0
1368
posted 13 years ago by Woodoo
A simple Ajax database app built with the Karrigell web framework for Python; PyDbLite, a non-SQL Python database engine; and JQuery in the browser
0
496
posted 13 years ago by jcastell