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
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<artifactSet> | |
<excludes> | |
<exclude>org.bouncycastle:*</exclude> |
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
from __future__ import (absolute_import, division) | |
__metaclass__ = type | |
from ansible.errors import AnsibleError | |
from ansible.plugins.lookup import LookupBase | |
from ansible.utils.listify import listify_lookup_plugin_terms | |
import xml.etree.ElementTree as etree | |
# Version for Ansible 2.0 | |
# forked from https://gist.github.com/benbramley/xmlfile.py |
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.infinum | |
import java.sql.Types | |
import org.hibernate.dialect.MySQL5Dialect | |
import org.hibernate.type.StandardBasicTypes | |
class InfinumMysqlDialect extends MySQL5Dialect { | |
InfinumMysqlDialect () { | |
super () |
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 binding = new Binding() | |
def shell = new GroovyShell(binding) | |
def script = '''println "hello world" ''' | |
shell.evaluate(script) |
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 vals = [50, 25, 5, 0, -5, -25, 50] | |
vals.each{ | |
println "\n\nVal is $it" | |
int i = 50 | |
i =- it | |
println "(50 =- $it) is equal to $i" | |
i = 50 |
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
Map vals = ['Zero':0, 'Negative decimal':-0.01, 'Negative decimal':-0.05, 'Negative whole number':-1, | |
'Negative decimal':-1.5, 'One':1, 'Positive decimal':0.01, 'Positive decimal':0.05, | |
'Positive decimal':1.5, 'Empty string':'', 'Empty list':[], 'Empty hash':[:], | |
'Lower character':'a', 'Upper character':'A', 'Null':null | |
] | |
vals.each{ k, v -> | |
println (v ? "$k ( $v ) is true" : "$k ( $v ) is false") | |
} |
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
function git { | |
for arg | |
do | |
if [[ $arg == -m* || $arg == -[^-]*m* ]] | |
then | |
annoy_me | |
return 1 | |
fi | |
done | |
command git "$@" |
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 a = [[id:"a"], [id:"b"], [id:"c"]] | |
def b = ["a", "b"] | |
a.retainAll(){ | |
println it | |
b.contains(it.id) | |
} | |
println a |
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.bowerstudios.myapp.dao; | |
import java.io.Writer; | |
import java.sql.Connection; | |
import java.sql.SQLException; | |
import oracle.jdbc.OracleConnection; | |
import oracle.sql.CLOB; | |
import org.jboss.resource.adapter.jdbc.WrappedConnection; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | deployerConfigContext.xml centralizes into one file some of the declarative | |
configuration that | all CAS deployers will need to modify. | | This file | |
declares some of the Spring-managed JavaBeans that make up a CAS deployment. | |
| The beans declared in this file are instantiated at context initialization | |
time by the Spring | ContextLoaderListener declared in web.xml. It finds | |
this file because this | file is among those declared in the context parameter | |
"contextConfigLocation". | | By far the most common change you will need | |
to make in this file is to change the last bean | declaration to replace | |
the default SimpleTestUsernamePasswordAuthenticationHandler with | one implementing |
NewerOlder