- Books
- Discussion groups
- Growing Object-Oriented Software
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 com.app.email; | |
public interface EmailSender { | |
void send(String recipient, String message); | |
} |
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
# number of days beetween first and last commit by user | |
mapfile -t authors < <( git log --pretty=format:%an | sort | uniq ) | |
echo "Number of authors:" ${#authors[@]} | |
for author in "${authors[@]}" | |
do | |
lastCommitDate=`git log --pretty=format:%at --author="$author" | sed -n 1p` | |
firstCommitDate=`git log --pretty=format:%at --author="$author" | tail -1` | |
if [ ! -z "$lastCommitDate" ]; |
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
# avg number of commits per month in date range | |
input_start=2017-3-1 | |
input_end=2017-9-1 | |
startdate=$(date -I -d "$input_start") || exit -1 | |
enddate=$(date -I -d "$input_end") || exit -1 | |
d="$startdate" | |
sum=0 | |
count=0 |
- Go to https://jenkins.io
- Download war file
- Run using java from Terminal
java -jar jenkins.war
- Go to http://localhost:8080
- Customize with default plugins
- Cretate first Admin user
https://help.github.com/articles/set-up-git
git config --global user.name "my name"
?
git config --global push.default upstream
? ?
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
BankAccountA{ | |
void TransferMoneyTo(transactionToken,toAccountId,amount){ | |
if(this.HasPendingTransactions){ | |
throw new BusinessException("Transactions in process"); | |
} | |
if(availableBalance-amount<0){ | |
throw new BusinessException("..."); |
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 com.pragmatists; | |
import junitparams.JUnitParamsRunner; | |
import junitparams.Parameters; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import static org.assertj.core.api.Assertions.assertThat; | |
@RunWith(JUnitParamsRunner.class) |
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
(function () { | |
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'game', | |
{preload: preload, create: create, update: update, render: render} | |
); | |
function preload() { | |
game.load.spritesheet('dude', '../assets/dude.png', 32, 48); | |
game.load.spritesheet('chick', '../assets/chick.png', 16, 18); |
NewerOlder