Welcome To Snipplr


Everyone's Recent Groovy Snippets



I used this because I had a legacy db table that all fields are char. the right spaces were a pita. The rightTrim function can be viewed in my profile
0 1315 posted 14 years ago by m3rol666
this example is based on http://groovy.codehaus.org/Grape
0 1709 posted 14 years ago by laurenceosx
Write File while replacing from anothther
0 1475 posted 14 years ago by elm
0 1437 posted 15 years ago by laurenceosx
0 1409 posted 15 years ago by laurenceosx
Make sure Jackson core and Mappers are on classpath. So who can explain why userImage has a size of 7. I assume the byte-Array is encoded. What format?
0 1451 posted 15 years ago by hansamann
0 1249 posted 15 years ago by ragnarokkrr
0 2171 posted 15 years ago by miceno
0 1402 posted 15 years ago by albertoprb
ReflectionToStringBuilder wraps a class and outputs a string describing its attributes, more or less similar to var_dump in PHP
1 5585 posted 15 years ago by miceno
Create a String centered and filled with a character
0 1487 posted 15 years ago by miceno
Select all projects where the current user is a member. A project has a set of members where each member is comprised of user and role.
0 1729 posted 15 years ago by guava
An example of how to configure the CliBuilder to read command line arguments in Groovy.
0 1316 posted 15 years ago by miceno
0 1532 posted 15 years ago by laurenceosx
0 1394 posted 15 years ago by laurenceosx
1 2059 posted 16 years ago by oznek
0 1194 posted 16 years ago by zxeem
This is excellent for testing (mocking a SOAP server for example), we use an in memory http server in order to answer client requests.
0 1923 posted 16 years ago by narkisr