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 void printTree(Node root) { | |
| if (root.right != null) { | |
| printTree(root.right, true, ""); | |
| } | |
| System.out.println(root.data); | |
| if (root.left != null) { | |
| printTree(root.left, false, ""); | |
| } | |
| } |
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
| @Service | |
| public class UntestableService { | |
| private AnotherService myDependency; | |
| UntestableService(){ | |
| this.myDependency = SpringFactory.createMyDependency(); | |
| } | |
| } |
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
| @Service | |
| public class TestableService { | |
| private AnotherService myDependency; | |
| @Autowired | |
| TestableService(AnotherService anotherService){ | |
| this.myDependency = anotherService; | |
| } |
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 final static Constants { | |
| public final static String COMPLEX_QUERY = "SELECT * FROM A_VERY_COMPLEX_QUERY"; | |
| } |
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
| [ | |
| { | |
| "key": "ctrl+d", | |
| "command": "editor.action.cutLines", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+o", | |
| "command": "workbench.action.gotoSymbol" | |
| }, |
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] | |
| release-commits = "!f() { LAST_RELEASE_HASH=`git log --grep \"prepare for next development iteration\" -n 1 --format=format:\"%h\"`; git log --oneline $LAST_RELEASE_HASH..HEAD; }; f" |
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
| package ch.exm.generisk.notifications; | |
| import static org.assertj.core.api.AssertionsForClassTypes.assertThatExceptionOfType; | |
| import java.time.Duration; | |
| import java.util.Arrays; | |
| import java.util.Collections; | |
| import java.util.List; | |
| import org.junit.Before; | |
| import org.junit.Test; |
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
| sudo find / -xdev -type f -size +100M -exec ls -lah {} \; |
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
| gsub ("^0*", "", string); |
OlderNewer