Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Excel macro to copy values from formated cells. For example:
If you have a sheet that has huge numbers in millions for example 1,312,323 and you apply a format to the cell such that only 1.3 is displayed, if you want to copy 1.3 and put it in a da...
1
1120
posted 14 years ago by abhisood
IE will redirect the entire page, and disable any ajax calls within an iframe application. This fixes those issues.
0
861
posted 14 years ago by theriddlebrothers
If a MySQL DB for WordPress is encoded as latin1, these steps will prevent utf8 encoding issues.
0
1029
posted 14 years ago by theriddlebrothers
If you run a query to delete old posts manually from MySQL in a WordPress database, the old tags will remain and appear in your tag cloud/listing. This allows you to identify those unused tags, and then delete them with an additional query.
0
808
posted 14 years ago by theriddlebrothers
Add an Apache virtual host via command line. Run as ./create mysite.domain.com
0
773
posted 14 years ago by theriddlebrothers
Cache control when pulling in scripts, redefined "getScript" function
0
1102
posted 14 years ago by lamebollock
Encode mailto links and (plain) email addresses on your site and hide them from spambots. Easy to use, plugin works directly when activated.
Features
* Protect all emails and mailto links
* Check posts, widgets, comments and RSS feeds
* Encode...
0
1274
posted 14 years ago by freelancephp
View class that contains features like:
- get vars inside the view with:
1) $var1
2) $this->var1
3) or $this->get( 'var1', 'defaultValue' )
- factory method for direct chaining:
Lim_View::factory( 'test.php' )->set( 'var1', 'value1' )->...
0
930
posted 14 years ago by freelancephp
Simple ajax object for creating ajax calls.
Why use SimpleAjax?
- Very small, only 2kb minified
- Make a asynchrone or synchrone ajax call ( AJAX / SJAX )
- Use quick methods get() and post() for GET and POST calls
- Use load() method for...
0
841
posted 14 years ago by freelancephp
This function empties the folder recursively. Two parameters are passed in the function, First one is the directory to be emptied and second one is the flag to determine whether to delete the given folder. If set 'true', given folder is also removed...
0
1147
posted 14 years ago by nilambar