Welcome To Snipplr


Everyone's Recent Snippets



1 ... 526 527 528 529 530 ... 553
De aa-mm-dd a dd-mm-aa y al revé
3 1568 posted 18 years ago by nicolaspar
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 1022 posted 18 years ago by berkes
Put this in environment.rb to use in your whole app or the console
1 1287 posted 18 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 1169 posted 18 years ago by vanne
0 3190 posted 18 years ago by drewr
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 1147 posted 18 years ago by davaodude
Simple script to toggle (checked or not checked) all checkboxes on the page.
2 1376 posted 18 years ago by davaodude
0 1341 posted 18 years ago by benpjohnson
0 2002 posted 18 years ago by corydeppen
12 1658 posted 18 years ago by soxiam
For when you have to get rid of those annoying Focus Rectangles
0 1249 posted 18 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 1912 posted 18 years ago by isaac
4 1815 posted 18 years ago by dmarten
The above example uses PHP's heredoc syntax. With it, we can completely eliminate PHP tags from the insides of HTML tags.
1 2000 posted 18 years ago by juno
2 1307 posted 18 years ago by gtcaz
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 1761 posted 18 years ago by Todd
1 1196 posted 18 years ago by gtcaz
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 1153 posted 18 years ago by 1man
Extend a custom object, and a pre-defined object(e.g. string) using .prototype available in JS.
1 1357 posted 18 years ago by 1man
3 2336 posted 18 years ago by bartbons
Requires the twitter bundle. This is an early attempt at updating this. Pretty crude at the moment, but it works.
2 1463 posted 18 years ago by gtcaz
2 1305 posted 18 years ago by chrysanth
2 1251 posted 18 years ago by gtcaz
1 1614 posted 18 years ago by chrysanth
Adapted from http://journal.mychores.co.uk/articles/2007/01/21/updating-twitter-from-ruby-rails
2 1441 posted 18 years ago by gtcaz
1 ... 526 527 528 529 530 ... 553