Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 46 47 48 49 50 ... 552
This script informs your visitor that a given page may be reached only from the page that you specify. Paste this code before the ending <head> tag on the page:
1 3217 posted 13 years ago by apphp-snippets
One of the important things about user input is to verify that the user has supplied the email that you have requested. The function below allows you to verify email address with easy.
1 3656 posted 13 years ago by apphp-snippets
The function that closes window is very useful when you use a pop-up window on your page, because it allows the visitor to easily close the window. You can also do it several ways: to use a button, a text link or make the window closes automatically...
1 3337 posted 13 years ago by apphp-snippets
This table is based on the ISO 2 letter (Alpha-2 code, ISO 639-1) and 3 letter (Alpha-3 code, ISO 639-2) Standard Codes for the Representation of Names of Languages.
0 3027 posted 13 years ago by rwt
Shell script written in bash which displays a menu giving the you ability to add, edit, modify, and delete users.
1 5088 posted 13 years ago by dego89
You may perform this work with two ways: pass it directly like described in sample #1 or use an anonymous function like its shown in sample #2.
0 2530 posted 13 years ago by apphp-snippets
This function allows you to pass two variables that represent ID of two elements on your page. What you click on one of them it hide it and shows another one.
1 2033 posted 13 years ago by apphp-snippets
Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users bookmark their favorite pages. But if you want to provide your visitors with a "Bookmark this page" link they can click you m...
1 18929 posted 13 years ago by apphp-snippets
The snippet below was pulled from code that loads a list of names pulled from Active Directory into a listbox. This code will execute when the user double clicks on a name in the list box (lstResults) and stores it in a variable to be passed to anoth...
0 2180 posted 13 years ago by mattvbiggs
myEls should be the selector statement for whatever elements you want to effect. The example wraps every 3.
1 2638 posted 13 years ago by adambundy
Uses CSS3 attributes and psuedo elements to create a simple play button for web interfaces.
0 3218 posted 13 years ago by devowhippit
How to convert a drawable to a bitmap
0 3057 posted 13 years ago by noloman
Use below SQL code and replace references within the theme files.
0 2042 posted 13 years ago by ihatetomatoes
0 2006 posted 13 years ago by fvanommen
0 1985 posted 13 years ago by fvanommen
0 1868 posted 13 years ago by fvanommen
0 1909 posted 13 years ago by fvanommen
0 2036 posted 13 years ago by fvanommen
You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will...
2 3562 posted 13 years ago by apphp-snippets
This example of code shows how to do a simple POST request in PHP to another web server by using a socket connection.
0 3852 posted 13 years ago by apphp-snippets
You need a copy of your model and relations (ObjectStorage properties). In this example there is a model Product with property ProductAddition (1:n relation).
0 2040 posted 13 years ago by FazzyX
Example of working with regexp sub-matches via Groovy way
0 4400 posted 13 years ago by alces
Reads CBC news RSS with fancy-prints its in table, splitting news description by image & text.
0 4361 posted 13 years ago by alces
Use this plugin: http://wordpress.org/extend/plugins/members/ Settings are here: http://justintadlock.com/archives/2010/07/10/meta-capabilities-for-custom-post-types http://codex.wordpress.org/Function_Reference/register_post_type Gravity Fo...
0 1505 posted 13 years ago by ihatetomatoes
With increasing of popularity of WordPress script, Gravatars have become a really quite popular. Now you may easy integrate them into your own script as they provide a very easy to use API.
0 1646 posted 13 years ago by apphp-snippets
based on the NappScrollViewExtended module (it is good but couse my app some problem)
0 1877 posted 13 years ago by boardmain
Usually when you're using different CSS files on your site, they might take a quite long to be loaded. Using this PHP code, you can compress them into a single file with no unnecessary white spaces or comments. Why we need to compress multiple CSS fi...
0 1931 posted 13 years ago by apphp-snippets
This code allows to remove all duplicate elements from an array using PHP array_unique() function.
0 2437 posted 13 years ago by apphp-snippets
This snippet allows you set a limitation for download rate of the file that visitors download from your site.
1 4465 posted 13 years ago by apphp-snippets
1 ... 46 47 48 49 50 ... 552