Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a very simple bookmarklet that will temporarily sort the *visible* messages in Gmail by subject. You'll have to run it again each time Gmail refreshes the list.
[Sort Gmail Messages](javascript:(function(){function%20f(r){var%20t=r...
0
1249
posted 16 years ago by wizard04
Pass in text and the maximum allowable length and this snippet will return as many full sentences from the text as it can within that length. If no sentences, it will just trim to the maximum length allowed.
1
1252
posted 16 years ago by DaveChild
The log4j.properties file in Tomcat is called log4j.xml file in JBoss.
0
790
posted 16 years ago by cimm
Avoid penalties for duplicate content. Also see
<a href="http://sitening.com/blog/htaccess-redirects-to-a-single-hostname/">How to Stay Safe from Duplicate Content by Using .htaccess and 301 Redirects</a>.
2
1022
posted 16 years ago by splotchy
Some other alter syntax examples at the URL, which beats the pants off the MySQL manual for some reason.
0
1051
posted 16 years ago by tclancy
Learn a new and seldom used method of clearing floats in CSS.
3
1134
posted 16 years ago by neal_grosskopf
Glossy slide door black menu with blue hover styled which can be used on white backgrounds
1
1045
posted 16 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
1155
posted 16 years ago by garside
ã¿ãŸã„ãªã‚«ãƒ³ã‚¸ã§ã€Œä¿æŒã™ã‚‹modelåã®å°æ–‡å—+"_set"ã€ã§ã¶ã‚‰ã•ãŒã‚‹Entityã®ãƒªã‚¹ãƒˆã‚’å–å¾—ã§ãる。ã“ã®åç§°ã¯ReferencePropertyã®ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿ã®collection_nameå¼•æ•°ã§æŒ‡å®šã™ã‚‹äº‹ã‚‚ã§ãる。
0
782
posted 16 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
1501
posted 16 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
1710
posted 16 years ago by webonomic