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 [[ "$no_color" != "1" ]]; then | |
c1=$(getColor 'white') # White | |
c2=$(getColor 'light grey') #Light Grey | |
c3=$(getColor 'brown') #yellow | |
c4=$(getColor 'yellow') #bold yellow | |
fi | |
if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; fi | |
startline="2" | |
logowidth="34" | |
fulloutput=( |
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 openjdk:8 | |
RUN apt-get update && apt-get install -y --no-install-recommends zip unzip | |
RUN curl -s get.sdkman.io | bash | |
# Define commonly used JAVA_HOME variable | |
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | |
RUN set -x \ |
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
[branch] | |
autosetuprebase = always | |
[mergetool "p4merge"] | |
cmd = /home/<username>/dir/to/p4v/bin/p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false | |
[merge] |
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
@Grab(group='joda-time', module='joda-time', version='2.3') | |
import org.joda.time.* | |
import org.joda.time.format.* | |
import java.math.* | |
LocalDate dob = new LocalDate("1950-06-15") | |
println dob | |
Period p1 = new Period(dob, new LocalDate()) | |
Period p2 = new Period(new YearMonth(dob), new YearMonth(new LocalDate())) |
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
#define PI 3.14159265 | |
#define TWO_PI 6.28318531 | |
int redPin = 5; | |
int greenPin = 3; | |
int bluePin = 6; | |
float hue = 0.0; | |
float saturation = 1.0; | |
float brightness = 1.0; |
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
"Ann Lenczewski (DFL)" <rep.ann.lenczewski@house.mn> | |
"Diane Loeffler (DFL)" <rep.diane.loeffler@house.mn> | |
"Greg Davids (R)" <rep.greg.davids@house.mn> | |
"Sarah Anderson (R)" <rep.sarah.anderson@house.mn> | |
"Tom Anzelc (DFL)" <rep.tom.anzelc@house.mn> | |
"Bob Barrett (R)" <rep.bob.barrett@house.mn> | |
"John Benson (DFL)" <rep.john.benson@house.mn> | |
"Lyndon Carlson Sr. (DFL)" <rep.lyndon.carlson@house.mn> | |
"Jim Davnie (DFL)" <rep.jim.davnie@house.mn> | |
"Steve Drazkowski (R)" <rep.steve.drazkowski@house.mn> |
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
#!/bin/bash | |
# Get active window attributes | |
ACTIVE_WINDOW=$(xdotool getactivewindow) | |
ACTIVE_GEOMETRY=$(xdotool getwindowgeometry $(xdotool getactivewindow)) | |
ACTIVE_WIDTH=$(echo $ACTIVE_GEOMETRY | cut -d ' ' -f8 | cut -d 'x' -f1) | |
ACTIVE_HEIGHT=$(echo $ACTIVE_GEOMETRY | cut -d ' ' -f8 | cut -d 'x' -f2) | |
# Get screen attributes | |
WIDTH=`xdotool getdisplaygeometry | cut -d' ' -f1` |
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
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.2') | |
import groovyx.net.http.* | |
import static groovyx.net.http.ContentType.* | |
import static groovyx.net.http.Method.* | |
def http = new HTTPBuilder( 'http://google.com' ) // Takes URL e.g. http://myservice:8087/ | |
http.request( POST, JSON) { req -> | |
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
debugLog4j = { | |
... | |
} | |
prodLog4j = { | |
... | |
} | |
development { | |
log4j = debugLog4j |
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
# | |
# refit.conf | |
# Configuration file for the rEFIt boot menu | |
# | |
# Timeout in seconds for the main menu screen. Setting the timeout to 0 | |
# disables automatic booting (i.e., no timeout). | |
# | |
timeout 5 |
NewerOlder