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 pendulum as pdlm | |
| from time import sleep | |
| ''' | |
| :param max_seconds: int of seconds to count to (default 20s) | |
| ''' | |
| def start_timer(max_seconds=20): | |
| sec = 0 | |
| start_time = pdlm.now() |
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
| #genreInputBox { | |
| height: 48px; | |
| width: 85vw; | |
| color: #9f9f9f; | |
| cursor: pointer; | |
| } | |
| #dropdownForm { | |
| height: 50vh; | |
| overflow-y: scroll; |
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
| create table genres( | |
| id int not null auto_increment, | |
| name varchar(100), | |
| primary key(id) | |
| ); | |
| -- insertions -- | |
| insert into genres (name) values ('platform'); | |
| insert into genres (name) values ('shooter'); | |
| insert into genres (name) values ('sport'); | |
| insert into genres (name) values ('racing'); |
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
| // some commonly manipulated page elements | |
| const leftMenu = document.querySelector('.left_menu'); | |
| const menuTop = document.getElementById('left_menu_top'); | |
| const listItems = document.querySelectorAll('.card'); | |
| const bookmark_icons = document.querySelectorAll('.bookmark_icon'); | |
| const mainContent = document.querySelector('.main_content'); // canvas containing div | |
| // main content's dimensions for the canvas to fill. | |
| const mainHeight = mainContent.offsetHeight, | |
| mainWidth = mainContent.offsetWidth; | |
| // Fabric.js canvas, main work area for user artwork assignments. |
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
| // some commonly manipulated page elements | |
| const leftMenu = document.querySelector('.left_menu'); | |
| const menuTop = document.getElementById('left_menu_top'); | |
| const listItems = document.querySelectorAll('.card'); | |
| const bookmark_icons = document.querySelectorAll('.bookmark_icon'); | |
| const mainContent = document.querySelector('.main_content'); // canvas containing div | |
| // main content's dimensions for the canvas to fill. | |
| const mainHeight = mainContent.offsetHeight, | |
| mainWidth = mainContent.offsetWidth; | |
| // Fabric.js canvas, main work area for user artwork assignments. |