Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use this to display a file properly if you are reading it from another location and wish to direct it to the user's browser
0
1651
posted 18 years ago by wolfie
This is just a collection of shortened SVN commands (may take a split-second of time less than normal)
0
1354
posted 18 years ago by mountainash
Add this inside your .irbrc file to call "show Model" in your console instead of "y Model.column_names"
1
1350
posted 18 years ago by vanne
Weird issue with Intellisense and the HitTestInfo class. Just type it in, it will compile.
1
1950
posted 18 years ago by rengber
Add this to your ~/.irbrc file and you will have inline logging in the console
1
1333
posted 18 years ago by vanne
Haven't had a chance to use this but it looks very promising.
14
2327
posted 18 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
11735
posted 18 years ago by aznprncritic
A great script that will serve up stylesheets based on browser viewport size.
5
2121
posted 18 years ago by aznprncritic
Use this to sanitize a string and convert all wierd characters to your choice of delimiter
1
1396
posted 18 years ago by vanne
Define multiple associations on the same associated class. From the Rails Way blog.
1
1164
posted 18 years ago by gnatware
The very basic markup for the enhancement DOM script from a tutorial.
0
1113
posted 18 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
1352
posted 18 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
1703
posted 18 years ago by drwitt