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
/** | |
* A generic class that allows for the creation of events and listeners. | |
* | |
* @template T - An object type that defines the events and their data types. | |
*/ | |
export default class EventEmitter<T> { | |
private events: { [K in keyof T]: Array<(data: T[K]) => void> } = {} as unknown as { [K in keyof T]: Array<(data: T[K]) => void> }; | |
/** | |
* Adds a listener to an event. |
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
div[data-autogrow]:has(textarea) { | |
display: grid; | |
} | |
div[data-autogrow]:has(textarea)::after { | |
content: attr(data-autogrow) ' '; | |
white-space: pre-wrap; | |
visibility: hidden; | |
} |
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
James | |
Mary | |
Robert | |
Patricia | |
John | |
Jennifer | |
Michael | |
Linda | |
David | |
Elizabeth |
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
const jobs = [ | |
'Genetic Counselor', | |
'Mathematician', | |
'University Professor', | |
'Occupational Therapist', | |
'Statistician', | |
'Medical Services Manager', | |
'Data Scientist', | |
'Information Security Analyst', | |
'Operations Research Analyst', |
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
:root { | |
--slate-50: #f8fafc; | |
--slate-100: #f1f5f9; | |
--slate-200: #e2e8f0; | |
--slate-300: #cbd5e1; | |
--slate-400: #94a3b8; | |
--slate-500: #64748b; | |
--slate-600: #475569; | |
--slate-700: #334155; | |
--slate-800: #1e293b; |
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
function encodeMessage(message: string) { | |
const enc = new TextEncoder(); | |
return enc.encode(message); | |
} | |
function decodeMessage(buffer: ArrayBuffer) { | |
const dec = new TextDecoder(); | |
return dec.decode(buffer); | |
} |
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
bl_info = { | |
"name": "Smart Join", | |
"author": "Jeroen Trines", | |
"version": (1, 0), | |
"blender": (3, 1, 0), | |
"location": "View3D > Object > Smart Join", | |
"description": "Create vertex groups for each mesh before joining objects in Blender", | |
"warning": "", | |
"doc_url": "", | |
"category": "Object", |
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
/* blingbling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
HTMLElement.prototype.$ = function (selector) { | |
return this.querySelector(selector); | |
} | |
HTMLElement.prototype.$$ = function (selector) { |
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
# list has not been checked manually for duplicates and spelling mistakes. | |
a | |
aback | |
abaft | |
abandoned | |
abashed | |
abdominal | |
aberrant | |
abhorrent | |
abiding |