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
adb shell settings put global window_animation_scale 0 | |
adb shell settings put global transition_animation_scale 0 | |
adb shell settings put global animator_duration_scale 0 |
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
disable-animations: | |
adb shell settings put global window_animation_scale 0 | |
adb shell settings put global transition_animation_scale 0 | |
adb shell settings put global animator_duration_scale 0 |
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
[Comando]: [Comando dependencia 1] ... [Comando-dependencia N] | |
(Tab ↹)[instrução 1] | |
. | |
. | |
. | |
(Tab ↹)[instrução n] |
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
disable-animations: | |
adb shell settings put global window_animation_scale 0 | |
adb shell settings put global transition_animation_scale 0 | |
adb shell settings put global animator_duration_scale 0 | |
clear-app-data: | |
adb shell pm clear com.phellipesilva.coolposts | |
run-instrumented-tests: clear-app-data disable-animations | |
./gradlew connectedAndroidTest |
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
.PHONY: app | |
app: | |
[Instrução] |
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 IslandMatrixCalculator { | |
public int calculateNumberOfIslands(int[][] matrix) { | |
int islands = 0; | |
if (matrix.length == 0) return islands; | |
for (int i=0; i<matrix.length; i++) { | |
for (int j=0; j<matrix[0].length; j++) { | |
if (matrix[i][j] == 1) { | |
removeIsland(matrix, i, j); |
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
[Command]: [Dependent Command 1] ... [Dependent Command N] | |
(Tab ↹)[Instruction 1] | |
. | |
. | |
. | |
(Tab ↹)[Instruction N] |
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
.PHONY: app | |
app: | |
[Instruction] |
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
@Test | |
fun `Update registered note count when registering a new note in empty repository`() { | |
val dummyNote = //Dublê de teste Dummy | |
//Passado apenas preencher o parâmetro, o conteúdo do dublê não é tão relevante | |
noteRepository.registerNote(dummyNote) | |
assertEquals(expected = 1, actual = noteRepository.getNoteCount()) | |
} |
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
val dummyPrice = 10.0 //Dummy literal | |
val dummyUniqueCustomerNumber = getUniqueNumber() //Dummy auto gerado |