Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Insert this in functions.php to remove WordPress version from being output in the header source code
0
2848
posted 14 years ago by klagraff
This is a fraction of a much larger script which does multiple tasks. This scriptlet is intended to be interactive and somewhat user-friendly. First, it asks if you want to place the computer into sleep mode, then it kills pesky processes associated...
1
4122
posted 14 years ago by Rectifier
Uses the sysinternals (microsoft) utility PsLogList to save specified event logs to files and then clears them. Method can be used to save logs as .evt and .evtx. This script has four event logs listed as an example and has a template command comment...
0
4947
posted 14 years ago by Rectifier
This is a simple batch script to clear the event logs from a windows 7 or server 2008 machine. The script does *not* save these logs. This was tested on a local machine but could be adapted for remote use.
1
4317
posted 14 years ago by Rectifier
Write a given number in words - Escreve um número por extenso. Write in Brazilian Portuguese, sorry for english or other language guys but it can be adapted.
Write from 1 to 9999
Based on a forum in http://scriptbrasil.com.br/forum/index.php?...
0
2449
posted 14 years ago by glauberportella
Allows the ability to fill City and State fields in CRM 2011 based on the value of a Zip Code field (and optionally Country).
Requires JQuery and JSON
Uses Yahoo geocode service
Originally written by Bill Caldwell ( http://dynamicscrmdenver...
1
2069
posted 14 years ago by evshell18
/* html5doctor.com Reset Stylesheet v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark */
0
2081
posted 14 years ago by lingokid
This shows the local and remote branches along with the most recent commit for each branch.
0
2253
posted 14 years ago by satie83
A regular expression for removing <br> and <br> (case insensitive) between HTML elements if there is no content between the HTML elements. It was written for fixing extra line spaces created in a WordPress visual editor after the content of the visu...
0
2874
posted 14 years ago by pumpkinthehead
Useful for adding Custom Post types to navigation this will list all custom post type posts
1
3031
posted 14 years ago by i-am-andy
Manually print out a category-navigation in a magento frontend template. within "stristr" you can enter an array of category-ids that should be hidden from display.
0
3019
posted 14 years ago by luxmedia
One approach to get all child categories of a magento category.
0
1926
posted 14 years ago by luxmedia
This will check the date and if it is not a valid date then it will increment the month and reset the day back to one.
1
2836
posted 14 years ago by _reydin_
Although I realize one should be able to filter a store to remove unwanted items in the list, this allows the list items through and just hides them via CSS.
0
1966
posted 14 years ago by Winkyboy
This is a pretty standard jQuery method to listen for the enter key and simply "click" the button. However, if you are using a LinkButton this code will not work. The reason for this is that a LinkButton is rendered to the browser as an Anchor tag...
0
1648
posted 14 years ago by weldonr30
Capture Web Screenshots easily with the [GrabzIt Perl API](http://grabz.it/api/perl/)
You will need the free [GrabzIt Code Library](http://grabz.it/api/perl/download.aspx) to get started.
0
3978
posted 14 years ago by Maximus1983
This will generate a random alpha numeric string 20 characters long.
1
3441
posted 14 years ago by _reydin_
I need this function all too often and figured I'd share it. Limit the_content() by word limit by using built in WordPress functions.
0
3248
posted 14 years ago by crypticsoft
Hash of the commit which you want to show a303aa90779efdd2f6b9d90693e2cbbbe4613c1d
0
3758
posted 14 years ago by satie83
A complete lightbox with minimal code and full functionality: close button, close on escape keypress, close on lightbox blur event.
1
1663
posted 14 years ago by mortu
Here is a quick example on how to generate your own portfolio with filtering based on a taxonomy (in this case 'Solutions').
0
2150
posted 14 years ago by crypticsoft
A little function to add custom styles to the tinymce editor in wordpress.
1
1918
posted 14 years ago by bitsculptor
Just a small function to sanitize the user's input of any xss and sqli. I saw a lot of ones that didn't include htmlentities or htmlspecialchars, and were still vulnerable to persistent/reflected xss.
1
1850
posted 14 years ago by TheNullByte
This Perl snippet shows how to separate quoted parts from a text in order to process quoted and unquoted parts separately. For example, you could expand variables or wildcards only in the unquoted part. Then the different processed parts are put to...
0
3884
posted 14 years ago by deepsoul