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:/cygwin64/bin/bash.exe | |
# Version = 1.10.1.462 | |
set -e | |
function join { local d=$1; shift; echo -n "$1"; shift; printf "%s" "${@/#/$d}"; } | |
# | |
# LLGD: this is to avoid confusion between C:\cygwin64\bin\cygpath.exe and C:\local\Git\cygpath.exe |
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
#!/usr/bin/env bash | |
# | |
# From: https://raw.githubusercontent.com/clojure/brew-install/1.9.0/src/main/resources/clojure | |
# | |
# Version = 1.10.3.814 | |
project_version=1.10.3.814 | |
# Check for cygwin |
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
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; | |
@SpringBootApplication | |
public class Main { | |
private static final String CONFIG_NAME = "myapp"; // FIXME - this will read configs from file myapp.properties; fix as required |
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
(println (string/join "\n" | |
(string/split (get (System/getProperties) | |
"java.class.path") | |
#";"))) |
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 util; | |
public class Pair<T extends Comparable<T>, U extends Comparable<U>> implements Comparable<Pair<T,U>> { | |
private T first; | |
private U second; | |
public Pair(T first, U second) { | |
if (first == null) throw new IllegalArgumentException("First argument must not be null"); | |
if (second == null) throw new IllegalArgumentException("Second argument must not be null"); | |
this.first = first; |
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
select * from v$version |
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> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.7</version> | |
<executions> | |
<execution> | |
<phase>prepare-package</phase> |
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 2006 Sun Microsystems, Inc. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* - Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* |
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
;; | |
;; Utility script to convert files between character encodings. | |
;; | |
;; I've used this to fix the character encoding in a messy project where files | |
;; were encoded with different encodings | |
;; | |
(require '[clojure.java.io :as io]) | |
(defn has-suffix [f suffixes] | |
(some #(.endsWith (.getName f) %) |
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"?> | |
<!-- ====================================================================== | |
Dependency download | |
Downloads dependencies from Maven repositories. | |
Maven-ant-tasks jar: | |
http://www.apache.org/dyn/closer.cgi/maven/ant-tasks/2.1.3/binaries/maven-ant-tasks-2.1.3.jar | |
Tasks documentation: |
NewerOlder