Skip to content

Instantly share code, notes, and snippets.

/*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
grails.plugins.springsecurity.saml.keyManager.defaultKey = 'qa' //The self signed key generated
grails.plugins.springsecurity.saml.keyManager.storeFile = 'classpath:security/keystore.jks' //Change to where you have the keystore
grails.plugins.springsecurity.saml.keyManager.storePass = 'password' //Password for the keystore
grails.plugins.springsecurity.saml.keyManager.passwords =['qa':'password'] //Alias and password for each key
@beckje01
beckje01 / BuildConfig.groovy
Created October 15, 2012 19:16
Grails Release Plugin External Maven Config
def mavenConfigFile = new File("${basedir}/grails-app/conf/mavenInfo.groovy")
if (mavenConfigFile.exists()) {
def slurpedMavenInfo = new ConfigSlurper().parse(mavenConfigFile.toURL())
slurpedMavenInfo.grails.project.repos.each {k, v ->
println "Adding maven info for repo $k"
grails.project.repos."$k" = v
}
}
else {
println "No mavenInfo file found."
@beckje01
beckje01 / dateUtils.js
Created May 8, 2011 19:22
A simple set of functions for dealing outputting with ISO dates
/*
* dateUtils.js
*
* A simple set of utilites for dealing with dates
*
*/
function toISOFormat(date)
{
@beckje01
beckje01 / barcheck.js
Created April 18, 2011 19:33
Check for Address Bar in iOS
if(window.navigator.standalone)
{//This page is currently standalone
console.log("stand alone");
}
if(!("standalone" in window.navigator))
{//This Page is shown in a browser that can't
console.log("can't do standalone");
}
@beckje01
beckje01 / Off-left technique
Created April 18, 2011 19:22
Shows how to hide off to the left a jQuery UI tab
.ui-tabs .ui-tabs-hide {
position: absolute;
left: -10000px;
}