Starer code for a react/webpack project.
This file contains hidden or 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
public class Timer { | |
private long startTime = System.currentTimeMillis(); | |
private long lapStartTime = System.currentTimeMillis(); | |
private List<Long> laps = new ArrayList<>(LAPS_COUNT); | |
private long endTime = System.currentTimeMillis(); | |
public void start() { | |
startTime = System.currentTimeMillis(); | |
lapStartTime = startTime; | |
} |
This file contains hidden or 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 | |
mvn clean test | |
rc=$? | |
if [[ $rc != 0 ]] ; then | |
echo 'Failing Tests'; | |
exit $rc | |
fi | |
mvn clean deploy -DskipTests |
This file contains hidden or 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
[alias] | |
ci = commit | |
st = status | |
co = checkout | |
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = log --oneline --graph --color --all --decorate | |
sub = submodule | |
[user] | |
name = <NAME> |
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
* { margin:0; padding:0; } /* to remove the top and left whitespace */ | |
html, body { width:100%; height:100%; } /* just to be sure these are full screen*/ | |
canvas { display:block; } /* To remove the scrollbars */ | |
</style> | |
</head> | |
<body> | |
<canvas id="myCanvas"></canvas> |
This file contains hidden or 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
#Redirect http > https | |
RewriteCond %{HTTP:X-Forwarded-Proto} !^$ | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} |
This file contains hidden or 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
find . -follow -name '*.java' -not -path "*/jooq/*" | xargs wc -l |
This file contains hidden or 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 | |
java -classpath jooq-3.6.1.jar:jooq-meta-3.6.1.jar:jooq-codegen-3.6.1.jar:mysql-connector-java-5.1.31-bin.jar:. org.jooq.util.GenerationTool ubnt_vnla.xml | |
#<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
#<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.6.0.xsd"> | |
# <!-- Configure the database connection here --> | |
# <jdbc> | |
# <driver>com.mysql.jdbc.Driver</driver> | |
# <url>jdbc:mysql://localhost:3306/db_name</url> |
This file contains hidden or 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 | |
if [[ "$1" == "" ]] ; then | |
echo "First argument MUST be the jar to zip and deploy" | |
exit 1 | |
fi |
This file contains hidden or 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 | |
kill $(ps aux | grep community.yml | awk '{print $2}') | |