Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Python
htmlfill and Pylons integration, form validation inside controller and Mako template example with i18n
These are code snippets from different files for a Pylons project that show a working (provided the environment) htmlfill example.
1
1766
posted 17 years ago by wackysalut
Here is a well formed list of all U.S. States, with their names, abbreviation and all Counties in each state.
1
1867
posted 17 years ago by discorax
Used to display the latest X number of posts from the specified category.
5
1773
posted 17 years ago by creator
For use on a single page... Only displays the content if the displayed post is in the specified category. You can use the category slug or the category ID if you know it.
6
2107
posted 17 years ago by creator
This source code uses the xml file posted here(http://snipplr.com/view/4138/backup-script2--confg-file/) to know which file should be sent and mailing configuration.
0
1230
posted 17 years ago by mjsmagalhaes
Checks the size of skypes online "status buttons" to determine online/offline status, so you're able to use custom buttons, text.. etc, etc
2
1325
posted 17 years ago by davidsword
Q: How do I write a structure to a file?
A: You can easily write a structure to a file as long as the structure is what is known as a POD (Plain Old Data) type. This means that all members of the structure must be of a fixed size, which implies th...
1
6499
posted 17 years ago by architect
Split and manipulate URLs easily with this module. It has similar interface to Python's urlparse library. This is patched and modified version from Denis's orignal implementation.
1
1760
posted 17 years ago by miohtama
It is utterly annoying when DOM event handler exceptions fail silently with Firebug. This package fixes this common problem.
0
1294
posted 17 years ago by miohtama
The <code>clean</code> script shipped with the Magento downloader actually deletes too much. It's safe to run this command after updating to keep the installation "small".
0
1012
posted 17 years ago by hlubek
A simple way to create a double-border effect (i.e. for images) in all browsers.
1
1412
posted 17 years ago by sidisinsane
Only tested in Safari 3, Opera 9.5 and Firefox 2 (all Mac OS) for now, but it should actually work. If you run into any problems, please provide some feedback.
2
1457
posted 17 years ago by sidisinsane
How to create a custom “:checked†pseudo selector for use in MooTools. It is just a small snippet but I’ve found it incredibly useful.
0
1524
posted 17 years ago by ianmonge
This function provides C# with functionality similar to the apparently deprecated my.Computer.FileSystem.FindInFiles under the Microsoft.VisualBasic namespace.
Example usage:
IEnumerable<string> oemFiles = FindInFiles(...
1
1997
posted 17 years ago by jimfred