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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<a href="data:application/octet-stream;base64,MIIFojCCBIqgAwIBAgIHAr79PJmryDANBgkqhkiG9w0BAQUFADBJMQswCQYDVQQGEwJERTEZMBcGA1UEChMQUEtJLTEtVmVyd2FsdHVuZzEMMAoGA1UECxMDRE9JMREwDwYDVQQDEwhET0kgQ0EgMjAeFw0xMTAyMjIwODQ1MzZaFw0xNDAyMjIyMzU5NTlaMIG7MQswCQYDVQQGEwJERTEMMAoGA1UEChMDTlJXMQ8wDQYDVQQLEwZJVC5OUlcxNDAyBgNVBAsTK0luZm9ybWF0aW9uIHVuZCBUZWNobmlrIE5vcmRyaGVpbi1XZXN0ZmFsZW4xFDASBgNVBAcMC0TDvHNzZWxkb3JmMRwwGgYJKoZIhvcNAQkBFg12cHNAaXQubnJ3LmRlMRcwFQYDVQQDEw5HUlA6IEVHVlAgVGVzdDEKMAgGA1UEBRMBMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJmrmGImbkA5fyOs3q3y3CW/5U1FU0cIVrUq1wDwuFaGuxdJvMD6E6iOLIeIQircgKWP9uiK/epG+Z/gM/SFa+DYzwr/WhKGpVzSkgbry3d9muNXvGNEpYBBaGfzkRh2ZFOEAptheHyef6MyT0bob/o8zzVxFxfX7wTKC53Jpa3tlmK9YOHrqkwrT30MwEpM7IU84a+aRGg7L1Bk3pTS9KAWJoNJ9s/WlNAHItXK8GkO9MAf6tWZUbTbUBeiOfxar+Ln8wJZKG8Hf2r1hvIWVggG1yGmxGMqGSP73aRRUCgKQuOICAMjNDwrYwV6vL5oO/z2NTpK3RVvcnOJn8bPgLsCAwEAAaOCAhowggIWMG8GA1UdIwRoMGaAFMtwcigCoqc |
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
{"1":{"score":25,"coords":[10766,13656],"type":"keep","name":{"de":"Aussichtspunkt","en":"Overlook","es":"Mirador","fr":"Belvédère"}}, | |
"2":{"score":25,"coords":[11497,15121],"type":"keep","name":{"de":"Tal","en":"Valley","es":"Valle","fr":"Vallée"}}, | |
"3":{"score":25,"coords":[9606,15132],"type":"keep","name":{"de":"Tiefland","en":"Lowlands","es":"Vega","fr":"Basses terres"}}, | |
"4":{"score":5,"coords":[10211,15437],"type":"camp","name":{"de":"Golanta-Lichtung","en":"Golanta Clearing","es":"Claro Golanta","fr":"Clairière de Golanta"}}, | |
"5":{"score":5,"coords":[11226,13754],"type":"camp","name":{"de":"Pangloss-Anhöhe","en":"Pangloss Rise","es":"Colina Pangloss","fr":"Montée de Pangloss"}}, | |
"6":{"score":5,"coords":[9850,13561],"type":"camp","name":{"de":"Speldan Kahlschlag","en":"Speldan Clearcut","es":"Claro Espeldia","fr":"Forêt rasée de Speldan"}}, | |
"7":{"score":5,"coords":[11030,15559],"type":"camp","name":{"de":"Danelon-Passage","en":"Danelon Passage","es":"Pasaje Danelon","fr":"Passage Danelon"}}, | |
"8":{"score |
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
const params = { | |
TableName: table, | |
Key: { | |
"year": year, | |
"title": title | |
}, | |
UpdateExpression: "set info.rating = :r, info.plot=:p, info.actors=:a", | |
ExpressionAttributeValues: { | |
":r": 5.5, | |
":p": "Everything happens all at once.", |
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
var query = '+TYPE:"cm:content" +PATH:"/app:company_home/st:sites/cm:xx/cm:documentLibrary/cm:AlphaCxx-Import/cm:Ohne_x0020_Axxx//*"'; | |
var page = { maxItems: 25000 }; | |
var nodes = search.query({query: query, page: page}); | |
logger.log(nodes.length); |
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
ant.xjc(schema: 'src/main/schema/PP/liberty-idsis-pp-v1.1.xsd', | |
destdir: generatedDir, extension: true, removeOldOutput: "yes") { | |
produces(dir: generatedDir) { | |
include(name: "liberty/disco/_2003_08/**/*.java") | |
include(name: "liberty/id_sis_pp/_2005_05/**/*.java") | |
include(name: "liberty/metadata/_2003_08/**/*.java") | |
include(name: "oasis/names/tc/saml/_1_0/assertion/**/*.java") | |
include(name: "org/w3/_2001/_04/xmlenc_/**/*.java") | |
} | |
} |
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
configurations.all { | |
resolutionStrategy { | |
eachDependency { | |
DependencyResolveDetails details -> | |
// Bouncy castle is unfriendly to the maven resolution process. Override the dependencies here. | |
if (details.requested.name.startsWith('bcprov-')) { | |
details.useTarget 'org.bouncycastle:bcprov-jdk15on:1.46' | |
} | |
if (details.requested.name.startsWith('bcmail-')) { | |
details.useTarget 'org.bouncycastle:bcmail-jdk15on:1.46' |
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 iClass = 'java.lang.Integer' as Class | |
assert iClass.newInstance(26) == 26 | |
def greeting = 'Hello' | |
def method = 'length' | |
assert greeting."$method"() == 5 |
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
/** | |
* Xsd 1.1 validation with a pimped xerces2 jar. | |
*/ | |
@Grapes( | |
@Grab(group = 'com.rackspace.apache', module = 'xerces2-xsd11', version = '2.11.2') | |
) | |
import javax.xml.transform.stream.StreamSource | |
import javax.xml.validation.SchemaFactory |
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
/** | |
* Simple schematron executer for a schema which is embedded into a Xml schema. | |
*/ | |
import javax.xml.transform.TransformerFactory | |
import javax.xml.transform.stream.StreamResult | |
import javax.xml.transform.stream.StreamSource | |
def schemaName = 'choice-schematron.xsd' | |
def instanceName = 'instance-schematron.xml' |
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
/** | |
* Simple Xml validation using the joox library. | |
*/ | |
@Grapes( | |
@Grab(group = 'org.jooq', module = 'joox', version = '1.4.0') | |
) | |
import static org.joox.JOOX.* | |
def document = $(new File('instance-xs11.xml')) |
OlderNewer