mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(challenge-parser): allow many questions in MC challenge (#55928)
This commit is contained in:
@@ -200,7 +200,7 @@ export type ChallengeNode = {
|
||||
isLocked: boolean;
|
||||
isPrivate: boolean;
|
||||
order: number;
|
||||
question: Question;
|
||||
questions: Question[];
|
||||
assignments: string[];
|
||||
required: Required[];
|
||||
scene: FullScene;
|
||||
|
||||
@@ -236,7 +236,7 @@ class ShowOdin extends Component<ShowOdinProps, ShowOdinState> {
|
||||
videoLocaleIds,
|
||||
bilibiliIds,
|
||||
fields: { blockName },
|
||||
question,
|
||||
questions,
|
||||
assignments,
|
||||
translationPending,
|
||||
scene
|
||||
@@ -252,12 +252,13 @@ class ShowOdin extends Component<ShowOdinProps, ShowOdinState> {
|
||||
isChallengeCompleted
|
||||
} = this.props;
|
||||
|
||||
const question = questions[0];
|
||||
const { solution } = question;
|
||||
|
||||
const blockNameTitle = `${t(
|
||||
`intro:${superBlock}.blocks.${block}.title`
|
||||
)} - ${title}`;
|
||||
|
||||
const { solution } = question;
|
||||
|
||||
return (
|
||||
<Hotkeys
|
||||
executeChallenge={() => {
|
||||
@@ -400,7 +401,7 @@ export const query = graphql`
|
||||
testString
|
||||
}
|
||||
}
|
||||
question {
|
||||
questions {
|
||||
text
|
||||
answers {
|
||||
answer
|
||||
|
||||
@@ -200,7 +200,7 @@ class ShowVideo extends Component<ShowVideoProps, ShowVideoState> {
|
||||
videoLocaleIds,
|
||||
bilibiliIds,
|
||||
fields: { blockName },
|
||||
question
|
||||
questions
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -213,12 +213,13 @@ class ShowVideo extends Component<ShowVideoProps, ShowVideoState> {
|
||||
isChallengeCompleted
|
||||
} = this.props;
|
||||
|
||||
const question = questions[0];
|
||||
const { solution } = question;
|
||||
|
||||
const blockNameTitle = `${t(
|
||||
`intro:${superBlock}.blocks.${block}.title`
|
||||
)} - ${title}`;
|
||||
|
||||
const { solution } = question;
|
||||
|
||||
return (
|
||||
<Hotkeys
|
||||
executeChallenge={() => {
|
||||
@@ -327,7 +328,7 @@ export const query = graphql`
|
||||
testString
|
||||
}
|
||||
}
|
||||
question {
|
||||
questions {
|
||||
text
|
||||
answers {
|
||||
answer
|
||||
|
||||
@@ -55,7 +55,7 @@ const defaultProps = {
|
||||
isLocked: false,
|
||||
isPrivate: false,
|
||||
order: 1,
|
||||
question: {} as Question,
|
||||
questions: [] as Question[],
|
||||
assignments: ['mockAssignment'],
|
||||
required: [],
|
||||
solutions: {
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/ds-content-interactive-jupyterlab-tutorial" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ More resources:
|
||||
|
||||
\- <a href="https://www.freecodecamp.org/news/what-is-data-analysis/" rel="noopener noreferrer nofollow">News article</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/ds-content-interactive-jupyterlab-tutorial" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/rmotr-curriculum/ds-content-interactive-jupyterlab-tutorial" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ More resources:
|
||||
- <a href="https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas" target="_blank" rel="noopener noreferrer nofollow">Notebooks on GitHub</a>
|
||||
- <a href="https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb" target="_blank" rel="noopener noreferrer nofollow">How to open Notebooks from GitHub using Google Colab.</a>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: accessing-and-changing-elements-rows-columns
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: basics-of-numpy
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: copying-arrays-warning
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: initialize-array-problem
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: initializing-different-arrays
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: loading-data-and-advanced-indexing
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: mathematics
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: reorganizing-arrays
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: what-is-numpy
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: creating-a-tcp-client
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: developing-a-banner-grabber
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: developing-a-port-scanner
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: developing-an-nmap-scanner-part-1
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: developing-an-nmap-scanner-part-2
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: introduction-and-setup
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: understanding-sockets-and-creating-a-tcp-server
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ videoId: bejQ-W9BGJg
|
||||
dashedName: deep-learning-demystified
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ videoId: Y5M7KH4A4n4
|
||||
dashedName: how-convolutional-neural-networks-work
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ videoId: zvalnHWGtx4
|
||||
dashedName: how-deep-neural-networks-work
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ videoId: UVimlsy9eW0
|
||||
dashedName: recurrent-neural-networks-rnn-and-long-short-term-memory-lstm
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: conclusion
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: convolutional-neural-networks-evaluating-the-model
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: convolutional-neural-networks-picking-a-pretrained-model
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: convolutional-neural-networks-the-convolutional-layer
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ dashedName: convolutional-neural-networks
|
||||
|
||||
The next few video lessons will reference [this Colab notebook](https://colab.research.google.com/drive/1ZZXnCjFEOkp_KdNcNabd14yok0BAIuwS#forceEdit=true&sandboxMode=true).
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: core-learning-algorithms-building-the-model
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: core-learning-algorithms-classification
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: core-learning-algorithms-clustering
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: core-learning-algorithms-hidden-markov-models
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: core-learning-algorithms-the-training-process
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: core-learning-algorithms-training-and-testing-data
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: core-learning-algorithms-using-probabilities-to-make-predictions
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: core-learning-algorithms-working-with-data
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ dashedName: core-learning-algorithms
|
||||
|
||||
The next few video lessons will reference [this Colab notebook](https://colab.research.google.com/drive/15Cyy2H7nT40sGR7TBN5wBvgTd57mVKay#forceEdit=true&sandboxMode=true).
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: creating-a-convolutional-neural-network
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: introduction-machine-learning-fundamentals
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ dashedName: introduction-to-tensorflow
|
||||
|
||||
The next few video lessons will reference [this Colab notebook](https://colab.research.google.com/drive/1F_EWVKa8rbMXi3_fG0w7AtcscFq7Hi7B#forceEdit=true&sandboxMode=true).
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: natural-language-processing-with-rnns-building-the-model
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: natural-language-processing-with-rnns-create-a-play-generator
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: natural-language-processing-with-rnns-making-predictions
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: natural-language-processing-with-rnns-part-2
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: natural-language-processing-with-rnns-recurring-neural-networks
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: natural-language-processing-with-rnns-sentiment-analysis
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: natural-language-processing-with-rnns-training-the-model
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ dashedName: natural-language-processing-with-rnns
|
||||
|
||||
The next few video lessons will reference [this Colab notebook](https://colab.research.google.com/drive/1ysEKrw_LE2jMndo1snrZUh5w87LQsCxk#forceEdit=true&sandboxMode=true).
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: neural-networks-activation-functions
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: neural-networks-creating-a-model
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: neural-networks-optimizers
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ dashedName: neural-networks-with-tensorflow
|
||||
|
||||
The next few video lessons will reference [this Colab notebook](https://colab.research.google.com/drive/1m2cg3D1x3j5vrFc-Cu0gMvc48gWyCOuG#forceEdit=true&sandboxMode=true).
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: reinforcement-learning-with-q-learning-example
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ bilibiliIds:
|
||||
dashedName: reinforcement-learning-with-q-learning-part-2
|
||||
---
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ dashedName: reinforcement-learning-with-q-learning
|
||||
|
||||
The next few video lessons will reference [this Colab notebook](https://colab.research.google.com/drive/1IlrlS3bB8t1Gd5Pogol4MIwUxlAjhWOQ#forceEdit=true&sandboxMode=true).
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ If you add another `div` to the HTML, inside of `.flex-container`, it will show
|
||||
|
||||
> If it’s hard to see what's going on in the small embedded CodePen, feel free to click the "Edit on CodePen" or "Fork on CodePen" button. This will bring the example into a full-sized environment. Some of the later examples might especially benefit from doing this.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ A flex container is any element that has `display: flex` on it. A flex item is a
|
||||
|
||||
<img src="https://cdn.freecodecamp.org/curriculum/odin-project/flex-box/flexbox-01.png" style="width: 95%; height: 95%;" alt="An outer rectangle representing a flex container encompassing three smaller inner rectangles lined up side by side, each representing a flex item.">
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ Creating and nesting multiple flex containers and items is the primary way you w
|
||||
|
||||
Certainly, the image features a representation of a CSS Flexbox layout with nested flex containers. The outer container is denoted as "ALSO a flex container" highlighted in blue, and within it is another container marked as "with flex items" in red. Inside the red container, there are three items labeled as "flex items" in peach. This demonstrates that a flex container can be nested within another flex container and contain its own flex items, showcasing the recursive nature of Flexbox layout structures.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ dashedName: introduction-flexbox-lesson-d
|
||||
|
||||
Now that you have a basic understanding of how flexbox works, what is the primairy role of a flex item in a `flexbox` layout? Try and answer the question below.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ In the above screenshot, `flex: 1` equates to: `flex-grow: 1`, `flex-shrink: 1`,
|
||||
|
||||
Very often, you see the flex shorthand defined with only one value. In that case, that value is applied to `flex-grow`. So when you put `flex: 1` on our divs, you were actually specifying a shorthand of `flex: 1 1 0`.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ In the following example the `flex` shorthand has values for `flex-shrink` and `
|
||||
|
||||
<iframe allowfullscreen="true" allowpaymentrequest="true" allowtransparency="true" class="cp_embed_iframe " frameborder="0" height="300" width="100%" name="cp_embed_1" scrolling="no" src="https://codepen.io/TheOdinProjectExamples/embed/YzQqvgK?height=300&default-tab=html%2Cresult&slug-hash=YzQqvgK&editable=true&user=TheOdinProjectExamples&name=cp_embed_1" style="width: 100%; overflow:hidden; display:block;" title="CodePen Embed" loading="lazy" id="cp_embed_YzQqvgK"></iframe>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ Here's an example. If you shrink your browser window you'll notice that `.two` n
|
||||
|
||||
An important implication to notice here is that when you specify `flex-grow` or `flex-shrink`, flex items do not necessarily respect your given values for `width`. In the above example, all 3 divs are given a `width` of `250px`, but when their parent is big enough, they grow to fill it. Likewise, when the parent is too small, the default behavior is for them to shrink to fit. This is not a bug, but it could be confusing behavior if you aren’t expecting it.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ In other words, in our very first example, you put `display: flex` on a div and
|
||||
|
||||
<iframe allowfullscreen="true" allowpaymentrequest="true" allowtransparency="true" class="cp_embed_iframe " frameborder="0" height="400" width="100%" name="cp_embed_1" scrolling="no" src="https://codepen.io/TheOdinProjectExamples/embed/BaZKPdw?height=400&default-tab=html%2Cresult&slug-hash=BaZKPdw&editable=true&user=TheOdinProjectExamples&name=cp_embed_1" style="width: 100%; overflow:hidden; display:block;" title="CodePen Embed" loading="lazy" id="cp_embed_BaZKPdw"></iframe>
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ The example above fixed this by specifying `flex: 1 1 auto`, telling the flex it
|
||||
|
||||
Another detail to notice: when you changed the `flex-direction` to `column`, `flex-basis` refers to `height` instead of `width`. Given the context this may be obvious, but it's something to be aware of.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ Remove `flex: 1` from `.item` and add `justify-content: space-between` to `.cont
|
||||
|
||||
Before moving on to the next lesson, see what is possible with the `justify-content` property. Read this [interactive article on MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content) and play around with the different values of `justify-content` on the example.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ Because `justify-content` and `align-items` are based on the main and cross axis
|
||||
|
||||
Before moving on to the next lesson, see if you can figure out how `align-items` behaves when you change the `flex-direction` property to `column`.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ An Example of an array is:
|
||||
const fruits = ['apple', 'banana', 'orange'];
|
||||
```
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ console.log(fruits[2]); // Output: orange
|
||||
If the index is out of range, JavaScript will return `undefined`. Meaning that if you try to access `fruits[3]` in the above example, it will return `undefined`.
|
||||
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ console.log(pet); // Output: ['cat', 'dog']
|
||||
```
|
||||
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ console.log(newCharacters); // Output: ['Ron']
|
||||
|
||||
The above code creates a new array `newCharacters` with the second element from the `characters` array. The `slice()` method takes two arguments: the index of the element to start the slice and the index of the element to end the slice (not included).
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ while (i <= 5) {
|
||||
|
||||
The above code snippet initializes a variable `i` with the value `1`. The `while` loop executes the block of code as long as the value of `i` is less than or equal to `5`. The value of `i` is incremented by `1` in each iteration.
|
||||
|
||||
# --question--
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user