Welcome To Snipplr


Everyone's Recent Snippets



1 ... 433 434 435 436 437 ... 552
I use it when i've problems with permissions of user-uploaded files.
2 2048 posted 17 years ago by ping_ch
Converts a standard select box to a clickable image thumbnail list. <code> &lt;select&gt; &lt;option&gt;/images/test1.jpg&lt;/option&gt; &lt;option&gt;/images/test2.jpg&lt;/option&gt; &lt;/select&gt; &lt;script&gt; $('#image').imageSelect();...
1 1980 posted 17 years ago by ping_ch
1. Save under .gnome2/nautilus-scripts/ 2. Right click some video file 3. Select Scripts->toFlv Works with multiple files.
1 2507 posted 17 years ago by ping_ch
A small script that sets up a new VirtualHost with Apache and adds an entry for the site to your hosts file. You need to adjust the paths to your needs. Must be run as root.
0 1907 posted 17 years ago by ping_ch
This as it sits isn't an improvement on what happens by default. It's only useful combined with a compensating transaction or sad path in the catch block, or in allowing a loop to continue.
0 1941 posted 17 years ago by rengber
A simple to use framework for a contact form. This is missing some serious validation and such but is a good startin' point for any simple contact form. The input field named 'botty' is an input field we hide with css.. if data is sent to the ha...
7 3174 posted 17 years ago by jadedbat
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 1602 posted 17 years ago by zachharkey
Specifically, this code enables you to pass a string from C# into C++ managed code and then get a C++ pointer to the string's chars. [Marshal.StringToHGlobalAnsi Method](http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marsha...
0 4989 posted 17 years ago by pckujawa
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 1748 posted 17 years ago by cori
select cast(floor(cast(getdate() as float)) as datetime)
0 1899 posted 17 years ago by flurk118
0 1882 posted 17 years ago by benpjohnson
0 1654 posted 17 years ago by lister
Learn how to display the total number of Feedburner subscribers next to your 'subscribe' icon on your web site.
2 2258 posted 17 years ago by neal_grosskopf
object.forEach ========= *Requires JavaScript 1.8* `void object.forEach(function callback(item, value)[, thisObject])`
0 1642 posted 17 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 1674 posted 17 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 1805 posted 17 years ago by zachharkey
Simple Javascript that will get a feed and parse it using Ajax
2 2206 posted 17 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 1899 posted 17 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 2351 posted 17 years ago by chrisaiv
Simply create a new index.php and place this code within.
1 1692 posted 17 years ago by chrisaiv
1 1859 posted 17 years ago by iTony
Django template system highlighting is included from Vim 7.1. You can easily turn it on with setfiletype.
0 1568 posted 17 years ago by escalant3
1 ... 433 434 435 436 437 ... 552