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
735
posted 12 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
672
posted 12 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
691
posted 12 years ago by nivasgallo
Para genera clases de RMI skel y stub en proceso distribuidos
0
877
posted 12 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
943
posted 12 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
922
posted 12 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
774
posted 12 years ago by o0110o
Add this to functions.php and then you can call the focus keyword anywhere you want with:
<?php wpseoFocusKW();?>
0
1036
posted 12 years ago by itsmrchris
Extremely simple snippet showing the basic structure of a Python program.
1
934
posted 12 years ago by denakitan
Add to functions.php. Replace IDs (64, 104 below) with categories you want to exclude.
1
937
posted 12 years ago by adambundy
How to insert the less preprocessor script in WordPress Websites and Blogs
0
852
posted 12 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
698
posted 12 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
940
posted 12 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
578
posted 12 years ago by martijnhoogwerf
http://blog.sqlauthority.com/2008/08/26/sql-server-how-to-rename-a-column-name-or-table-name/
0
674
posted 12 years ago by BrentS
The relative "em" version of the fixed page layout of the Nexus core theme
0
848
posted 12 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
805
posted 12 years ago by claudiodev
this method generates and returns a unique slug, given a string.
1
934
posted 12 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
744
posted 12 years ago by rickygri
Create a new database and its respective user with all privileges
0
694
posted 12 years ago by claudiodev