Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You may use this code to highlight specific words in your displaying search results.
3
1564
posted 12 years ago by apphp-snippets
This code removes all special characters from the given URL and make it SEO friendly.
2
2369
posted 12 years ago by apphp-snippets
These 2 techniques can be used for alternating row-colors in a table.
1
2629
posted 12 years ago by apphp-snippets
The apple business is probable among the most well-known businesses at this moment within the matter from the extremely well best devices. Apple mackintosh produces numerous judgements for cutting-edge together with groundbreaking gizmos. The whole A...
0
1429
posted 12 years ago by jessicabutlerjcm
Con este esquema puedes crear objetos instanciables en Javascript usando jQuery.
Su uso es muy simple, sólo debes copiar el siguiente código y cambiar las variables que están en mayúsculas.
0
1220
posted 12 years ago by porquero
This is a more precise version of the native setTimeout(). It uses the same parameters as setTimeout, but adds a third parameter "resolution" which defines how often (in ms) to check for the time that passed.
// alert after 5 seconds with an i...
2
1109
posted 12 years ago by McSodbrenner
Easy PHP script for uploading and unpacking zip files to the server much faster
Steps to follow:
1. create folder on the webserver called "zipper" or something else
2. copy the following PHP code into a file called "zipper.php" into this folde...
2
5464
posted 12 years ago by jvandemerwe
Simle markup, simple CSS combined with ver straight forward javascript to produce some really cool effects.
0
1293
posted 12 years ago by COBOLdinosaur
Con ese codigo pueden agregar tildes y ñ en los alert o en las funciones de facebook
0
1347
posted 12 years ago by serialk89
Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechanism that allows them to simply click a button to do so. You have to paste this code into the head of your web page:
0
2538
posted 12 years ago by apphp-snippets
Allows to perform PHP redirection (must be placed before any browser output).
0
1318
posted 12 years ago by apphp-snippets
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:
0
2490
posted 12 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
3300
posted 12 years ago by apphp-snippets
Two static dictionaries for converting US state names to abbreviations, and the reverse.
0
4267
posted 12 years ago by misholson
**Example of use:**
<a href="http://www.php.net/manual/en/index.php"><img src="<?php echo get_favicon('http://www.php.net/manual/en/index.php') ?>" alt="Favicon" title="See PHP documentation" width="16" height="16" /></a>
0
3294
posted 12 years ago by phpdev
Groovy
groovy close a JFrame window the same way as when the user clicks on the X close window button
close a JFrame window the same way as when the user clicks on the X close window button
0
1827
posted 12 years ago by laurenceosx
Helps to find out browser version and type your website visitor is using.
0
2491
posted 12 years ago by apphp-snippets
This code allows to get the IP address from which the user is viewing the current page.
0
2720
posted 12 years ago by apphp-snippets
This is a hook_block_info and hook_block_view template that will allow you to quickly create blocks in a Drupal module. When you use this all you have to do is create a directory "blocks" in the module and then create block.block_name.php in the dire...
0
1430
posted 12 years ago by brownrl
In modern browsers select options can now be style using most css properties. Of course, IE is still behind but it does support some styling as well. There are a lot more options on the site.
0
2440
posted 12 years ago by COBOLdinosaur
Replaces string 'sth' with 'sth-new' in all files in current directory.
0
1427
posted 12 years ago by ef
This snippets show how to extract the video id of a youtube video from its URL
0
2747
posted 12 years ago by slimITTN
A simple message box created with only one div container with background and border color, some margin and padding for position the text message nicely, I set the width for 500px, you can change it to auto or any fixed value you want.
1
1649
posted 12 years ago by codingforever99
To fix the issue with localhost under Windows 8 giving a 403 error (but working for 127.0.0.1) I did the following:
0
1842
posted 12 years ago by rickygri
A simple way of correcting tests with Java. In this piece of code I just defined two possible models or answers, they're all random, but the only thing needed is to update them with valid answers. The length of the test? I just did it for a 10-questi...
0
1715
posted 12 years ago by eiger824
Script per copiar els fitxers canviats en una revisió git al servidor remot via sftp, using PHP Secure Communications Library (phpseclib): http://sourceforge.net/projects/phpseclib/.
Útil per usar amb 1and1.
0
2450
posted 12 years ago by marcniko