Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A very good slider / carousel. Um slider / carrossel muito bom. Ideal para designs responsivos.
0
584
posted 11 years ago by nivasgallo
Sort a file that contains integers between 1 and thousand. The output file should contain the entries like (n-times 1, followed by n-times 2 and so on): 1111222333555... But - you are not allowed to load all entries into memory at once. How to solve...
0
542
posted 11 years ago by awsomedevsigner
This code allows Google Analytics to monitor hashtags of jQuery activated events. Very useful if you relies on modal boxes.
Este código permite ao Google Analytics monitorar hashtags e âncoras em sites com eventos ativados por jQuery. Muito út...
1
558
posted 11 years ago by nivasgallo
Para genera clases de RMI skel y stub en proceso distribuidos
0
700
posted 11 years ago by thescorpion
Want to be able to display the source code of any webpage, with line numbering? Here is a simple code snippet to do it. Just modify the url on line 2 at your convenience. Or even better, make a pretty function according to your needs.
2
762
posted 11 years ago by o0110o
If you need to get the whois information for a specific domain, why not using PHP to do it? The following function take a domain name as a parameter, and then display the whois info related to the domain.
1
752
posted 11 years ago by o0110o
In order to optimize your scripts, you may definitely want to know how many amount of RAM they use on your server. This snippet will check memory and then print initial, final and peak usages.
3
610
posted 11 years ago by o0110o
Add this to functions.php and then you can call the focus keyword anywhere you want with:
<?php wpseoFocusKW();?>
0
859
posted 11 years ago by itsmrchris
Extremely simple snippet showing the basic structure of a Python program.
1
756
posted 11 years ago by denakitan
Add to functions.php. Replace IDs (64, 104 below) with categories you want to exclude.
1
762
posted 11 years ago by adambundy
How to insert the less preprocessor script in WordPress Websites and Blogs
0
693
posted 11 years ago by ecksteing
In this example it checks to see if the page it is on has an ACF named page_title, if so - display it as an H1, and if not, display the WP default page title as the H1
0
552
posted 11 years ago by itsmrchris
If you want to see some of the color names that SAS recognizes, run the following statements, which will print a list of colors to the SAS log:
0
761
posted 11 years ago by webonomic
If you are a PHP developer, you are probably aware that you can pass an array of strings as the search strings and an array as the replacements to the str_replace function. In this example you can see how to automatically replace smiley shortcuts by...
1
439
posted 11 years ago by martijnhoogwerf
http://blog.sqlauthority.com/2008/08/26/sql-server-how-to-rename-a-column-name-or-table-name/
0
534
posted 11 years ago by BrentS
The relative "em" version of the fixed page layout of the Nexus core theme
0
673
posted 11 years ago by vanseijen
Find and List all the files with extension .file containing/not containing the given string "STRING"
The snippet is set to "containing", to switch it to "not containg" just replace "grep -l" with "grep -L"
containing : grep -l
not containing:...
0
638
posted 11 years ago by claudiodev
this method generates and returns a unique slug, given a string.
1
773
posted 11 years ago by artaserse
Space div elements evenly inside a wrapper without using float (no right spacing issue) so that all elements are flush to the edges.
0
591
posted 11 years ago by rickygri
Create a new database and its respective user with all privileges
0
560
posted 11 years ago by claudiodev