Skip to content

Instantly share code, notes, and snippets.

View passionfruit18's full-sized avatar

James Dai passionfruit18

  • Everywhere and Nowhere All At Once
View GitHub Profile
@passionfruit18
passionfruit18 / bootstrapButtonGenerator.groovy
Created November 2, 2019 12:04
Bootstrap 3.3.6 Button Colour Scheme Generator (Groovy script)
// Generate Bootstrap Button Colour CSS ala Bootstrap 3.3.6
String buttonClassName = ".btn-view"
String normalBackgroundColour = "#4e8d9d"
String normalBorderColour = "#49849d"
String darkerBackgroundColour = "#3e799d"
String muchDarkerBorderColour = "#356F9D"
@passionfruit18
passionfruit18 / GrailsJoinClassGenerator.groovy
Last active September 18, 2019 14:47
Grails Join Class Generator– generates something with structure similar to the UserRole class generated by Spring Security Core Plugin 2.0.0
/**
* Generates something with structure similar to the UserRole class generated by Spring Security Core Plugin
* Except "removeAll" methods, which were overloaded, have been replaced by separately named methods for each field
* representing a Joined Class
*/
class GrailsJoinClassGenerator {
static String joinClassCode(JoinClassRep joinClassRep) {
String classInnerBlock =