Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Creates a MySQL table with all 50 states + Washington D.C. in alphabetical order.
1
856
posted 16 years ago by simplistik
For user-friendly animations on hover event.
Prevents repeating animations when hovering object many many times.
Example needs "jquery.color" plugin for color animations. But you can use any animations you want.
0
872
posted 16 years ago by DesTincT
Sniff and disable Firebug. Not sure why you'd need it though. Firebug is just great.
4
986
posted 16 years ago by zerolab
This example shows how to clone an object from an existing one by using MOP in Groovy, first we find all the writable properties of the cloned object class, secondly we traverse them and on each iteration we copy the value from the current object i...
2
1631
posted 16 years ago by narkisr
Tracy from FlexCoders advises against using lastResult. This property is intended for use in binding expressions, and you cannot depend on its value when you access it in AS code (though it usually works).
Note that if you ever decide to use bi...
0
763
posted 16 years ago by nextstep
Nothing amazing here, just an efficient way to get the first row.
Be sure to set your ORDER BY clause properly.
0
1362
posted 16 years ago by stews
I often need to know if a record exists in a table. This method is probably the most efficient. Too many people don't use the exceptions that Oracle provides, which is a shame.
I think I got it from Tom Kyte's site? Or Steven Feuerstein?
0
1237
posted 16 years ago by stews
This compares selected columns between 2 tables that you think might have differences. It lists the rows and values that are different between the two sources
You can add WHERE clauses as appropriate. You could also use this to compare the resul...
0
1377
posted 16 years ago by stews
Basic web.xml setup for using Spring MVC, Sitemesh, and Hibernate (using hibernate filter for lazy loading)
2
1176
posted 16 years ago by jcblitz
Used for converting, compiling, and reversing tiff files from the Book Center's digital library.
0
734
posted 16 years ago by rubinsta
Pre 1.6 git has some annoying whitespace checking in it's pre-commit hook. Rather than turn it off I decided to have a go at an automated method to fix the issue.
Running the first line lists the files that have problems. The second just adds a se...
0
1638
posted 16 years ago by benpjohnson