Welcome To Snipplr


Everyone's Recent Snippets



1 ... 469 470 471 472 473 ... 554
This is a simple javascript snippet that will allow you to specify a particular class to a group of checkboxes and then select them all at once when you click the master checkbox. This came in very handy for a store inventory script when I needed to...
0 1458 posted 17 years ago by aristoworks
0 1009 posted 17 years ago by fredaudet
0 897 posted 17 years ago by rubinsta
I normally paste this into config/mongrel.rb, then add "require 'mongrel'" in my config/deploy.rb Once that's done, you'll be able to start, stop, and restart your mongrels like so: `cap deploy:mongrel:start/stop/restart`
3 1244 posted 17 years ago by jimmyebaker
Repeatable Fisher Yates Array Shuffle based on given random string. If no seed is provided the current second will be used (not to use as a pure random shuffle... based on microseconds)
0 1460 posted 17 years ago by digdan
En IE6 el min-height se reemplaza en realidad con height, porque por un error de Explorer tiene exactamente el mismo efecto. Este código hace que la caja tenga 700px de mínimo tanto para FF como para IE6.
0 1050 posted 17 years ago by demixo
This function will allow you to use '#ABCDEF' or '0xEEFF33' instead of the RGB values required for imagecolorallocate() by stripping away any non hex characters. It will also check and make sure that it's a valid 6 digit hex value after the stripping...
0 1072 posted 17 years ago by Jacolyte
The plugin's "shave_all" function was not properly cropping and resizing the thumbnails for me. The following needs to be changed in sfImageMagickAdapter.class.php
1 1010 posted 17 years ago by catchamonkey
0 1230 posted 17 years ago by xuanyan
0 1059 posted 17 years ago by dvdrtrgn
Just some pseudo-code notes about using labels with `break` and `continue` statements.
0 1184 posted 17 years ago by wizard04
2 1289 posted 17 years ago by pmaciver
Some macros are from the "Python Scripting for Computational Science" : http://folk.uio.no/hpl/scripting/
0 2440 posted 17 years ago by tkf
Highlight an address and click the bookmarklet to open it in Google Maps
1 1100 posted 17 years ago by wizard04
0 918 posted 17 years ago by kowalskg
In mouseout and mouseover event handlers, use this object to check if the mouse was leaving or entering a "landmark" element. See my [MouseEnter/Leave Handlers](http://snipplr.com/view/8913/mouseenterleave-handlers/) snipplet for a practical use....
3 1388 posted 17 years ago by wizard04
Insert into your phptemplate theme's template.php file to override the original View theme code.
0 1244 posted 17 years ago by shrop
1 1158 posted 17 years ago by pmaciver
1 1095 posted 17 years ago by pmaciver
Tip from rmartin, but I think I've seen it also on some Ubuntu wiki.
0 1004 posted 17 years ago by Juanje
Just for a quick copy and paste. A cool Lorum Ipsum generator is at [lipsum.com](http://www.lipsum.com/).
1 1140 posted 17 years ago by wizard04
This will print every number from 0000-9999. Each number is comma separated. The goal was not pretty / readable code, but to get all code on a single line.
0 834 posted 17 years ago by tgpo
Creates a drop shadow for a div. In IE I can't get `filter:alpha(opacity=__)` to work right, but it degrades gracefully without it so I left it out.
5 1425 posted 17 years ago by wizard04
1 ... 469 470 471 472 473 ... 554