From 4c19454ea1cd823e8fe9e0fe7f6a749832a3d5fd Mon Sep 17 00:00:00 2001 From: Pedro Pupo Sa da Costa Date: Mon, 25 Dec 2023 11:27:20 +0000 Subject: [PATCH] fix: correct missing flashcard answers --- libs/base/env/src/index.ts | 19 ++++++++++++++ .../interview-flashcards/content/ryanair.json | 6 ++--- .../interview-flashcards/content/seneca.json | 26 ++++++++----------- .../components/src/flashcard/flashcard.tsx | 9 ++++++- 4 files changed, 41 insertions(+), 19 deletions(-) diff --git a/libs/base/env/src/index.ts b/libs/base/env/src/index.ts index 92ec28939..0c8b07561 100644 --- a/libs/base/env/src/index.ts +++ b/libs/base/env/src/index.ts @@ -18,3 +18,22 @@ export const getUrlPathOnServer = () => { const PROTOCOL = VERCEL_URL.includes("localhost") ? "http" : "https"; return `${PROTOCOL}://${VERCEL_URL}`; }; + +export const getRepositoryUrl = () => { + const upstreamOwner = getEnvVariableOrThrow( + "PROVIDER_GITHUB_PROJECT_UPSTREAM_OWNER", + ); + const upstreamRepo = getEnvVariableOrThrow( + "PROVIDER_GITHUB_PROJECT_UPSTREAM_REPO", + ); + const originOwner = getEnvVariableOrDefault( + "PROVIDER_GITHUB_PROJECT_ORIGIN_OWNER", + upstreamOwner, + ); + const originRepo = getEnvVariableOrDefault( + "PROVIDER_GITHUB_PROJECT_ORIGIN_REPO", + upstreamRepo, + ); + + return `https://github.com/${originOwner}/${originRepo}`; +}; diff --git a/libs/content/interview-flashcards/content/ryanair.json b/libs/content/interview-flashcards/content/ryanair.json index 5d20bc877..1317373ad 100644 --- a/libs/content/interview-flashcards/content/ryanair.json +++ b/libs/content/interview-flashcards/content/ryanair.json @@ -15,8 +15,8 @@ "id": "32f89028-f616-4d0e-bcd4-42245edbc975" }, { - "question": "How many passengers did Ryanair fly in 2022?", - "answer": "Always make sure to update yourself with the most current information, at the time of writing (September 2020) the answer to this question is:\n\nRyanair operates a fleet of over 450 Boeing 737-800 series aircraft, with orders of up to 210 new Boeing 737 aircraft, this includes 135 new Boeing 737 MAX 200s, and options for 75 more MAX 200s, which will enable Ryanair to grow its fleet to 585 by 2024.", + "question": "How many passengers did Ryanair fly in 2023?", + "answer": "169 million, an increase of 74 percent from the previous year.\n\n(Check [here](https://investor.ryanair.com/traffic) for up to date information)", "id": "c0ae8461-221b-4f23-9431-6d1de32e65f1" }, { @@ -41,7 +41,7 @@ }, { "question": "What engines do we use on our aircraft?", - "answer": "Approximately 146 million", + "answer": "737-800: CFM56-7B27\n\n737-8200: CFM LEAP-1B", "id": "1a14e887-b055-4a5e-b764-7b70f4a6a55f" } ] diff --git a/libs/content/interview-flashcards/content/seneca.json b/libs/content/interview-flashcards/content/seneca.json index 189e72873..9c9370af0 100644 --- a/libs/content/interview-flashcards/content/seneca.json +++ b/libs/content/interview-flashcards/content/seneca.json @@ -1,39 +1,37 @@ [ { "question": "If you pitched up in the Seneca, what would happen to the blade angle?", + "answer": "If you pitch up in a Seneca the speed IAS will decrease, because of the constant speed drive (in the propeller hub).\n\nThe propellers want to maintain the original RPM. Therefore the blades will go to a more fine blade setting.", "id": "cb492ac6-3996-4a18-823a-baf4bd551291" }, { "question": "What are the longitudinal ridges on the stabilator of the Seneca for?", - "answer": "Alternate air is an alternate source of air, it can for example be used during ice, when the normal filter is blocked to have a backup source available.\n\nAlternate air is unfiltered air and should not be used during ground operation because the unfiltered air may contain dust and other contamination.", "id": "d5cfaef3-e45d-47bb-914e-eab890517280" }, { "question": "What ice protection systems does the Seneca have?", - "answer": "Hydraulically driven by 2 electric pumps with a 7 second transit.", "id": "761c82c1-6556-49f5-8ee9-8a7b1e4d6d20" }, { "question": "What is the Engine Failure After Take off drill on your previous aircraft?", - "answer": "No, you mechanically change a valve that changes the air intake to air that runs past the exhaust manifold and is therefore heated.", "id": "bd14a4bb-9809-4172-87a9-b733c5f83cd8" }, { "question": "If you slammed the throttles wide open during takeoff on the Seneca, what would happen?", - "answer": "V speed in a Seneca:\n\nVr = 77kts\nVx = 76kts\nVy = 89kts\nVyse = 89kts\nVmca = 68kts\nVne = 195kts\nVno = 163kts\nVa = 121kts", "id": "c78a32f7-5473-45f5-86af-1273701387dd" }, { "question": "Does the Seneca have a carb heat system?", + "answer": "No, Seneca has a fuel injection system therefore it does not have a carburator.", "id": "27745319-e310-442a-a9c1-3647e9893aac" }, { "question": "What indications would you get inside the cockpit when overboosting the engine of a Seneca?", - "answer": "No, Seneca has a fuel injection system which doesn’t suffer from vapour icing.", "id": "f85f70ed-9efb-4347-a374-52cdd6065c4e" }, { "question": "Do you get carb icing in the Seneca?", + "answer": "No, Seneca has a fuel injection system which doesn’t suffer from vapour icing.", "id": "8e9ee4c2-7213-45c3-be9a-2171466d7de1" }, { @@ -43,7 +41,6 @@ }, { "question": "What is the endurance of a Seneca?", - "answer": "Yes, feathering locks engage at 800 RPM on the Seneca.\n\nWe feather to stop windmilling and reduce drag.", "id": "412f9611-b2e0-4249-a4ac-f1116ffa341f" }, { @@ -53,51 +50,50 @@ }, { "question": "If whilst taking off in a Seneca you lose the left engine what side do you want the crosswind to come from?", - "answer": "Live side to oppose the yawing moment.", + "answer": "Live side to oppose the yawing moment. In this case, the right side.", "id": "80a6c184-a44c-42a8-ac97-e38915b6a1b6" }, { "question": "When you feather the engine on the Seneca, do you have to feather before a certain RPM?", - "answer": "This depends on weight, C.G., temperature and density.\n\nThis altitude is usually where the combination of L/D ratio and engine efficiency are maximized.", + "answer": "Yes, feathering locks engage at 800 RPM on the Seneca.\n\nWe feather to stop windmilling and reduce drag.", "id": "666129de-7844-49d8-accf-8ec7bf6afbca" }, { "question": "Why can't you feather the propellers below 800 RPM on the Seneca?", - "answer": "Easier for the company in regards to training, maintenance and spare parts as you only use one type of aircraft.", + "answer": "Because the feathering locks engage at 800 RPM.", "id": "9ddd6175-5b25-4b67-918d-ea0ee11c53a2" }, { "question": "Tell me about the V speeds in a Seneca", - "answer": "If you pitch up in a Seneca the speed IAS will decrease, because of the constand speed drive (in the propeller hub).\n\nThe propellers want to maintain the original RPM. Therefore the blades will go to a more fine blade setting.", + "answer": "V speed in a Seneca:\n\nVr = 77kts\n\nVx = 76kts\n\nVy = 89kts\n\nVyse = 89kts\n\nVmca = 68kts\n\nVne = 195kts\n\nVno = 163kts\n\nVa = 121kts", "id": "1126fcd0-790e-480f-bb6d-8e23f51e4df7" }, { "question": "How is the start generated in the Seneca?", - "answer": "The engine will flood with fuel.", + "answer": "The start is generated by the starter motor, which is powered by the battery.", "id": "a964f770-d047-4006-9e0b-170faad15b71" }, { "question": "What's the purpose of the mirror looking at the nose-wheel on a Seneca?", - "answer": "No, it’s not required as the Seneca has a fuel injection system and engine icing normally forms around the venturi of the carb.\n\nIce can still form in in a fuel injection system in icing conditions, an alternate air source is available in this situation which takes warm air from inside the engine cowling.", "id": "18e20cb9-3fbf-4139-b196-9111dfa97b07" }, { "question": "You’ve been flying the Seneca, does it have a critical engine?", - "answer": "Amount of fuel divided by 24 GPH (gallons of fuel per hour).", + "answer": "Yes, the left engine is the critical engine because the propellers rotate clockwise.", "id": "10dbee0a-b710-4356-869e-ef049e0929c8" }, { "question": "How do the pneumatic de-icing devices on the Seneca work?", - "answer": "Make sure to memorize the emergency procedures for your previous aircraft, example answer:\n\nEngine powers max (mixture, rpm, throttles)\nIdentify and verify failed engine\nThrottle close\nPropeller feather\nMixture idle cutoff\nGear and flaps up\nMagneto switches off\nFuel pump off\nFuel selector off\nCHECK FOR FIRE\nR/T call", "id": "b9d1bd7c-0474-481b-9987-fa8764fa4e78" }, { "question": "Give a calculation to work out how far a Seneca could fly with a certain amount of fuel.", - "answer": "17KTS", + "answer": "Amount of fuel divided by 24 GPH (gallons of fuel per hour).", "id": "9d72fd4b-475c-4093-81b5-e7a9c74759a5" }, { "question": "What is the maximum crosswind limit on a Seneca?", + "answer": "17KTS", "id": "1eff66b4-09f8-4202-a1d3-4e3d0db378f7" }, { diff --git a/libs/react/components/src/flashcard/flashcard.tsx b/libs/react/components/src/flashcard/flashcard.tsx index 0faab2df9..0bc909c85 100644 --- a/libs/react/components/src/flashcard/flashcard.tsx +++ b/libs/react/components/src/flashcard/flashcard.tsx @@ -1,6 +1,7 @@ import { forwardRef } from "react"; import { Box, Button, Card, Typography, styled } from "@mui/joy"; import { MarkdownClient } from "../markdown-client"; +import { Ups } from "../ups"; import type { CardProps } from "@mui/joy"; const FlipCard = styled(Card)` @@ -68,7 +69,13 @@ export const Flashcard = forwardRef( {question} - {answer} + {answer ? ( + {answer} + ) : ( + + We are missing the answer. + + )}