Skip to content

Instantly share code, notes, and snippets.

View shemnon's full-sized avatar

Danno Ferrin shemnon

View GitHub Profile
@shemnon
shemnon / gist:856936
Created March 6, 2011 01:44
Add the idea plugin to every single build script
# add to ~/.gradle/initscript.gradle
addListener(new ArtifactoryGradleSettings())
class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
def void projectsLoaded(Gradle gradle) {
Project root = gradle.getRootProject()
root.allprojects {
apply plugin: 'idea'
}
Take my love, post no plan
Take me where I cannot stand
I don't care, the JDK is free
can't take the A P I from me
Make my gradients fade to black
Tell them it ain't comin' back
Burn some bridges to boil the sea
can't take the A P I from me
There's no place I can be
Since I found Java X dot Swing
@shemnon
shemnon / BoundSpinners.groovy
Created July 24, 2009 15:56
with GROOVY-3642 applied
import groovy.swing.SwingBuilder
import groovy.beans.Bindable
@Bindable class Model {
int intField
}
sb = new SwingBuilder()
model = new Model()
// in a griffon view
// with the hypothetical TridentBuilder adding the animate node
frame( title: "Trident+Groovy", size: [400,200],
locationRelativeTo: null, visible: true ) {
flowLayout()
button = button("Sample",
foreground: animate([Color.BLUE, Color.RED], duration:2500, id:'tl'),
mouseEntered: {tl.play()},
mouseExited: {tl.playReverse()})