Welcome To Snipplr


Everyone's Recent Snippets



1 ... 468 469 470 471 472 ... 552
0 2106 posted 18 years ago by stavelin
0 4220 posted 18 years ago by DaveChild
Generating MD5 HEX string from either URL or File instance in Groovy (more elegant than the Java version).
1 2828 posted 18 years ago by narkisr
You know how your bookmarks toolbar will show a little arrow when there are too many to fit? This code snippet will make the toolbar twice the size in height, and make the bookmarks wrap to the next line. In mac, you need to edit the file /Users/-...
1 1863 posted 18 years ago by Jacolyte
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 2402 posted 18 years ago by aristoworks
0 1783 posted 18 years ago by fredaudet
0 1561 posted 18 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 2203 posted 18 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 2373 posted 18 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 1773 posted 18 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 1767 posted 18 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 1773 posted 18 years ago by catchamonkey
0 2017 posted 18 years ago by xuanyan
Just some pseudo-code notes about using labels with `break` and `continue` statements.
0 2142 posted 18 years ago by wizard04
2 2303 posted 18 years ago by pmaciver
Some macros are from the "Python Scripting for Computational Science" : http://folk.uio.no/hpl/scripting/
0 3490 posted 18 years ago by tkf
Highlight an address and click the bookmarklet to open it in Google Maps
1 1916 posted 18 years ago by wizard04
0 1640 posted 18 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 2403 posted 18 years ago by wizard04
Insert into your phptemplate theme's template.php file to override the original View theme code.
0 2184 posted 18 years ago by shrop
1 2017 posted 18 years ago by pmaciver
1 1918 posted 18 years ago by pmaciver
Tip from rmartin, but I think I've seen it also on some Ubuntu wiki.
0 1725 posted 18 years ago by Juanje
1 ... 468 469 470 471 472 ... 552