Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in public #1527

Merged
merged 4 commits into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from 3 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
10 changes: 5 additions & 5 deletions subjects/ascii-art/color/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

You must follow the same [instructions](../README.md) as in the first subject but this time with colors.

The output should manipulate colors using the **flag** `--color=<color>`, in which `--color` is the flag and `<color>` is the color desired by the user. These colors can be achieved using different notations (color code systems, like `RGB`, `hsl`, `ANSI`...), it is up to you to choose which one you want to use.
The output should manipulate colors using the **flag** `--color=<color> <letters to be colored>`, in which `--color` is the flag and `<color>` is the color desired by the user and `<letters to be colored>` is the letter or letters that you can chose to be colored. These colors can be achieved using different notations (color code systems, like `RGB`, `hsl`, `ANSI`...), it is up to you to choose which one you want to use.

- You should be able to choose between coloring a single letter or a set of letters (use your imagination for this one).
- You should be able to choose between coloring a single letter or a set of letters.
- If the letter is not specified, the whole `string` should be colored.
- The flag must have exactly the same format as above, any other formats must return the following usage message:

```console
Usage: go run . [STRING] [OPTION]
Usage: go run . [OPTION] [STRING]

EX: go run . something --color=<color>
EX: go run . --color=<color> <letters to be colored> "something"
```

If there are other `ascii-art` optional projects implemented, the program should accept other correctly formatted `[OPTION]` and/or `[BANNER]`.
If there are other `ascii-art` optional projects implemented, the program should accept other correctly formatted `[OPTION]` and/or `[BANNER]`.
Additionally, the program must still be able to run with a single `[STRING]` argument.

### Instructions
Expand Down
16 changes: 8 additions & 8 deletions subjects/ascii-art/color/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@

###### Has the requirement for the allowed packages been respected? (Reminder for this project: only [standard packages](https://golang.org/pkg/))

##### Try passing as arguments `"banana" --color red`.
##### Try passing as arguments `--color red "banana" `.

```
Usage: go run . [STRING] [OPTION]
Usage: go run . [OPTION] [STRING]

EX: go run . something --color=<color>
EX: go run . --color=<color> <letters to be colored> "something"
```

###### Does it display the same result as above?

##### Try passing as arguments `"hello world" --color=red`.
##### Try passing as arguments `--color=red "hello world"`.

###### Does it display the expected result?

##### Try passing as arguments `"1 + 1 = 2" --color=green`.
##### Try passing as arguments `--color=green "1 + 1 = 2"`.

###### Does it display the expected result?

##### Try passing as arguments `"(%&) ??" --color=yellow`.
##### Try passing as arguments `--color=yellow "(%&) ??"`.

###### Does it display the expected result?

Expand All @@ -36,11 +36,11 @@ EX: go run . something --color=<color>

###### Does it display the expected result (the corresponding set of letters with that color)?

##### Try passing as arguments `"HeY GuYs" --color=orange`, in order to color `GuYs`.
##### Try passing as arguments `--color=orange "HeY GuYs"`, in order to color `GuYs`.

###### Does it display the expected result?

##### Try passing as arguments `"RGB()" --color=blue`, in order to color just the B.
##### Try passing as arguments `--color=blue "RGB()"`, in order to color just the `B`.

###### Does it display the expected result?

Expand Down
3 changes: 1 addition & 2 deletions subjects/ascii-art/fs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ $ go run . "hello" standard | cat -e
|_| |_| \___| |_| |_| \___/ $
$
$

$ go run . "Hello There!" shadow | cat -e
$
_| _| _| _| _|_|_|_|_| _| _| $
Expand All @@ -43,8 +44,6 @@ _| _| _|_|_| _| _| _|_| _| _| _| _|_|_| _| _
$
$



$ go run . "Hello There!" thinkertoy | cat -e
$
o o o o o-O-o o o $
Expand Down
12 changes: 6 additions & 6 deletions subjects/ascii-art/justify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ To change the alignment of the output it must be possible to use a **flag** `--a
- The flag must have exactly the same format as above, any other formats must return the following usage message:

```console
Usage: go run . [STRING] [BANNER] [OPTION]
Usage: go run . [OPTION] [STRING] [BANNER]

Example: go run . something standard --align=right
Example: go run . --align=right something standard
```

If there are other `ascii-art` optional projects implemented, the program should accept other correctly formatted `[OPTION]` and/or `[BANNER]`.
Expand All @@ -41,7 +41,7 @@ Additionally, the program must still be able to run with a single `[STRING]` arg
Assume the bars in the display below are the terminal borders:

```console
|$ go run . "hello" standard --align=center |
|$ go run . --align=center "hello" standard |
| _ _ _ |
| | | | | | | |
| | |__ ___ | | | | ___ |
Expand All @@ -50,7 +50,7 @@ Assume the bars in the display below are the terminal borders:
| |_| |_| \___| |_| |_| \___/ |
| |
| |
|$ go run . "Hello There" standard --align=left |
|$ go run . --align=left "Hello There" standard |
| _ _ _ _ _______ _ |
|| | | | | | | | |__ __| | | |
|| |__| | ___ | | | | ___ | | | |__ ___ _ __ ___ |
Expand All @@ -59,7 +59,7 @@ Assume the bars in the display below are the terminal borders:
||_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| |
| |
| |
|$ go run . "hello" shadow --align=right |
|$ go run . --align=right "hello" shadow |
| |
| _| _| _| |
| _|_|_| _|_| _| _| _|_| |
Expand All @@ -68,7 +68,7 @@ Assume the bars in the display below are the terminal borders:
| _| _| _|_|_| _| _| _|_| |
| |
| |
|$ go run . "how are you" shadow --align=justify |
|$ go run . --align=justify "how are you" shadow |
| |
|_| |
|_|_|_| _|_| _| _| _| _|_|_| _| _|_| _|_| _| _| _|_| _| _| |
Expand Down
30 changes: 15 additions & 15 deletions subjects/ascii-art/justify/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,61 @@

###### Has the requirement for the allowed packages been respected? (Reminder for this project: only [standard packages](https://golang.org/pkg/))

##### Try passing as arguments `something standard --align right`
##### Try passing as arguments `--align right something standard`

```
Usage: go run . [STRING] [BANNER] [OPTION]
Usage: go run . [OPTION] [STRING] [BANNER]

Example : go run . something standard --align=right
Example: go run . --align=right something standard
```

###### Does it display the same result as above?

##### Try passing as arguments `left standard --align=right`
##### Try passing as arguments `--align=right left standard`

###### Does it display the correct result at the right side?

##### Try passing as arguments `right standard --align=left`
##### Try passing as arguments `--align=left right standard `

###### Does it display the correct result at the left side?

##### Try passing as arguments `hello shadow --align=center`
##### Try passing as arguments `--align=center hello shadow`

###### Does it display the correct result at the center?

##### Try passing as arguments `"1 Two 4" shadow --align=justify`
##### Try passing as arguments `"--align=justify 1 Two 4" shadow`

###### Does it display the correct result justified?

##### Try passing as arguments `23/32 standard --align=right`
##### Try passing as arguments `--align=right 23/32 standard`

###### Does it display the correct result at the right side?

##### Try passing as arguments `ABCabc123 thinkertoy --align=right`
##### Try passing as arguments `--align=right ABCabc123 thinkertoy`

###### Does it display the correct result at the right side?

##### Try passing as arguments `#$%&\" thinkertoy --align=center`
##### Try passing as arguments `--align=center #$%&\" thinkertoy`

###### Does it display the correct result at the center?

##### Try passing as arguments `"23Hello World\!" standard --align=left`
##### Try passing as arguments `--align=left "23Hello World\!" standard `

###### Does it display the correct result at the left side?

##### Try passing as arguments `"HELLO there HOW are YOU?\!" thinkertoy --align=justify`
##### Try passing as arguments `--align=justify "HELLO there HOW are YOU?\!" thinkertoy`

###### Does it display the correct result justified?

##### Try passing as arguments `"a -> A b -> B c -> C" shadow --align=right`
##### Try passing as arguments `--align=right "a -> A b -> B c -> C" shadow `

###### Does it display the correct result at the right side?

##### Try reducing the terminal window and run `abcd shadow --align=right`
##### Try reducing the terminal window and run `--align=right abcd shadow `

###### Does the representation adapt to the terminal size displaying the right result in the right side?

##### Try reducing the terminal window and run `ola standard --align=center`
##### Try reducing the terminal window and run `--align=center ola standard `

###### Does the representation adapt to the terminal size displaying the right result in the center?

Expand Down
8 changes: 4 additions & 4 deletions subjects/ascii-art/output/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ The file must be named by using the flag `--output=<fileName.txt>`, in which `--
- The flag must have exactly the same format as above, any other formats must return the following usage message:

```console
Usage: go run . [STRING] [BANNER] [OPTION]
Usage: go run . [OPTION] [STRING] [BANNER]

EX: go run . something standard --output=<fileName.txt>
EX: go run . --output=<fileName.txt> something standard
```

If there are other `ascii-art` optional projects implemented, the program should accept other correctly formatted `[OPTION]` and/or `[BANNER]`.
Expand All @@ -26,7 +26,7 @@ Additionally, the program must still be able to run with a single `[STRING]` arg
### Usage

```console
$ go run . "hello" standard --output=banner.txt
$ go run . --output=banner.txt "hello" standard
$ cat -e banner.txt
_ _ _ $
| | | | | | $
Expand All @@ -37,7 +37,7 @@ $ cat -e banner.txt
$
$
$
$ go run . "Hello There!" shadow --output=banner.txt
$ go run . --output=banner.txt "Hello There!" shadow
$ cat -e banner.txt
$
_| _| _| _| _|_|_|_|_| _| _| $
Expand Down
24 changes: 14 additions & 10 deletions subjects/ascii-art/output/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@

###### Has the requirement for the allowed packages been respected? (Reminder for this project: only [standard packages](https://golang.org/pkg/))

<<<<<<< Updated upstream
nprimo marked this conversation as resolved.
Show resolved Hide resolved
nprimo marked this conversation as resolved.
Show resolved Hide resolved
##### Try passing as arguments `"banana" standard --output test00.txt`
=======
nprimo marked this conversation as resolved.
Show resolved Hide resolved
##### Try passing as arguments `"--output test00.txt banana standard "`
>>>>>>> Stashed changes
nprimo marked this conversation as resolved.
Show resolved Hide resolved

```
Usage: go run . [STRING] [BANNER] [OPTION]
Usage: go run . [OPTION] [STRING] [BANNER]

Example: go run . something standard --output=<fileName.txt>
Example: go run . --output=<fileName.txt> something standard
```

###### Does it display the same result as above?

##### Try passing as arguments `"First\nTest" shadow --output=test00.txt`
##### Try passing as arguments `--output=test00.txt "First\nTest" shadow`

```
student$ cat test00.txt
Expand All @@ -37,7 +41,7 @@ $

###### Does it save the right output in the right file?

##### Try passing as arguments `"hello" standard --output=test01.txt`
##### Try passing as arguments `--output=test01.txt "hello" standard`

```
student$ cat test01.txt
Expand All @@ -54,7 +58,7 @@ $

###### Does it save the right output in the right file?

##### Try passing as arguments `"123 -> #$%" standard --output=test02.txt`
##### Try passing as arguments `--output=test02.txt "123 -> #$%" standard`

```
student$ cat test02.txt
Expand All @@ -71,7 +75,7 @@ $

###### Does it save the right output in the right file?

##### Try passing as arguments `"432 -> #$%&@" shadow --output=test03.txt`
##### Try passing as arguments `--output=test03.txt "432 -> #$%&@" shadow`

```
student$ cat test03.txt
Expand All @@ -88,7 +92,7 @@ $

###### Does it save the right output in the right file?

##### Try passing as arguments `"There" shadow --output=test04.txt`
##### Try passing as arguments `--output=test04.txt "There" shadow`

```
student$ cat test04.txt
Expand All @@ -105,7 +109,7 @@ $

###### Does it save the right output in the right file?

##### Try passing as arguments `"123 -> \"#$%@" thinkertoy --output=test05.txt`
##### Try passing as arguments `--output=test05.txt "123 -> \"#$%@" thinkertoy`

```
student$ cat test05.txt
Expand All @@ -122,7 +126,7 @@ $

###### Does it save the right output in the right file?

##### Try passing as arguments `"2 you" thinkertoy --output=test06.txt`
##### Try passing as arguments `--output=test06.txt "2 you" thinkertoy`

```
student$ cat test06.txt
Expand All @@ -139,7 +143,7 @@ $

###### Does it save the right output in the right file?

##### Try passing as arguments `"Testing long output!" standard --output=test07.txt`
##### Try passing as arguments `--output=test07.txt "Testing long output!" standard`

```
student$ cat test07.txt
Expand Down
2 changes: 1 addition & 1 deletion subjects/forum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ For the forum project you must use Docker. You can read about docker basics in t
- All [standard Go](https://golang.org/pkg/) packages are allowed.
- [sqlite3](https://github.com/mattn/go-sqlite3)
- [bcrypt](https://pkg.go.dev/golang.org/x/crypto/bcrypt)
- [UUID](https://github.com/satori/go.uuid)
- [UUID](https://github.com/gofrs/uuid)

This project will help you learn about:

Expand Down
6 changes: 3 additions & 3 deletions subjects/forum/advanced-features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ We encourage you to add any other additional features that you find relevant.
### Allowed packages

- All [standard go](https://golang.org/pkg/) packages are allowed.
- github.com/mattn/go-sqlite3
- golang.org/x/crypto/bcrypt
- github.com/satori/go.uuid
- [sqlite3](https://github.com/mattn/go-sqlite3)
- [bcrypt](https://pkg.go.dev/golang.org/x/crypto/bcrypt)
- [UUID](https://github.com/gofrs/uuid)
6 changes: 3 additions & 3 deletions subjects/forum/authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Some examples of authentication means are:
### Allowed packages

- All [standard go](https://golang.org/pkg/) packages are allowed.
- github.com/mattn/go-sqlite3
- golang.org/x/crypto/bcrypt
- github.com/satori/go.uuid
- [sqlite3](https://github.com/mattn/go-sqlite3)
- [bcrypt](https://pkg.go.dev/golang.org/x/crypto/bcrypt)
- [UUID](https://github.com/gofrs/uuid)

This project will help you learn about:

Expand Down
6 changes: 3 additions & 3 deletions subjects/forum/image-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ The max size of the images to load should be 20 mb. If there is an attempt to lo
### Allowed packages

- All [standard go](https://golang.org/pkg/) packages are allowed.
- github.com/mattn/go-sqlite3
- golang.org/x/crypto/bcrypt
- github.com/satori/go.uuid
- [sqlite3](https://github.com/mattn/go-sqlite3)
- [bcrypt](https://pkg.go.dev/golang.org/x/crypto/bcrypt)
- [UUID](https://github.com/gofrs/uuid)

This project will help you learn about:

Expand Down
6 changes: 3 additions & 3 deletions subjects/forum/moderation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ You should implement at least 4 types of users :
### Allowed packages

- All [standard go](https://golang.org/pkg/) packages are allowed.
- github.com/mattn/go-sqlite3
- golang.org/x/crypto/bcrypt
- github.com/satori/go.uuid
- [sqlite3](https://github.com/mattn/go-sqlite3)
- [bcrypt](https://pkg.go.dev/golang.org/x/crypto/bcrypt)
- [UUID](https://github.com/gofrs/uuid)

This project will help you learn about:

Expand Down
2 changes: 1 addition & 1 deletion subjects/forum/security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Sessions and cookies were implemented in the [previous project](../README.md) bu
- All [standard Go](https://golang.org/pkg/) packages are allowed.
- [sqlite3](https://github.com/mattn/go-sqlite3)
- [bcrypt](https://pkg.go.dev/golang.org/x/crypto/bcrypt)
- [UUID](https://github.com/satori/go.uuid)
- [UUID](https://github.com/gofrs/uuid)
- [autocert](https://pkg.go.dev/golang.org/x/crypto/acme/autocert)

This project will help you learn about :
Expand Down
Loading