Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Easily create a SINGLE USE ONLY (Singleton) Class Object with this template.
1
1484
posted 16 years ago by allnatural
This turns the about page into a featured category post page. The principles for just a regular custom page template with sidebars is there too.
3
2307
posted 16 years ago by kristarella
This provides a teaser, with content from a custom feild, or the excerpt if no field exists. Everything except the title and edit link need to be turned off in the options.
3
1230
posted 16 years ago by kristarella
displayed filename and line number.
//normal use
d( $arg );
//some arguments
d( $arg1 , $arg2 , ... );
0
1014
posted 16 years ago by ikimozu
hope you enjoy - thanks to Tom Duff (for implementation in C), Dean Edwards, and Nicholas Zakas for the idea
0
916
posted 16 years ago by jschilling
https://www.chrisjmendez.com/2004/09/27/jquery-converting-all-the-items-in-a-select-element-into-a-string-array/
0
1629
posted 16 years ago by chrisaiv
I believe that Accrisoft has a fetch all images from db function built in, but you could always use some php to create the image array
5
1498
posted 16 years ago by conspirator
Generates an options list of years for a select box, going from current year backwards through the number of years specified in the first variable.
Useful for birthday fields on signup forms.
eg. 2009, 2008, 2007, 2006 ... 1912, 1911, 1910, 190...
3
1827
posted 16 years ago by iridium
I made this ;) Python's operator class is what you need to know if you want to avoid using lambda functions or define your own helper functions in many cases.
1
1367
posted 16 years ago by fnurl
This method maintains its integrity with all combinations of images on/off and CSS on/off.
This method works by laying an empty span over the top of the parent element with the required image applied as a background to that span.
There is howev...
4
2026
posted 16 years ago by justinseiter
This sticky footer solution is working in all major browsers, including Google Chrome! It works with floated 2-column layouts and we don't get overlap in re-sized browser windows unlike older solutions you find when you Google sticky footer. And you...
8
2326
posted 16 years ago by justinseiter
this is how to automatically get short urls for your blog posts in wordpress,
What you need
is to decide which tinyurl service you will be using and get its api URL,
for example rinyurl.com , bit,ly, tr.im,
here are the api URLS for the mo...
0
1513
posted 16 years ago by nerdsane
This is a snippet to assign an active class to active links when the navigation is included in a php file.
1
1296
posted 16 years ago by grazz
This describes how to embed font in to Flex(mxml) file without using the <mx:style> tag (fully AS3).
1
1601
posted 16 years ago by shabith
I needed to clean up strings with an unpredictable number of spaces interspersed throughout. Powershell's Replace method to the rescue.
1
4597
posted 16 years ago by ericmorin21
Remove item (number or string) from array, using jQuery (method grep).
3
15797
posted 16 years ago by gustavopaes