Welcome To Snipplr


Everyone's Recent Snippets



1 ... 434 435 436 437 438 ... 553
I needed to have a cron job that did some MySQL work iterating through a long list of items based on the content of a table in MySQL. I wanted each item in the table to be iterated over roughly once every 5 minutes, but building up the in-memory lis...
0 1182 posted 16 years ago by cori
select cast(floor(cast(getdate() as float)) as datetime)
0 1372 posted 16 years ago by flurk118
0 1320 posted 16 years ago by benpjohnson
0 1138 posted 16 years ago by lister
Learn how to display the total number of Feedburner subscribers next to your 'subscribe' icon on your web site.
2 1656 posted 16 years ago by neal_grosskopf
object.forEach ========= *Requires JavaScript 1.8* `void object.forEach(function callback(item, value)[, thisObject])`
0 1166 posted 16 years ago by Sephr
Get Function Name ============ This will only return (a string) if the object passed to getFunctionName is a function or an "object" function from IE. The function does not rely on function.name if present as it can't always be trusted. Examp...
0 1157 posted 16 years ago by Sephr
This is a replacement for the default PHP settings in Drupal's .htaccess file. Increasing the memory_limit, max_post_size etc. prevents a lot of errors, especially when using image modules.
0 1311 posted 16 years ago by zachharkey
Simple Javascript that will get a feed and parse it using Ajax
2 1693 posted 16 years ago by chrisaiv
AJAX by default only lets you play within your own Domain.com but there are plenty of times where you want to use someone else's feed. Check out http://snipplr.com/view/12466/jquery-parse-rss-feed/ to understand the rest.
1 1400 posted 16 years ago by chrisaiv
Here's a simple example of how to parse RSS feeds using jQuery. You will need jFeed (http://www.hovinne.com/blog/index.php/2007/07/15/132-jfeed-jquery-rss-atom-feed-parser-plugin) and a bit of help from PHP (http://snipplr.com/view/12467/php-capture...
8 1663 posted 16 years ago by chrisaiv
Simply create a new index.php and place this code within.
1 1298 posted 16 years ago by chrisaiv
1 1319 posted 16 years ago by iTony
Django template system highlighting is included from Vim 7.1. You can easily turn it on with setfiletype.
0 1110 posted 16 years ago by escalant3
With the ever increasing use of alternate media types I feel there is a need to deliver JavaScript targeted to these types of devices. This would allow alternate and modified content, as well as a customized user experience through the use of modern...
2 1740 posted 16 years ago by localhorst
A quick search on the internet reveals all kinds of ways you can calculate with business days. I think is the most simple and efficient. In this example add day of week and weeks separately. The loop is never iterated more then 4 times regardless of...
3 3759 posted 16 years ago by chadj2
3 1718 posted 16 years ago by sveggiani
1 1074 posted 16 years ago by joeydi
0 1306 posted 16 years ago by selfmadepsyche
8 2444 posted 16 years ago by selfmadepsyche
0 1143 posted 16 years ago by antpaw
1 1336 posted 16 years ago by sveggiani
0 3610 posted 16 years ago by webonomic
18 10835 posted 16 years ago by sidisinsane
1 ... 434 435 436 437 438 ... 553