Welcome To Snipplr
Everyone's Recent Groovy Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
738
posted 13 years ago by m3rol666
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
768
posted 13 years ago by hansamann
Groovy
Groovy Swing data binding example that works on a freshly created object (online example does not)
0
1034
posted 13 years ago by laurenceosx
ReflectionToStringBuilder wraps a class and outputs a string describing its attributes, more or less similar to var_dump in PHP
1
1386
posted 13 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
964
posted 13 years ago by guava
An example of how to configure the CliBuilder to read command line arguments in Groovy.
0
658
posted 13 years ago by miceno
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
1066
posted 14 years ago by narkisr