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"; | |
// define a Navigation Link type for our links | |
export type NavLinkPropType = { | |
label: string; | |
route: string; | |
}; | |
const AppHeaderNavLink: React.FC<NavLinkPropType> = ({ label }) => { | |
return <span className="nav-link">{label}</span>; |
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
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining | |
const adventurer = { | |
name: 'Alice', | |
cat: { | |
name: 'Dinah' | |
} | |
}; | |
const dogName = adventurer.dog?.name; |
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
// *********************************************** | |
// This example commands.js shows you how to | |
// create various custom commands and overwrite | |
// existing commands. | |
// | |
// For more comprehensive examples of custom | |
// commands please read more here: | |
// https://on.cypress.io/custom-commands | |
// *********************************************** | |
// |
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
function getRoute (tickets) { | |
const route = tickets.pop(); | |
let i = 0; | |
while (i < tickets.length) { | |
if (route[0] === tickets[i][1]) { | |
route.unshift(tickets[i][0]); | |
i = 0; | |
} else if (route[route.length - 1] === tickets[i][0]) { | |
route.push(tickets[i][1]); | |
i = 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
[ | |
{ | |
"quote": "Inspiration is the windfall from hard work and focus.", | |
"author": "Helen Hanson" | |
}, | |
{ | |
"quote": "Life isn’t about getting and having, it’s about giving and being.", | |
"author": "Kevin Kruse" | |
}, | |
{ |
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
#https://github.com/marketplace/actions/schedule-job-action | |
name: scheduled job | |
on: | |
schedule: | |
#https://crontab.guru/#0_0_*_*_* | |
- cron: "0 0 * * *" | |
jobs: | |
#https://docs.cypress.io/guides/continuous-integration/github-actions#Cypress-GitHub-Action | |
chrome: | |
runs-on: ubuntu-latest |
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
#https://docs.cypress.io/guides/continuous-integration/circleci#Basic-Setup | |
version: 2.1 | |
orbs: | |
cypress: cypress-io/[email protected] | |
workflows: | |
build: | |
jobs: | |
- cypress/run: | |
#https://circleci.com/docs/2.0/contexts/ | |
context: keep-password-secret |
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, {Component} from 'react'; | |
import quizQuestions from './api/quizQuestions'; | |
import Quiz from './components/Quiz'; | |
import Result from './components/Result'; | |
import logo from './svg/logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
constructor(props) { | |
super(props); |
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
=========WITHOUT PROMISE==================== | |
console.log('Request data...') | |
setTimeout(() => { | |
console.log('Preparing data...') | |
const backendData = { | |
server: 'aws', | |
port: 2000, | |
status: 'working' |
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
is:issue is:open label:beginner | |
is:issue is:open label:easy | |
is:issue is:open label:first-timers-only | |
is:issue is:open label:good-first-bug | |
is:issue is:open label:"good first issue" | |
is:issue is:open label:starter | |
is:issue is:open label:up-for-grabs |