Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
hope you enjoy - thanks to Tom Duff (for implementation in C), Dean Edwards, and Nicholas Zakas for the idea
0
1033
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
1781
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
1638
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
1987
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
1498
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
2172
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
2479
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
1702
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
1414
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
1741
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
4780
posted 16 years ago by ericmorin21
Remove item (number or string) from array, using jQuery (method grep).
3
16766
posted 16 years ago by gustavopaes
Controls what actions the template's index.php file takes depending on the current state of a module or a set of modules
2
1292
posted 16 years ago by sfjalar