Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
How to display your page or categories list within a definition list instead of the default unordered list. The first block is about pages and the second one is about categories.
0
523
posted 13 years ago by brunohstein
Example set of files for data mapping objects to db records. (Not perfect, but funcional)
0
783
posted 13 years ago by nikefido
A favicon (short for favorites icon), also known as a shortcut icon, website icon, URL icon, or bookmark icon is a 16×16 or 32×32 pixel square icon associated with a particular website or webpage. The interesting bit here is the apple-touch-icon wh...
0
878
posted 13 years ago by cappellin
I’ve implemented something similar a couple of months ago. What we wanted was to prevent the cart from the old session from merging into the cart of the current session at the point when the customer login. If that describes what you want as well,...
0
662
posted 13 years ago by TioSolid
C#
Simplified and Consistent Printing in Silverlight - with Page Margins, Shrink to Fit, and Landscape printing
The following extension method allows you to call Print() on any FrameworkElement, UIElement or group of elements, and print with a variety of settings such as landscape mode, shrink to fit, page centering, and more
0
943
posted 13 years ago by alishahnovin
How to determine a static map image for google Maps as fallback for visitors without JS. The image can later be replaced via JS with the google Maps IFrame.
0
903
posted 13 years ago by ichnoweb
Note: This example uses Arthropod Debugger (AIR App) which can be downloaded from here http://arthropod.stopp.se/
1
878
posted 13 years ago by adrianparr
Simple bash script that sorts a series of numeric parameters using a temporary file and sort command.
0
655
posted 13 years ago by Hexx
Adjust the size of the body field window. For use in hook_form_alter().
0
759
posted 13 years ago by tgbdad
The code works if and only if your system is using English(United States) date format (i.e. "Web 05/11/2011").
If your systems is using English(United Kingdom) date format just replace %%B in the first and third rows with %%A.
0
1266
posted 13 years ago by cappellin