Welcome To Snipplr


Everyone's Recent Snippets



1 ... 503 504 505 506 507 ... 554
This is a simple class to encapsulate CURD functions. This class also includes some simple search methods.
1 1191 posted 17 years ago by ecavazos
Something I use quite often personally
5 1271 posted 17 years ago by B-Tal
This script will setup JBoss 4.2.2 to use null persistence (no DB, see http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQNullPersistence) when handling JMS messages.
1 885 posted 17 years ago by narkisr
A very simple way of getting bean instances from Spring context without casting returned object, the assumption is that the bean id's are matching the classes names.
0 1063 posted 17 years ago by narkisr
This function will return the height and width of an image that will change if the height/width is greater than the maximum supplied width and height.
2 938 posted 17 years ago by dmlanger
#modal would be the bodyID of your modal window. I use jqmodal so it strips out all the header tags, and takes your body ID and turns it into a div.
2 973 posted 17 years ago by kristin
Function to retrieve all image files in a given directory
0 908 posted 17 years ago by coggla
0 1262 posted 17 years ago by coggla
Macro to give an asl_log-like NSLog.
2 1363 posted 17 years ago by zingo
Noob stuff, but I always end up looking this up.
0 946 posted 17 years ago by rengber
list the exceptions where you don't want to replace in the rewrite rules before the one that matches the underscore, and finish them with [L], otherwise they'll get replaced too. [N] means rerun the whole replacing stuff once the line matched... c...
0 1758 posted 17 years ago by eszpee
5 985 posted 17 years ago by tome2k
2 884 posted 17 years ago by ajbatac
When Apache under OS X throws 'Forbidden' errors on files under the ~/Sites path, and the error log report 'Permission denied: access to /somefile/blah failed because search permissions are missing on a component of the path', check a missing Other E...
1 1145 posted 17 years ago by cczona
En la pagina hay mas info sobre otras funciones de validacion para php5
0 934 posted 17 years ago by lisandro
Found this quick little bit of code on the Google jQuery discussion group. It simply fades the background image of a link you have hovered over to a certain color, then fades it back to the original color.
4 1088 posted 17 years ago by 1man
A very dynamic and flexible bash prompt. Personally I find this to have everything needed. It shows exit status, shortens itself for long directories, and shows bash history for easy referencing. Hopefully it doesn't get messed up.
2 1013 posted 17 years ago by robh
This is to prevent a form from being inadvertently submitted.
0 1000 posted 17 years ago by ecavazos
There may be a simpler way to do this but this is the only way I could find to solve this problem. There is no Add method for basic arrays.
2 1182 posted 17 years ago by ecavazos
This is very useful if you need to populate a dropdown.
1 2659 posted 17 years ago by ecavazos
This can be useful for string preparations.
1 1091 posted 17 years ago by ecavazos
Suitable for backup scripts.
0 894 posted 17 years ago by eszpee
A simple but usefull smarty plugin to convert a unix timestamp to any date format. Usage: {$var|convertunix:"d-m-Y"}
2 1352 posted 17 years ago by FrankBr
3 1518 posted 17 years ago by DeadLy
Use this for background images. Put it in conditional comments in the head of your doc.
3 1130 posted 17 years ago by shellydennison
1 ... 503 504 505 506 507 ... 554