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 pl.koziolekweb.guava.preconditions; | |
/** | |
* User: koziolek | |
*/ | |
public class NoPreconditionsCode { | |
public void method(String param1, Integer param2) { | |
if (param1 = null) | |
throw new NullPointerException("Param1 can not be null"); |
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"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<!-- Benchmark code goes into src/test/java --> | |
<dependencies> | |
<dependency> |
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.luxoft.tanks; | |
import java.util.Arrays; | |
/** | |
* Created by BKuczynski on 2017-06-21. | |
*/ | |
public class Tanks { | |
final String[][] battleField = { |
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
## https://gist.github.com/Koziolek/ | |
Duration: | |
1 hour 20 min | |
Objectives: | |
Learn how to rewrite Git history. Practice in parallel work with remote repository. Get acquainted with Git specific commands: cherry-pick, rebase, stash, tag. |
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
[ ? ] irqbalance [0/329] | |
[ - ] jenkins | |
[ + ] kerneloops | |
[ ? ] killprocs | |
[ ? ] kmod | |
[ ? ] lightdm | |
[ - ] lm-sensors | |
[ ? ] mysql | |
[ ? ] networking | |
[ + ] nmbd |
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
/** | |
* angular-drag-and-drop-lists v1.2.0 | |
* | |
* Copyright (c) 2014 Marcel Juenemann mail@marcel-juenemann.de | |
* Copyright (c) 2014-2015 Google Inc. | |
* https://github.com/marceljuenemann/angular-drag-and-drop-lists | |
* | |
* License: MIT | |
*/ | |
angular.module('dndLists', []) |
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.luxoft.oop; | |
public class HelloWorld { | |
public static void main(String[] args) { | |
MessagePrinter printer = new MessagePrinter(); | |
Message msg = new Message("I am message"); | |
Greetings grt = new Greetings("I am greetings"); | |
Message msgAsGrt = new Greetings("I am greetings"); |
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
Tasks | |
Task 1 | |
1. Create the classes defined by the diagram. For the sake of simplicity, on this step, bank has one ten-client-array where one client can have one account. | |
2. The Account class has the constructor that accepts the id and the starting balance value, and also has deposit(x) method adding the x value to the balance and withdraw(x), that decreases the balance by x, in case balance >= x. Implement the getBalance() method that returns the current account balance value. | |
3. Create the BankApplication class. BankApplication creates a Bank class object and adds several new clients to the bank. Each new client must have one account with some starting value. | |
4. Implement the BankApplication.modifyBank() method that changes balance values (using the deposit() and withdraw() methods) for some bank clients’ accounts. | |
5. Implement the BankApplication.printBalance() method that iterates through the bank clients and prints the balance value of their accounts. | |
Task 2 |
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 | |
# Allow multiple hooks. | |
# | |
# To use it copy this script with executable permission in ".git/hooks/hook-name" | |
# where hook-name is the name of the hook (see man githooks to know available hooks). | |
# Then place your scripts with executable permission in ".git/hooks/hook-name.d/". | |
hook_type=${BASH_SOURCE##*/} |
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
# How to perform a release with git & maven following the git flow conventions | |
# ---------------------------------------------------------------------------- | |
# Finding the next version: you can see the next version by looking at the | |
# version element in "pom.xml" and lopping off "-SNAPSHOT". To illustrate, | |
# if the pom's version read "0.0.2-SNAPSHOT", the following instructions would | |
# perform the release for version "0.0.2" and increment the development version | |
# of each project to "0.0.3-SNAPSHOT". | |
# branch from develop to a new release branch | |
git checkout develop |
OlderNewer