Welcome To Snipplr
Everyone's Recent Python Snippets Tagged python
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Here's a short program to print a list of all of the documents in your Google Documents account
0
439
posted 15 years ago by hemanthhm
ã¿ãŸã„ãªã‚«ãƒ³ã‚¸ã§ã€Œä¿æŒã™ã‚‹modelåã®å°æ–‡å—+"_set"ã€ã§ã¶ã‚‰ã•ãŒã‚‹Entityã®ãƒªã‚¹ãƒˆã‚’å–å¾—ã§ãる。ã“ã®å称ã¯ReferencePropertyã®ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿ã®collection_name引数ã§æŒ‡å®šã™ã‚‹äº‹ã‚‚ã§ãる。
0
472
posted 15 years ago by tamuratetsuya
This simple example tests and shows off a fully working FormEncode (v1.2) example. I've had a hard time finding an example, so I now give it to you.
1
767
posted 15 years ago by wackysalut
Also works with weighted degree or any other property you might think of.
0
787
posted 15 years ago by ntamas
Log in to feedage.com
Submit an rss feed
Print the results
0
601
posted 15 years ago by matthewnovak
This is going to run all doctests for all methods in a module. Doctests are a beautiful thing.
Note: doctest will only complain if a test fails. If you see on output then all your tests must have passed.
0
436
posted 15 years ago by stoyan
I had an icon representing a little blue dot and needed to create 100 copies each with a number in them.
Python saves the day yet again.
0
618
posted 15 years ago by stoyan
https://www.chrisjmendez.com/2008/08/09/python-basic-feedparser-example/
1
798
posted 15 years ago by chrisaiv
inspired by http://snipplr.com/view/6594/post-to-twitter-from-the-shell/ . I just rewrote it in Python because I didn't want to install a Ruby interpreter :)
use `chmod +x tweet.py` to run it as `./tweet.py` instead of `python tweet.py`
1
801
posted 15 years ago by nate_smith
Python make url address to Tinyurl in article content like Twitter message
1
809
posted 15 years ago by huacnlee
This script downloads all mp3 links from given rss/atom feeds.
I wrote this to learn python so I'm sure there are better ways to do this.
Depends on wget.
1
665
posted 15 years ago by panquetofobia
Effbot's page on the os module: http://effbot.org/librarybook/os.htm
The os module has lots of methods for dealing with files and directories: http://docs.python.org/lib/os-file-dir.html
The shutil module: http://docs.python.org/lib/module-shut...
0
995
posted 15 years ago by chombee
Python: Private Variables
http://docs.python.org/tut/node11.html#SECTION0011600000000000000000
Any identifier of the form __spam (at least two leading underscores, at most one trailing underscore) is textually replaced with _classname__spam, wher...
0
606
posted 15 years ago by ishikawa