Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryVasanth authored Oct 31, 2024
2 parents 48e0200 + 36735da commit 7484b84
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion subjects/forum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ For the forum project you must use Docker. You can read about docker basics in t
- [bcrypt](https://pkg.go.dev/golang.org/x/crypto/bcrypt)
- [UUID](https://github.com/gofrs/uuid)

> You must not use use any frontend libraries or frameworks like React, Angular, Vue etc.
> You must not use any frontend libraries or frameworks like React, Angular, Vue etc.
This project will help you learn about:

Expand Down
2 changes: 1 addition & 1 deletion subjects/get-them-all-dom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
You've been attributed the task to find the main architect of the Tower of Pisa before he achieves his plans, avoiding us nowadays all those lame pictures of people pretending to stop it from falling.

You arrive at the architects' chamber to find him, but all you have in front of you is a bunch of unknown people.
Step by step, with the little information you have, gather information and figure out by elimination who he is.
Step by step, with the limited details you have, gather information and figure out by elimination who he is.

Launch the provided HTML file in the browser to begin your investigation.<br/>
On top of the webpage, each of the four buttons fires a function:
Expand Down
2 changes: 1 addition & 1 deletion subjects/get-them-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
You've been attributed the task to find the main architect of the Tower of Pisa before he achieves his plans, avoiding us nowadays all those lame pictures of people pretending to stop it from falling.

You arrive at the architects' chamber to find him, but all you have in front of you is a bunch of unknown people.
Step by step, with the little information you have, gather information and figure out by elimination who he is.
Step by step, with the limited details you have, gather information and figure out by elimination who he is.

Launch the provided HTML file in the browser to begin your investigation.<br/>
On top of the webpage, each of the four buttons fires a function:
Expand Down
2 changes: 1 addition & 1 deletion subjects/its-a-match/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Instructions

Have you been pondering over the etymology of `grep`?
Have you ever pondered the etymology of `grep`?

Create 4 regular expression variables:

Expand Down
5 changes: 3 additions & 2 deletions subjects/mouse-trap/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
****## Mouse trap
## Mouse trap

### Instructions

Develop a trap to capture the elements when the mouse is getting too close to the center of the page.

Create the following functions:

- `createCircle`: make it fire on every click on the page, and create a `div` at the position of the mouse on the screen, setting its `background` to `white` and its class to `circle`.

- `moveCircle`: make it fire when the mouse moves, and get the last circle created and makes it move along with the mouse.
Expand All @@ -17,7 +18,7 @@ Create the following functions:

### Files

You only need to create & submit the JS file `mouse-trap.js`; we're providing you the following file to download and test locally:
You only need to create & submit the JS file `mouse-trap.js`, we're providing you the following files to download and test locally:

- the HTML file [mouse-trap.html](./mouse-trap.html) to open in the browser, which includes:

Expand Down
3 changes: 2 additions & 1 deletion subjects/pronoun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
Create a function named `pronoun` that accepts a string parameter.
This function returns an object that will have all the personal pronouns, present in the string, as keys. Each key will have a sub object with the first word after each of the personal pronouns found in the string.

You must also a `count` property to the sub object, with the amount of occurrences of the pronoun.
You must also add a `count` property to the sub object, with the amount of occurrences of the pronoun.

Pronouns:

- i
- you
- he
Expand Down
17 changes: 9 additions & 8 deletions subjects/sortable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ We've found _confidential_ information about those superheroes.
You must write all of the code from scratch. You are not allowed to rely on any frameworks or libraries like React, Vue, Svelte etc.

#### Fetching the data

In order to get the information, you should use `fetch`.
When you use `fetch` in JS, it always returns a `Promise`. We will look more deeply into that later on. For now, tak a look at this:
When you use `fetch` in JS, it always returns a `Promise`. We will look more deeply into that later on. For now, take a look at this:

```js
// This function is called only after the data has been fetched, and parsed.
const loadData = heroes => {
console.log(heroes)
}
const loadData = (heroes) => {
console.log(heroes);
};

// Request the file with fetch, the data will downloaded to your browser cache.
fetch('https://rawcdn.githack.com/akabab/superhero-api/0.2.0/api/all.json')
// Request the file with fetch, and the data will be downloaded to your browser cache.
fetch("https://rawcdn.githack.com/akabab/superhero-api/0.2.0/api/all.json")
.then((response) => response.json()) // parse the response from JSON
.then(loadData) // .then will call the `loadData` function with the JSON value.
.then(loadData); // .then will call the `loadData` function with the JSON value.
```

#### Display
Expand Down Expand Up @@ -73,7 +74,7 @@ Additional features will be critical to your success. Here's a few which will gi
- `include`
- `exclude`
- `fuzzy`
- `equal`, `not equal`, `greater than` and `lesser than` for numbers (including weight and height).
- `equal`, `not equal`, `greater than` and `lesser than` for numbers (including weight and height).
- Detail view. Clicking a hero from the list will show all the details and large image.
- A slick design. Spend some time improving the look and feel by playing around with CSS. Have fun with it.
- Modify the URL with the search term, so that if you copy and paste the URL in a different tab, it will display the same column filters. If you have implemented detail view, the state of which hero is displayed should also form part of the URL.

0 comments on commit 7484b84

Please sign in to comment.