This file contains hidden or 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
| // Top Level Classes | |
| class Person {} | |
| class Devon extends Person { | |
| public hungry = true; | |
| eat(food: Food | Food[]) { | |
| // nom nom nom | |
| } | |
| apply(food: Food, sauce: Sauce) { | |
| // put the sauce on the food |
This file contains hidden or 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 mysql = require('mysql'); | |
| const fs = require('graceful-fs'); | |
| // Make any queries constant for readability | |
| const TABLES_QUERY = | |
| "SELECT table_name FROM information_schema.tables WHERE table_schema ='my_table_schema"; | |
| const COLUMNS_QUERY = 'SELECT column_name from information_schema.columns'; | |
| // Create the MySQL connection | |
| const connection = mysql.createConnection({ |
This file contains hidden or 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 { exec } = require('child_process'); | |
| const { writeFileSync } = require('fs'); | |
| const environment = process.env.ENVIRONMENT || 'development'; | |
| // test environment configuration | |
| const configuration = { | |
| development: { | |
| common: { | |
| base_url: 'http://localhost:5001/api/v1', | |
| }, |
This file contains hidden or 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 { ToastContainer, toast } from 'react-toastify'; | |
| import Modal from 'react-modal'; | |
| import { useEffect, useState } from 'react'; | |
| import useScreenshot from '../../hooks/screenshot-hook'; | |
| import useWishes from '../../hooks/wishes-hook'; | |
| import { MAP_MARKER_URL } from '../../config/constants'; | |
| import 'react-toastify/dist/ReactToastify.min.css'; | |
| Modal.setAppElement(document.body); |