Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/workflows/grade-assignment.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .hyf/package.json

This file was deleted.

166 changes: 0 additions & 166 deletions .hyf/task1.js

This file was deleted.

79 changes: 0 additions & 79 deletions .hyf/task2.js

This file was deleted.

5 changes: 0 additions & 5 deletions .hyf/test.sh

This file was deleted.

32 changes: 0 additions & 32 deletions .hyf/tester.js

This file was deleted.

12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
# Core program week 1 assignment
HackYourFuture core program week 1 assignment

## Submission Instructions
### Task 1
Complete the script `task-1/setup.sh` according to the assignment instructions.

### Task 2
Write your github username in the file `task-2/github-username.txt`.

Do not include the `@` symbol before your username.
Do not paste the URL of your github profile.
Empty file added family picture.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added resources
Empty file.
Empty file added settings.conf
Empty file.
Empty file added src
Empty file.
47 changes: 46 additions & 1 deletion task-1/setup.sh
Original file line number Diff line number Diff line change
@@ -1 +1,46 @@
# Write your code here
#!/bin/bash
echo "Creating project..."

mkdir project
cd project
git init
touch README.md
mkdir resources
touch settings.conf
mkdir src
cd resources
touch "family picture.jpg" icon.png logo.png
cd ..
cd src
touch database profile program.java
cd ..
git add .
git commit -m "initial commit"
echo "Setup project..."
echo "Welcome to my project" >> README.md

cd src
rm -r profile
cd ..
cd resources
rm -r "family picture.jpg"

git add .
git commit -m "deleted 2 files"
sleep 3

ls

echo "Setup javascript..."
cd ..
cd src

mv "program.java" "program.js"
echo "console.log('Javascript works!');" >> program.js
node program.js
cd ..

git add .
git commit -m "checked the script runs"
ls -a
echo "All done!"
1 change: 0 additions & 1 deletion task-2/github-username.txt

This file was deleted.

Loading