Browse Source

Merge branch 'adding_questions' of github.com:01-edu/public into adding_questions

pull/427/head
OGordoo 5 years ago
parent
commit
3134d19b8b
  1. 14
      scripts/docker.sh
  2. 3
      scripts/install_client.sh
  3. 1
      scripts/ubuntu_tweaks.sh
  4. 6
      subjects/ascii-art/ascii-art-output.en.md
  5. 8
      subjects/ascii-art/ascii-art.en.md

14
scripts/docker.sh

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Install Docker
script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)"
cd $script_dir
. set.sh
apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu disco stable"
apt-get update
apt-get -y install docker-ce docker-ce-cli containerd.io
adduser student docker

3
scripts/install_client.sh

@ -10,7 +10,7 @@ cd $script_dir
. set.sh
disk=$(lsblk -o tran,kname,hotplug,type,fstype -pr |
grep -e nvme -e sata -e sas -e ata |
grep -e nvme -e sata -e sas -e ata -e vda |
grep '0 disk' |
cut -d' ' -f2 |
sort |
@ -43,6 +43,7 @@ apt-get -yf install
. vscode.sh
. libreoffice.sh
. exam.sh
. docker.sh
# Install additional packages
pkgs="

1
scripts/ubuntu_tweaks.sh

@ -80,6 +80,7 @@ services="
apt-daily-upgrade.timer
apt-daily.timer
console-setup.service
e2scrub_reap.service
keyboard-setup.service
motd-news.timer
remote-fs.target

6
subjects/ascii-art/ascii-art-output.en.md

@ -2,7 +2,7 @@
### Objectives
- You must follow the same [instructions](https://public.01-edu.org/subjects/ascii-art/ascii-art.en) as in the first subject but writing the result into a file.
- You must follow the same [instructions](https://public.01-edu.org/subjects/ascii-art/ascii-art.en) as in the first subject **while** writing the result into a file.
- The file must be named by using the flag `--output=<fileName.txt>`, in which `--output` is the flag and `<fileName.txt>` is the file name.
@ -13,13 +13,13 @@ This project will help you learn about :
- Ways to receive data.
- Ways to output data.
- Manipulation of strings.
- Learning about the choice of outputs.
- Choices of outputs.
### Instructions
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://public.01-edu.org/subjects/good-practices.en).
- It is recommended that the code should present a **test file**.
- It is recommended that the code presents a **test file**.
### Usage

8
subjects/ascii-art/ascii-art.en.md

@ -2,10 +2,10 @@
### Objectives
Ascii-art consists on receiving a `string` has an argument and outputting the `string` in a graphic representation of ASCII.
Ascii-art consists on receiving a `string` as an argument and outputting the `string` in a graphic representation of ASCII.
- This project should handle numbers, letters, spaces, special characters and `\n`.
- Take a look on the ASCII manual.
- Take a look at the ASCII manual.
This project will help you learn about :
@ -20,14 +20,14 @@ This project will help you learn about :
- Your project must be written in **Go**.
- The code must respect the [**good practices**](https://public.01-edu.org/subjects/good-practices.en).
- It is recommended that the code should present a **test file**.
- It is recommended that the code present a **test file**.
- It will be given some [**banner**](https://github.com/01-edu/public/blob/master/subjects/ascii-art) files with a specific graphical template representation of ASCII. The files are formatted in a way that it is not necessary to change them.
### Banner Format
- Each character has an height of 8 lines.
- Characters are separate by a new line `\n`.
- Characters are separated by a new line `\n`.
- Here is an example of ' ', '!' and '"'(one dot represents one space) :
```console

Loading…
Cancel
Save