Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I am currently still working on this, and will make changes.
1
1687
posted 17 years ago by jonniespratley
Here is a simple method for displaying footer copyright year. This way at the end of the year you are not updating footers for the first 3 weeks in January :)
0
1416
posted 17 years ago by jadedbat
Learn how to place a DIV in the exact middle of the screen using this JQuery horizontal & vertical align plugin.
6
1708
posted 17 years ago by neal_grosskopf
I use it when i've problems with permissions of user-uploaded files.
2
1602
posted 17 years ago by ping_ch
Converts a standard select box to a clickable image thumbnail list.
<code>
<select>
<option>/images/test1.jpg</option>
<option>/images/test2.jpg</option>
</select>
<script>
$('#image').imageSelect();...
1
1569
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
2036
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
1497
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
1552
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
2669
posted 17 years ago by jadedbat
Thanks to [James](
http://www.girsbrain.org/blog
) for this code.
0
1297
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
4339
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
1360
posted 17 years ago by cori
Learn how to display the total number of Feedburner subscribers next to your 'subscribe' icon on your web site.
2
1856
posted 17 years ago by neal_grosskopf
object.forEach
=========
*Requires JavaScript 1.8*
`void object.forEach(function callback(item, value)[, thisObject])`
0
1304
posted 17 years ago by Sephr