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
<script> | |
$(document).ready(function(){ | |
// Updating Profile | |
$('#editProfile').click(function(){ | |
// show the update button div | |
$('#updateProfileDiv').show(); | |
// hide the edit button div | |
$('#editProfileDiv').hide(); | |
}); |
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
// JavaScript/JQuery | |
<script> | |
$(document).ready(function(){ | |
<!-- Cancel Process --> | |
$('.showCancelProcessDialog').click(function(){ | |
selectedProcessId = $(this).attr('id'); | |
$( "#cancelProcessDialog" ).dialog({ width: 350 }); |
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
List<Account> getListOfCustomersForSearchCustomer(String firstName, String lastName, String phoneNumber, String accountNumber) | |
{ | |
return Account.createCriteria().list { | |
or { | |
eq("accountNumber", accountNumber) | |
user { | |
or { |
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
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS setupLogging $$ | |
CREATE PROCEDURE setupLogging() | |
BEGIN | |
CREATE TABLE IF NOT EXISTS sp_logger(ts timestamp DEFAULT current_timestamp, thingID bigint, msg varchar(512)) ENGINE = MyISAM; | |
END $$ | |
CALL setupLogging() $$ | |
DROP PROCEDURE IF EXISTS setupTmpLog $$ |
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 Mail Plugin Configurations | |
*/ | |
grails { | |
mail { | |
host = "smtp.gmail.com" | |
port = 465 | |
username = "email@gmail.com" | |
password = "password123" | |
props = ["mail.smtp.auth":"true", |
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
@GrabConfig(systemClassLoader=true) | |
@Grab('mysql:mysql-connector-java:5.1.25') | |
@Grab('log4j:log4j:1.2.17') | |
import groovy.sql.Sql | |
import groovy.sql.GroovyRowResult | |
import groovy.time.TimeCategory | |
def start = new 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
@GrabConfig(systemClassLoader=true) | |
@Grab('mysql:mysql-connector-java:5.1.25') | |
@Grab('log4j:log4j:1.2.17') | |
@Grab('com.github.davidmoten:rxjava-jdbc:0.7') | |
import groovy.sql.Sql | |
import groovy.sql.GroovyRowResult | |
import groovy.time.TimeCategory | |
import com.github.davidmoten.rx.jdbc.Database |
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
@GrabConfig(systemClassLoader=true) | |
@Grab('mysql:mysql-connector-java:5.1.25') | |
@Grab('log4j:log4j:1.2.17') | |
import groovy.sql.Sql | |
import groovy.sql.GroovyRowResult | |
import groovy.time.TimeCategory | |
def start = new 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
dataSource { | |
pooled = true | |
jmxExport = true | |
driverClassName = "com.mysql.jdbc.Driver" | |
dialect = "org.hibernate.dialect.MySQL5InnoDBDialect" | |
} | |
hibernate { | |
cache.use_second_level_cache = true | |
cache.use_query_cache = false | |
// cache.region.factory_class = 'org.hibernate.cache.SingletonEhCacheRegionFactory' // Hibernate 3 |
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
git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
cut -d"/" -f2- | | |
xargs git push origin --delete | |
#Source: https://gist.github.com/schacon/942899 |
OlderNewer