This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ui-tabs .ui-tabs-hide { | |
position: absolute; | |
left: -10000px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* dateUtils.js | |
* | |
* A simple set of utilites for dealing with dates | |
* | |
*/ | |
function toISOFormat(date) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.reachlocal.product.gson | |
import com.google.gson.GsonBuilder | |
import grails.plugin.gson.converters.GSON | |
import org.codehaus.groovy.grails.commons.ApplicationHolder | |
class ExposedGSON extends GSON { | |
@Lazy | |
private GsonBuilder gsonBuilder = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' | |
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd'> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.greatconf</groupId> | |
<artifactId>example-api</artifactId> | |
<version>0.1</version> | |
<packaging>pom</packaging> | |
<name>example-api</name> | |
<build> | |
<sourceDirectory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{states:[ | |
{ | |
state: valid, | |
startDate: 2013-12-25T21:15Z, | |
endDate: null | |
}, | |
{ | |
state: pending, | |
startDate: 2013-12-25T21:15Z, | |
endDate: 2013-12-25T21:15Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c_cyan=`tput setaf 6` | |
c_red=`tput setaf 1` | |
c_green=`tput setaf 2` | |
c_sgr0=`tput sgr0` | |
parse_git_branch () | |
{ | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then | |
git_status="$(git status 2> /dev/null)" |
OlderNewer