Skip to content

Instantly share code, notes, and snippets.

View EmanH's full-sized avatar
⛰️
Upward

Emmanuel Higgins EmanH

⛰️
Upward
View GitHub Profile
@EmanH
EmanH / Angular Theme Service
Created May 21, 2023 23:15
Theme Service - light, dark and system mode
import { DOCUMENT } from '@angular/common'
import { Inject, Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs'
@Injectable({
providedIn: 'root'
})
export class ThemeService {
modeOptions: IModeOption[] = [
@EmanH
EmanH / keyboard_shortcut_logger.py
Last active August 2, 2023 11:26
⌨ Keeps track of usage and frequency of keyboard shortcuts
from pynput import keyboard
import json
import ctypes
import os
# Load the required libraries
user32 = ctypes.windll.user32
kernel32 = ctypes.windll.kernel32
psapi = ctypes.windll.psapi