Skip to content

Instantly share code, notes, and snippets.

View bobbywarner's full-sized avatar

Bobby Warner bobbywarner

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bobbywarner on github.
  • I am bobbywarner (https://keybase.io/bobbywarner) on keybase.
  • I have a public key whose fingerprint is C73A C09B 1240 F931 C710 CDBC 4D8F 753E 6B3C 0088

To claim this, I am signing this object:

@bobbywarner
bobbywarner / gist:542df1eb6668c5651336
Last active August 29, 2015 14:11
Groovy SubMap
Map foo = [1: "one", 2: "two"]
Map bar = [1: "one"]
assert [1: "one"] == foo.subMap( bar.collect { it.key })
Map foo2 = [1: "one", 2: "two"]
Map bar2 = [1: "one", 2: "two", 3: "three"]
assert [1:"one", 2:"two"] == foo2.subMap( bar2.collect { it.key })
@bobbywarner
bobbywarner / gist:8100575
Created December 23, 2013 16:57
Gradle output
grails-core $ ./gradlew -Dtest.single=BinaryPluginSpec :grails-core:test --stacktrace
:buildSrc:clean
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes
:buildSrc:jar
:buildSrc:assemble
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
@bobbywarner
bobbywarner / grails-stripe-controller
Created December 29, 2011 20:12
Grails Stripe Example
<!doctype html>
<html>
<head>
<meta name="layout" content="main"/>
<r:require module="application"/>
</head>
<body>
<h3>Confirmation</h3>
<p>${msg}</p>
</body>