studioevoque


Member since 10/16/2010

21 snippets

2428 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

studioevoque's Recent Snippets



« Prev 1 Next »
A simple utility class that uses the H2 SQL Db to maintain a database connection. It also gives a convenience method to run SQL scripts. _Note:_The init.sql value is hardcoded, and should be replaced by a static variable if needed
0 766 posted 12 years ago by studioevoque
0 886 posted 12 years ago by studioevoque
you need jQuery already loaded for this to work
0 598 posted 12 years ago by studioevoque
Sometimes, you need to setup functionality before jQuery is loaded (e.g. because of a template). You can use this snippet to schedule the function after jQuery is loaded.
1 1094 posted 12 years ago by studioevoque
A simple way to style a link using a CSS sprite. On hover, the image is moved upwards by the image height to reveal the rollover image.
0 538 posted 12 years ago by studioevoque
Useful for when you want to move all mp3 files in sub directories into the current dir
0 502 posted 13 years ago by studioevoque
Useful for syncing only MP3 or PDF files which are nested in a deep directory tree
0 1023 posted 13 years ago by studioevoque
A simple way to get the enum indicated by its ordinal value.
0 826 posted 13 years ago by studioevoque
0 544 posted 13 years ago by studioevoque
0 545 posted 13 years ago by studioevoque
A "quick and dirty" way to delete a directory. For more cleaner implementation, see http://www.google.com/codesearch/p?hl=en#SS2by_AKaLs/src/org/apache/commons/io/FileUtils.java&q=cleanDirectory&l=972
0 525 posted 13 years ago by studioevoque
This is a modification of the Sun tutorial code that initializes the text editor to accept words that are not part of the auto-complete list. In the terms of the implementation, it is referred to as "not strict".
1 685 posted 13 years ago by studioevoque
An example to make myself remember how powerful Java enums are!
1 2164 posted 13 years ago by studioevoque
Don't forget the nifty event properties to detect double-click !
0 541 posted 13 years ago by studioevoque
A rough "it works" way to delete elements from an array given the array of indices to delete. A new array is created by copying over the remaining elements. Any suggestions on how to make this more efficient appreciated :)
0 618 posted 13 years ago by studioevoque
This is used in the build.xml file generated by a Netbeans project, to override the default clean-up behaviour that deletes the 'build' and 'dist' folders. In case these folders are to be maintained in SVN, the following ensures that only the content...
0 520 posted 13 years ago by studioevoque
« Prev 1 Next »