Groovy designers turn roads into soundtracksBobbie Johnson
@Grab('com.google.guava:guava:r09') import com.google.common.base.* def split(string) { [on: { sep -> [trimming: { trimChar -> Splitter.on(sep).trimResults(CharMatcher.is(trimChar as char)).split(string).iterator().toList() }] }] } ...
importgroovy.lang.Binding;importgroovy.lang.Script;importorg.codehaus.groovy.runtime.BytecodeInterface8;importorg.codehaus.groovy.runtime.GStringImpl;importorg.codehaus.groovy.runtime.InvokerHelper;importorg.codehaus.groovy.runtime.ScriptBytecodeAdapter;importorg.codehaus.groovy.runtime.callsite.CallSite;pub...
With the public interest in Log4j, commons-logging and java.util.logging something like 100 : 10 : 0.5 (source: AdWords), not even Sun using the JDK for leverage can turn a mediocre also-ran product into a winner. This means that java.util.logging must go. Thankfully, there’s a SLF...
18 60 0 23 days ago Garden-Hue Turn hue lights on sunset to sunrise and cycle through colors 18 36 1 a day ago KuKuHarmony SmartApp allowing you to control each 'Device' in Logitech Harmony Hub using Harmony-API 18 16 6 5 days ago gradle-resolution-rules-plugin Gradle plugin for prov...
You can write lists and do things to it. But what we really want is to turn this data into something more universally accessible – that is, make it into valid JSON. Groovy includes simple classes for writing to JSON. All you have to do is importJsonBuilderand use on the list map you...
String getName() //Linux String getVersion() //8.1 Family getFamily() //SOLARIS (enum) boolean isLinux() boolean isWindows() boolean isMacOs() //also Solaris and Other boolean iSolaris() boolean isOther()With their help mentioned example can be simplified to very readable code precisely ...
Lovely! As per convention, when we passedresponsetoprintln(), it called the object'stoString()method, which in turn provided us with the original response. The response object has anumber of methods, which provide access to most of the other response details. For example, we could have used...
Turn off -fcf-protection for realmode targets - platform/x86: intel_pmc_core: Ignore GBE LTR on Tiger Lake platforms - scsi: target: pscsi: Clean up after failure in pscsi_map_sg() - selftests/vm: fix out-of-tree build - ia64: mca: allocate early mca with GFP_ATOMIC - ia64: ...
String firstName String lastName } So I wanted to create a simple right side wildcard search that would effectively be the same as this in SQL Server: where (firstName like '#searchTerm#%' or lastName like '#searchTerm#%') In Grails you have a wrapper around Hibernate called GORM, wh...