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
mvn -s settings.xml clean javadoc:jar source:jar gpg:sign -Dgpg.passphrase=your_passphrase deploy |
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
@Component | |
public class EventConsumer implements ApplicationListener<E>{ | |
@Override | |
public void onApplicationEvent(E event) { | |
try { | |
onEvent(event); | |
} catch (Exception e) { | |
... | |
} |
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
public enum ParserState { | |
INITIAL { | |
@Override | |
public ParserState nextState(ParseWindow window) { | |
String line = window.getFocusLine(); | |
if (matchesFromFilePattern(line)) { | |
logTransition(line, INITIAL, FROM_FILE); | |
return FROM_FILE; | |
} else { |
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.tmatesoft.svn.core.wc.* | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath group: 'org.tmatesoft.svnkit', name: 'svnkit', version: '1.7.11' | |
} | |
} |
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
try { | |
... | |
} catch (final AbstractException ab) { | |
// Schade, aber nicht tödlich | |
... | |
} |
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 de.adesso.jobs; | |
public class WirSuchenDich { | |
public Job findeJobFuer(Person du) { | |
if (du.bistLeidenschaftlicherProgrammierer()) { | |
Arbeitgeber adesso = Arbeitgeber | |
.get("Bester IT-Arbeitgeber Deutschlands"); | |
du.meldeDich("0231 / 7000 7100"); | |
return new Job(du, adesso); |
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
public class Calculator{ | |
public int absoluteSum(int a, int b){ | |
if(a < 0) a = -a; | |
if(b < 0) b = -b; | |
return a + b; | |
} | |
} |
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
# clone the remote repo into a (automatically created) folder named like the repo | |
git clone <FORK_URL> | |
# list all registered remote repositories | |
git remote -v | |
# add the original repo as remote and name it "upstream" | |
git remote add upstream <ORIGINAL_URL> | |
# fetch the current state from the upstream remote | |
git fetch upstream | |
# change to local master | |
git checkout master |
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
REM run this script with administrator privileges | |
REM install chocolatey itself | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
REM install packages | |
choco install -y googlechrome | |
choco install -y foxitreader | |
choco install -y sublimetext3 | |
choco install -y procexp |
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
@Retention(RetentionPolicy.RUNTIME) | |
@ExtendWith(AssumeConnectionCondition.class) | |
public @interface AssumeConnection { | |
String uri(); | |
} |
OlderNewer