Skip to content

Instantly share code, notes, and snippets.

View adempus's full-sized avatar
🏠
Working from home

Jeff Morin adempus

🏠
Working from home
  • Brooklyn, NY
View GitHub Profile
@adempus
adempus / timer.py
Last active September 25, 2021 21:09
Simple countdown timer in Python using the Penulum package
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()
@adempus
adempus / simple_multi_dropdown.css
Last active January 14, 2020 21:07
Simple Multi-Selection Menu built with Bootstrap & Vue
#genreInputBox {
height: 48px;
width: 85vw;
color: #9f9f9f;
cursor: pointer;
}
#dropdownForm {
height: 50vh;
overflow-y: scroll;
@adempus
adempus / gamebrew_db.sql
Last active October 14, 2019 16:33
gamebrew schema
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');
// 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.
// 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.