Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Galliers KYDronePilot

  • OpenText Exstream
  • Kentucky, United States
View GitHub Profile
@KYDronePilot
KYDronePilot / Dockerfile
Created Feb 27, 2021
Pipenv Dockerfile template
View Dockerfile
FROM python:3-alpine AS base
WORKDIR /project
ENV PIPENV_VENV_IN_PROJECT=1
RUN pip install --no-cache-dir pipenv
COPY ./Pipfile* ./
# Install/build pipenv environment in separate container to reduce bulk
@KYDronePilot
KYDronePilot / MacTextEditingShortcuts.md
Last active Jan 30, 2021
Mac shortcuts for text editing
View MacTextEditingShortcuts.md

Mac Text Editing Shortcuts

Source: https://www.howtogeek.com/681662/35-mac-text-editing-keyboard-shortcuts-to-speed-up-typing/

Option+Left Arrow: To the beginning of the previous word. Option+Right Arrow: To the beginning of the next word. Command+Left Arrow: To the beginning of the current line. Command+Right Arrow: To the end of the current line. Option+Up Arrow: To the beginning of the current paragraph. Option+Down Arrow: To the end of current paragraph.

@KYDronePilot
KYDronePilot / HotCorner.ahk
Last active Jan 24, 2021 — forked from dvtate/HotCorner.ahk
Hot Corners for Windows 10 using AutoHotKey
View HotCorner.ahk
; ## What is it?
;
; An AutoHotKey script that replicates the "Hot Corners" feature of macOS on
; Windows
;
; ## How to use it?
;
; Modify the code in each `if` block (before the sleep command, which prevents
; duplicate triggers) for each corner below so it performs the desired action.
@KYDronePilot
KYDronePilot / course_info_scraper.js
Created Jul 21, 2019
Get info and schedule for Eastern Kentucky University courses
View course_info_scraper.js
// Get all of the raw course tables (info and schedule)
let rawTables = document.querySelectorAll("table.datadisplaytable");
// Zip together info and schedule tables of the same course
let rawCourses = [];
for (let i = 0; i < rawTables.length; i += 2) {
let course = {};
course.info = rawTables[i];
course.schedule = rawTables[i + 1];
rawCourses.push(course);