Skip to content

Instantly share code, notes, and snippets.

View cole-wilson's full-sized avatar
🖖
cole.ws

Cole Wilson cole-wilson

🖖
cole.ws
View GitHub Profile
:root {
--colors-one: #d6e685;
--colors-two: #8cc665;
--colors-three: #44a340;
--colors-four: #1e6823;
}
@media (prefers-color-scheme: dark) {
:root {
--colors-text: var(--colors-white);
@cole-wilson
cole-wilson / key.js
Created October 9, 2019 15:32
I DIDN'T MAKE THIS!!!!
/**
* Simulate a key event.
* @param {Number} keyCode The keyCode of the key to simulate
* @param {String} type (optional) The type of event : down, up or press. The default is down
* @param {Object} modifiers (optional) An object which contains modifiers keys { ctrlKey: true, altKey: false, ...}
*/
function simulateKey (keyCode, type, modifiers) {
var evtName = (typeof(type) === "string") ? "key" + type : "keydown";
var modifier = (typeof(modifiers) === "object") ? modifier : {};
@cole-wilson
cole-wilson / Welcome file.md
Last active October 1, 2019 16:56
Welcome file
X:2012
T:Liam's Theme
R:Cole Wilson
C:Trad.
O:England
Z:HI LIAM!!!!!
M:4/4
L:1/8
Q: 1/2 =160