Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 529 530 531 532 533 ... 553
Add this inside your .irbrc file to call "show Model" in your console instead of "y Model.column_names"
1 1492 posted 19 years ago by vanne
Displays a image inside link_to instead of text.
2 1926 posted 19 years ago by ryanprel
7 1390 posted 19 years ago by frankyfish
0 1234 posted 19 years ago by drwitt
1 1249 posted 19 years ago by drwitt
1 1718 posted 19 years ago by rengber
1 1579 posted 19 years ago by andyh
Extend any float object to allow for decimal conversion
1 1472 posted 19 years ago by vanne
0 1592 posted 19 years ago by gndprx
Weird issue with Intellisense and the HitTestInfo class. Just type it in, it will compile.
1 2110 posted 19 years ago by rengber
Add this to your ~/.irbrc file and you will have inline logging in the console
1 1473 posted 19 years ago by vanne
Haven't had a chance to use this but it looks very promising.
14 2550 posted 19 years ago by aznprncritic
A low-tech but useful technique that uses only CSS. After placing the css in your stylesheet, insert this just below the body tag of your page: "". Whenever the images are referenced throughout your pages they will now be loaded from cache.
0 12188 posted 19 years ago by aznprncritic
A great script that will serve up stylesheets based on browser viewport size.
5 2289 posted 19 years ago by aznprncritic
Use this to sanitize a string and convert all wierd characters to your choice of delimiter
1 1526 posted 19 years ago by vanne
2 1321 posted 19 years ago by gnatware
2 1478 posted 19 years ago by gnatware
Define multiple associations on the same associated class. From the Rails Way blog.
1 1265 posted 19 years ago by gnatware
The very basic markup for the enhancement DOM script from a tutorial.
0 1214 posted 19 years ago by 1man
This is another script from the DOM scripting book. Not really relevant to anybody else. Useful for reminding myself about the DOM.
1 1446 posted 19 years ago by 1man
This PHP4 function will increment a given string by a given interval. This might be useful when a string has to be unique. An optional array with "forbidden" return values may be passed. Usage:
2 1856 posted 19 years ago by drwitt
2 1822 posted 19 years ago by assbach
1 1562 posted 19 years ago by spider
3 2945 posted 19 years ago by spider
1 ... 529 530 531 532 533 ... 553