Welcome To Snipplr


Everyone's Recent Snippets



1 ... 440 441 442 443 444 ... 554
this function formats a web address for use in a link
2 934 posted 16 years ago by jlvallelonga
This snippet assumes that you have a container `div` with an id of "images". It also assumes that each img element inside your container div has the CSS property `visibility: hidden`
0 705 posted 16 years ago by username
This snippet contains a text input field called 'abc' and we calling the checkNum function as the onclick action of a button 'btn'
0 1064 posted 16 years ago by juzerali
this will give you a lovely RSS. Im sure you will need to edit the database stuff and row names
5 1243 posted 16 years ago by antpaw
dont use spaces around the ":" in CSS its buggy :(
2 1414 posted 16 years ago by antpaw
and DropShadow Filter :)
0 1060 posted 16 years ago by antpaw
0 717 posted 16 years ago by gerhardsletten
0 755 posted 16 years ago by m-pokrovskii
A PHP function that correctly validates all parts of a given email address, according to RFCs 5322, 5321, 1123, 2396, 3696, 4291, 4343, 2821 & 2822. I’ve released it under a license that allows you to use it royalty-free in commercial or non-commer...
4 1464 posted 16 years ago by dominicsayers
1 839 posted 16 years ago by aadsm
6 873 posted 16 years ago by kungpoo
Is.Gd is a URL-shortening service much like TinyURL. Using PHP’s cURL library, you can create shortened URLs on the fly with ease. “is.gd” is much shorter than “tinyurl.com” so if you need the URL to be as short as possible, use this method...
0 900 posted 16 years ago by nerdsane
Uses JScript
0 896 posted 16 years ago by deepdown
If reading email from a POP box with PHP, you can use this to strip out signatures (ones that are delimited with the proper '--' notation). It will only strip the last signature of an email, in case someone enters a '--' intentionally elsewhere.
0 970 posted 16 years ago by DaveChild
1 1056 posted 16 years ago by gfazioli
21 5226 posted 16 years ago by garside
Use the colon : modifier to build an array. The colon is like a wildcard. In this case, anything that starts with ash. SAS Arrays hold variable names which can be used during tedious procedures such as conditional loops.
0 1195 posted 16 years ago by webonomic
I use this snippet to force a number to 2 decimal places. Eg, For prices, PHP rounds the number 22.20 to 22.2. This code forces a zero on the end if there isn't 2 decimal places already.
1 1043 posted 16 years ago by xtheonex
This little piece of code will convert to US phone format, as typed. Eg, As the number "0000000000" was typed, it would convert it to (000)-000-0000.
6 3866 posted 16 years ago by xtheonex
Function to return the current page name, without the location of it... Eg, for the URL http://localhost/www/someproject/index.php, this would return index.php
1 834 posted 16 years ago by xtheonex
A quick, usefull function which i use to convert a date/time string pulled from MySQL, into a readable format.
1 1018 posted 16 years ago by xtheonex
This is by no means the most efficient way to do this, in terms of performance. It is however the easiest way.
1 965 posted 16 years ago by xtheonex
Won't work with Google code pages: they are javascript powered.
0 921 posted 16 years ago by iblis
How to run a KVM VM with no X (server environment, originally seen at http://blog.bodhizazen.net/?p=40).
0 846 posted 16 years ago by narkisr
1 ... 440 441 442 443 444 ... 554