Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Glossy slide door black menu with blue hover styled which can be used on white backgrounds
1
2198
posted 17 years ago by settysantu
If you have a lot of javascript you need to load to make your page work, but don't want to load all of it before the user sees your page, you can use this handy script to backload it all.
4
2206
posted 17 years ago by garside
ã¿ãŸã„ãªã‚«ãƒ³ã‚¸ã§ã€Œä¿æŒã™ã‚‹modelåã®å°æ–‡å—+"_set"ã€ã§ã¶ã‚‰ã•ãŒã‚‹Entityã®ãƒªã‚¹ãƒˆã‚’å–å¾—ã§ãる。ã“ã®åç§°ã¯ReferencePropertyã®ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿ã®collection_nameå¼•æ•°ã§æŒ‡å®šã™ã‚‹äº‹ã‚‚ã§ãる。
0
1674
posted 17 years ago by tamuratetsuya
If you don't have Adobe Acrobat Pro to export a PDF to multiple images, you can use this ImageMagick code.
This command will produce the files 'result-0.jpg' , 'result-1.jpg', etc... for each PDF page.
5
2989
posted 17 years ago by webonomic
You can use this code in Bash or Windows CMD / Command prompt (although you'll have the change the comment character from # to :: for the windows prompt)
1
3133
posted 17 years ago by webonomic
A simple but powerful interface for allowing firebug access functions in the jQuery chain.
See the link above to check out the functions it accepts.
8
2464
posted 17 years ago by garside
In original Shea Enhancement, image had higher z-index than drop-down menu items. Changing z-index of entire H1 made text appear above image in some browsers. Could not change z-index of menu items.
Added an extra span tag and two classes to the m...
0
2008
posted 17 years ago by skylenewman
asp function similar to php one, to truncate long words inside a string
1
3098
posted 17 years ago by ginoplusio
Quick little snippet for changing the ordering of a field in a MYSQL database.
1
2260
posted 17 years ago by Zync
A simple line of code to apply to attributes that need to be toggled on and off.
0
1704
posted 17 years ago by cessnajumpin
See [Raise and Handle Events Generically](http://snipplr.com/view/15033/raise-and-handle-events-generically/) for a better way to use events (generically) and links to best practices in .NET events.
This example should be used as a Console program...
0
2074
posted 17 years ago by pckujawa
This takes a very readable date, such as "Fri, 4 Dec 2008 15:13:00 +0000", and outputs it as a relative date (such as "1 hour ago").
1
2178
posted 17 years ago by bjarkebech
First Remove all capital letters, then capitalise the first ones in each word.
1
2017
posted 17 years ago by Wardy
Use this command to prevent seeing ....68 more type stack trace message in Grails output.
0
1744
posted 17 years ago by kouphax