formatting
This commit is contained in:
parent
07f2a5d728
commit
2e23190dfe
23
Tasks.md
23
Tasks.md
|
@ -244,8 +244,8 @@ The text is large, read it [here](data/metasyntactic.md) and find the raw text f
|
|||
|
||||
1. Use a regular expression (regex) to find all instances of a lowercase character with a
|
||||
following vowel character, in which no 'x', z' or 'y' follows the vowel in the given Text.
|
||||
It is not allowed to store the text in a variable, you must load it from an outside source, such as
|
||||
a file.
|
||||
It is not allowed to store the text in source code, you must load it from an outside source,
|
||||
such as a file.
|
||||
|
||||
Examples:
|
||||
|
||||
|
@ -258,28 +258,19 @@ Examples:
|
|||
| bAR | yes |
|
||||
| far | yes |
|
||||
|
||||
A hint that you don't want to miss: use [regex101.com](https://regex101.com) if you are not already
|
||||
a REGEX expert.
|
||||
A hint that you don't want to miss:
|
||||
|
||||
Use [regex101.com](https://regex101.com) if you are not already a REGEX expert.
|
||||
|
||||
<details>
|
||||
<summary>Hints</summary>
|
||||
|
||||
- Use `http.server.SimpleHTTPRequestHandler` and `io.BytesIO`.
|
||||
- Define your own class that inherits `SimpleHTTPRequestHandler`.
|
||||
- You don't need to implement `do_GET()`.
|
||||
- Implement your own `send_head()` method. This is the method that writes your response (not
|
||||
completely on it's own, but unless you feel like inspecting standard libraries, just do what
|
||||
I'm saying.).
|
||||
- `send_head()` should take no arguments (other than `self`) and return some readable buffer.
|
||||
- Don't forget to set the headers for HTTP before sending the body.
|
||||
- Your OS might block hosting to ports < 1000. Try to host your web server to `localhost:8080`.
|
||||
TODO
|
||||
|
||||
</details>
|
||||
<details>
|
||||
<summary>Solution</summary>
|
||||
|
||||
Take a look at the provided Code Example.
|
||||
|
||||
[Code Example](src/miniweb.py)
|
||||
TODO
|
||||
|
||||
</details>
|
||||
|
|
Loading…
Reference in New Issue