This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = [ | |
{ | |
"id": 4, | |
"title": "At et magnam iusto reiciendis eaque nesciunt.", | |
"subtitle": "Et aut exercitationem et laborum enim consequatur minima cum quo. Sed accusamus atque veritatis nisi error voluptatibus suscipit. Voluptatum omnis pariatur ducimus. Nisi dolor placeat sunt repellat. Nam ad officia debitis qui non. Quia quo consequatur voluptatibus voluptas molestias.", | |
"body": "Saepe eum totam ipsum ipsum praesentium porro amet.\nNumquam at et rerum iusto voluptas.", | |
"published": true, | |
"author": "Jaclyn White", | |
"upvotes": 12, | |
"downvotes": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function sketch (p) { | |
let capture = null; | |
let cocossdModel = null; | |
let cocoDrawings = []; | |
let faceDrawings = []; | |
function showCocoSSDResults(results) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | Short-circuit? | Short-circuits on? | Fulfilled on? | Rejected on? | | |
|--------------------|:--------------:|------------------------|-------------------------|------------------------| | |
| Promise.all | ✅ | First rejected promise | All promise fulfilled | First rejected promise | | |
| Promise.allSettled | ❌ | N/A | Always | N/A | | |
| Promise.race | ✅ | First settled | First promise fulfilled | First rejected promise | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const customIterable = { | |
[Symbol.iterator]() { | |
let counter = 0; | |
return { | |
next() { | |
if (counter < 5) { | |
counter++; | |
return { done: false, value: counter }; | |
} else { | |
return { done: true, value: undefined }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const range = { | |
start: 1, | |
end: 5, | |
[Symbol.iterator]() { | |
this.current = this.start; | |
return this; | |
}, | |
next() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const users = [ | |
{ | |
id: 1, | |
name: "Jonathon Haley", | |
username: "Monte.Weber2", | |
email: "Daphne43@yahoo.com", | |
phone: "1-563-675-1857 x11708", | |
website: "carmela.net", | |
password: "hashed_password" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = [ | |
{ | |
id: 1, | |
naame: "Jonathon Haley", | |
username: "Monte.Weber2", | |
email: "Daphne43@yahoo.com", | |
phone: "1-563-675-1857 x11708", | |
website: "carmela.net", | |
password: "hashed_password" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// calculate the sum of array elements | |
const sum = (arr) => arr.reduce((total, item) => total += item, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to calculate the sum of array elements | |
const sum = (arr) => { | |
let result = 0; | |
for (let i = 0; i < arr.length; i++) { | |
result += arr[i]; | |
} | |
return result; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { | |
bool, | |
number, | |
object, | |
string, | |
} from 'prop-types' | |
export const ANIMATION_TIME = 200 * 4; |
NewerOlder