Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
addEvent function. Can't remember the exact site i got it from. Works well for me.
1
1606
posted 19 years ago by 1man
This provides a nice split view resizing method with a minimum size restraint. You HAVE to specify MIN_LEFT_PANE_W for this to work.
2
3169
posted 19 years ago by iloveitaly
This allows you to use perl syntax highlighting in vi for test scripts that use the ".t" file extension
0
3233
posted 19 years ago by wolfie
Example off ALA, pleasing typography layout for the web. Based on the grid system.
4
2307
posted 19 years ago by 1man
I post,hopefully soon, one cross browser "add to bookmarks". This works ONLY for IE.
2
1720
posted 19 years ago by isaac
A form alter implementation to create variables to flag certain features per node type. E.g. Show foo on blogs only: example_blog == 1;
1
1502
posted 19 years ago by berkes
Put this in environment.rb to use in your whole app or the console
1
1871
posted 19 years ago by vanne
This allows you to search any INSTANCE or CLASS methods of any objects including rails models, which is helpful if you want to see the methods that you created yourself.
1
1700
posted 19 years ago by vanne
Copy values from the first row of a column down the entire column. This was used in a specific project, but the code could be helpful for other projects.
1
1667
posted 19 years ago by davaodude
Simple script to toggle (checked or not checked) all checkboxes on the page.
2
1908
posted 19 years ago by davaodude
For when you have to get rid of those annoying Focus Rectangles
0
1775
posted 19 years ago by ypmits
Me he basado en el combo que he encontrado en snippler por luman por eso empieza el Ãndice en 2
3
2479
posted 19 years ago by isaac
The above example uses PHP's heredoc syntax. With it, we can completely eliminate PHP tags from the insides of HTML tags.
1
2468
posted 19 years ago by juno
One notorious discrepancy between IE and Firefox (or other "good" browsers) is the way they access the class HTML attribute. While I've used more complicated solutions in the past, this simple solution doesn't require any browser detection or even a...
2
2356
posted 19 years ago by Todd
Shows you how to link 2 objects together via the object function. If a value isn't found in the object, it will look for it in the linked object.
0
1635
posted 19 years ago by 1man
Extend a custom object, and a pre-defined object(e.g. string) using .prototype available in JS.
1
1888
posted 19 years ago by 1man