parent
8e37d72ac8
commit
174865974b
|
@ -135,7 +135,7 @@ function createGetPasswordlessAuth(app) {
|
|||
);
|
||||
}
|
||||
// find user then validate and destroy email validation token
|
||||
// finally retun user instance
|
||||
// finally return user instance
|
||||
return User.findOne$({ where: { id: authToken.userId } }).flatMap(
|
||||
user => {
|
||||
if (!user) {
|
||||
|
|
|
@ -139,7 +139,7 @@ function updateMyPortfolio(...args) {
|
|||
)(...args);
|
||||
}
|
||||
|
||||
// This API is reponsible for what campers decide to make public in their porfoile, and what is private.
|
||||
// This API is responsible for what campers decide to make public in their profile, and what is private.
|
||||
function updateMyProfileUI(req, res, next) {
|
||||
const {
|
||||
user,
|
||||
|
|
|
@ -21,7 +21,7 @@ type FileData {
|
|||
name String
|
||||
path String?
|
||||
|
||||
// Nonesense
|
||||
// Nonsense
|
||||
dataSource Json? @map("__dataSource") // Null only | Undefined
|
||||
persisted Boolean? @map("__persisted") // Undefined
|
||||
strict Boolean? @map("__strict") // Undefined
|
||||
|
@ -34,7 +34,7 @@ type File {
|
|||
name String
|
||||
path String? // Undefined | Null
|
||||
|
||||
// Nonesense
|
||||
// Nonsense
|
||||
cachedRelations Json? @map("__cachedRelations") // Undefined
|
||||
data FileData? @map("__data") // Undefined
|
||||
dataSource Json? @map("__dataSource") // Null | Undefined
|
||||
|
@ -48,7 +48,7 @@ type CompletedChallengeData {
|
|||
id String
|
||||
solution String? // Null | Undefined
|
||||
|
||||
// Nonesense
|
||||
// Nonsense
|
||||
dataSource Json? @map("__dataSource") // Null
|
||||
persisted Boolean @map("__persisted")
|
||||
strict Boolean @map("__strict")
|
||||
|
@ -91,7 +91,7 @@ type ProfileUIData {
|
|||
showPortfolio Boolean
|
||||
showTimeLine Boolean
|
||||
|
||||
// Nonesense
|
||||
// Nonsense
|
||||
persisted Boolean? @map("__persisted") // Undefined
|
||||
strict Boolean? @map("__strict") // Undefined
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ type ProfileUI {
|
|||
showPortfolio Boolean? // Undefined
|
||||
showTimeLine Boolean? // Undefined
|
||||
|
||||
// Nonesense
|
||||
// Nonsense
|
||||
cachedRelations Json? @map("__cachedRelations") // Undefined | {}
|
||||
data ProfileUIData? @map("__data") // Undefined
|
||||
persisted Boolean? @map("__persisted") // Undefined
|
||||
|
|
|
@ -139,7 +139,7 @@ sections that need to stay left to right
|
|||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
/* new Font Family because 'Hack-ZeroSlash' add letter spacing in Arabic letter which is extermely bad */
|
||||
/* new Font Family because 'Hack-ZeroSlash' add letter spacing in Arabic letter which is extremely bad */
|
||||
|
||||
[dir='rtl'] body,
|
||||
[dir='rtl'] .signup-btn,
|
||||
|
|
|
@ -10,7 +10,7 @@ dashedName: catch-misspelled-variable-and-function-names
|
|||
|
||||
The `console.log()` and `typeof` methods are the two primary ways to check intermediate values and types of program output. Now it's time to get into the common forms that bugs take. One syntax-level issue that fast typers can commiserate with is the humble spelling error.
|
||||
|
||||
Transposed, missing, or mis-capitalized characters in a variable or function name will have the browser looking for an object that doesn't exist - and complain in the form of a reference error. JavaScript variable and function names are case-sensitive.
|
||||
Transposed, missing, or miscapitalized characters in a variable or function name will have the browser looking for an object that doesn't exist - and complain in the form of a reference error. JavaScript variable and function names are case-sensitive.
|
||||
|
||||
# --instructions--
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ $PA = LU$
|
|||
|
||||
# --instructions--
|
||||
|
||||
The task is to implement a routine which will take a square nxn matrix $A$ and return a lower triangular matrix $L$, a upper triangular matrix $U$ and a permutation matrix $P$, so that the above equation is fullfilled. The returned value should be in the form `[L, U, P]`.
|
||||
The task is to implement a routine which will take a square nxn matrix $A$ and return a lower triangular matrix $L$, a upper triangular matrix $U$ and a permutation matrix $P$, so that the above equation is fulfilled. The returned value should be in the form `[L, U, P]`.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ dashedName: step-82
|
|||
|
||||
The penguin's beak and feet share the same `color`.
|
||||
|
||||
Create a new custom CSS variable named `--penguin-picorna`, and replace all relavant property values with it.
|
||||
Create a new custom CSS variable named `--penguin-picorna`, and replace all relevant property values with it.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ Inside `pick`, use `let` to initialize a variable named `numbers` and set it to
|
|||
|
||||
# --hints--
|
||||
|
||||
Your `pick` function should initalize `numbers` to an empty array `[]`.
|
||||
Your `pick` function should initialize `numbers` to an empty array `[]`.
|
||||
|
||||
```js
|
||||
assert.match(pick.toString(), /numbers\s*=\s*\[\]/);
|
||||
|
|
|
@ -12,7 +12,7 @@ This video will help you understand the equations of simple and compound interes
|
|||
|
||||
Here is the <a href="https://colab.research.google.com/drive/1IVBaeX84arJXS73raRROaxbz4qMyFVb6?usp=sharing" target="_blank" rel="noopener noreferrer nofollow">Colab notebook to go along with this video.</a>
|
||||
|
||||
Here is an additional <a href="https://colab.research.google.com/drive/1-HWYmzKn6HmEUWMBv7G525CpoQpm8TnN?usp=sharing" target="_blank" rel="noopener noreferrer nofollow">Colab notebook that shows you one way to put many of these interest and payment forumlas into Python functions.</a> Also you will see an example of using some formulas to output results, notice a trend, and follow up with other formulas to analyze patterns.
|
||||
Here is an additional <a href="https://colab.research.google.com/drive/1-HWYmzKn6HmEUWMBv7G525CpoQpm8TnN?usp=sharing" target="_blank" rel="noopener noreferrer nofollow">Colab notebook that shows you one way to put many of these interest and payment formulas into Python functions.</a> Also you will see an example of using some formulas to output results, notice a trend, and follow up with other formulas to analyze patterns.
|
||||
|
||||
# --question--
|
||||
|
||||
|
|
|
@ -101,10 +101,10 @@ class PrimeSeive {
|
|||
};
|
||||
|
||||
function consecutivePrimeSum(limit) {
|
||||
// Initalize seive
|
||||
// Initialize seive
|
||||
const primeSeive = new PrimeSeive(limit);
|
||||
|
||||
// Initalize for longest sum < 100
|
||||
// Initialize for longest sum < 100
|
||||
let bestPrime = 41;
|
||||
let bestI = 0;
|
||||
let bestJ = 5;
|
||||
|
|
|
@ -4,7 +4,7 @@ const challengeUrl =
|
|||
const superBlockUrl = '/learn/responsive-web-design';
|
||||
const courseUrl = '/learn/responsive-web-design/#basic-html-and-html5';
|
||||
|
||||
describe('The breadcumbs should work corectly', () => {
|
||||
describe('The breadcumbs should work correctly', () => {
|
||||
it('It should have a superblock and a course', () => {
|
||||
cy.visit(challengeUrl);
|
||||
cy.get('.ellipsis').contains('Responsive Web Design').and('be.visible');
|
||||
|
|
|
@ -7,7 +7,7 @@ textarea {
|
|||
}
|
||||
|
||||
.CodeMirror {
|
||||
/* need to add important to overwrite the specifity of the classes in the dependecy */
|
||||
/* need to add important to overwrite the specificity of the classes in the dependency */
|
||||
height: 70vh !important;
|
||||
max-width: 80vw;
|
||||
margin: auto;
|
||||
|
|
|
@ -25,7 +25,7 @@ function deleteStep(stepNum: number): void {
|
|||
deleteStepFromMeta({ stepNum });
|
||||
updateStepTitles();
|
||||
|
||||
console.log(`Sucessfully deleted step #${stepNum}`);
|
||||
console.log(`Successfully deleted step #${stepNum}`);
|
||||
}
|
||||
|
||||
function insertStep(stepNum: number): void {
|
||||
|
@ -53,7 +53,7 @@ function insertStep(stepNum: number): void {
|
|||
|
||||
insertStepIntoMeta({ stepNum, stepId });
|
||||
updateStepTitles();
|
||||
console.log(`Sucessfully inserted new step #${stepNum}`);
|
||||
console.log(`Successfully inserted new step #${stepNum}`);
|
||||
}
|
||||
|
||||
function createEmptySteps(num: number): void {
|
||||
|
@ -67,7 +67,7 @@ function createEmptySteps(num: number): void {
|
|||
const stepId = createStepFile({ stepNum });
|
||||
insertStepIntoMeta({ stepNum, stepId });
|
||||
}
|
||||
console.log(`Sucessfully added ${num} steps`);
|
||||
console.log(`Successfully added ${num} steps`);
|
||||
}
|
||||
|
||||
export { deleteStep, insertStep, createEmptySteps };
|
||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
|||
import { Image } from './image';
|
||||
|
||||
describe('Render the image', () => {
|
||||
it('sould render the image with the alt and src attributes', () => {
|
||||
it('should render the image with the alt and src attributes', () => {
|
||||
render(
|
||||
<Image
|
||||
alt="Quincy Larson's Signature"
|
||||
|
|
Loading…
Reference in New Issue