Welcome To Snipplr


Everyone's Recent Snippets



1 ... 452 453 454 455 456 ... 553
Using Groovy you can extend the Sql, DataSet and GroovyResultSet objects present in the language to do simple object mapping similar to iBatis et al. An example of using the code below /* POGO used in the mapping */ class BranchFax {...
0 1713 posted 17 years ago by kouphax
I thought I would share this simple username password PHP auth script. It leans on HTTP to secure a page.. not bulletproof but quick and painless.
3 1472 posted 17 years ago by jadedbat
This is simply to serve as a reminder for me as to Firefox's desired font size based on a 16pt base.
0 1357 posted 17 years ago by conspirator
0 1126 posted 17 years ago by czapata
1 1277 posted 17 years ago by ascarion
These are code snippets from different files for a Pylons project that show a working (provided the environment) htmlfill example.
1 1731 posted 17 years ago by wackysalut
2 1285 posted 17 years ago by AzizLight
Here is a well formed list of all U.S. States, with their names, abbreviation and all Counties in each state.
1 1814 posted 17 years ago by discorax
Used to display the latest X number of posts from the specified category.
5 1702 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 2063 posted 17 years ago by creator
Fortunately there are a couple of workarounds which are also explained in this article at Position Is Everything:
1 1016 posted 17 years ago by dvdrtrgn
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 1198 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 1281 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 6445 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 1707 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 1258 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 977 posted 17 years ago by hlubek
A simple way to create a double-border effect (i.e. for images) in all browsers.
1 1370 posted 17 years ago by sidisinsane
0 1188 posted 17 years ago by deepdown
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 1413 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 1487 posted 17 years ago by ianmonge
Calculates the number of Months between 2 given dates
1 2760 posted 17 years ago by kouphax
0 1366 posted 17 years ago by giroro
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 1953 posted 17 years ago by jimfred
32 10665 posted 17 years ago by sidisinsane
1 ... 452 453 454 455 456 ... 553