From fcceb89d28fd648092b456f290df1832da717c50 Mon Sep 17 00:00:00 2001 From: Uyi Obayagbona <65090942+uyi247@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:00:04 -0500 Subject: [PATCH 1/4] File Commit From RevPro --- commit-command.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 commit-command.sh diff --git a/commit-command.sh b/commit-command.sh new file mode 100644 index 0000000..b73f65f --- /dev/null +++ b/commit-command.sh @@ -0,0 +1,9 @@ +cat <.git/hooks/post-commit +git push +git log -1 --shortstat > history_log.txt +EOF +chmod +x .git/hooks/post-commit +cat <.git/hooks/pre-commit +chmod 600 ~/.ssh/id_rsa && chmod 644 ~/.ssh/id_rsa.pub && ssh-keyscan github.com >> ~/.ssh/known_hosts +EOF +chmod +x .git/hooks/pre-commit \ No newline at end of file From 2701a3ff3fe411a14dca25a0807d311834ef4e1d Mon Sep 17 00:00:00 2001 From: Uyi Obayagbona <65090942+uyi247@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:00:04 -0500 Subject: [PATCH 2/4] File Commit From RevPro --- .gitpod.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..3d0eed9 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +tasks: + - command: for i in {1..3}; do code --uninstall-extension vscjava.vscode-java-test; sleep 15; done + - command: for i in {1..6}; do chmod 600 ~/.ssh/id_rsa && chmod 644 ~/.ssh/id_rsa.pub && ssh-keyscan github.com >> ~/.ssh/known_hosts; sleep 20; done + - command: git remote set-url origin git@github.com:uyi247/uyi247-Start.git && sed "s/\r$//" commit-command.sh | bash +vscode: + extensions: + - redhat.java + - vscjava.vscode-java-debug + - revaturePro.revature-labs \ No newline at end of file From b14ae88421fa5c6fa2b2751ea8b48af48aa9bd14 Mon Sep 17 00:00:00 2001 From: Uyi Obayagbona Date: Wed, 8 Mar 2023 16:34:49 +0000 Subject: [PATCH 3/4] coding lab start --- src/main/java/Questions.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/Questions.java b/src/main/java/Questions.java index 140e095..0741fa4 100644 --- a/src/main/java/Questions.java +++ b/src/main/java/Questions.java @@ -3,13 +3,14 @@ * Note: The exercise expects you to have read the "Entities of Java" topic in the curriculum. */ public class Questions { + int question1(){ /* * Replace the 0 in the return statement with the answer you believe to be true for the question below * * How many variables are in the class "Vehicle"? - */ - return 0; + */ + return 3; } int question2(){ @@ -18,14 +19,14 @@ int question2(){ * * What line number represents the end of the "accelerate" method? */ - return 0; + return 14; } String question3(){ /* * What datatype is expected to be returned in the "honk" method? */ - return "replace this text with your answer"; + return "String"; } } From f3c37bf48217c8381f3d137923d6e3b2f6648ce8 Mon Sep 17 00:00:00 2001 From: Uyi Obayagbona Date: Thu, 9 Mar 2023 18:42:10 +0000 Subject: [PATCH 4/4] #coding lab start --- src/main/java/Questions.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/Questions.java b/src/main/java/Questions.java index 0741fa4..b5daee0 100644 --- a/src/main/java/Questions.java +++ b/src/main/java/Questions.java @@ -27,6 +27,7 @@ String question3(){ * What datatype is expected to be returned in the "honk" method? */ return "String"; + } }