Skip to content

Instantly share code, notes, and snippets.

View MysteryBlokHed's full-sized avatar
💬

Adam Thompson-Sharpe MysteryBlokHed

💬
View GitHub Profile

A range function for JavaScript, designed the same way as Python's. Works using ES6 generators.

@MysteryBlokHed
MysteryBlokHed / generator-proto.js
Last active May 7, 2022 14:50
The prototype for Generator objects (returned from function* in JS)
/**
* The prototype for all Generator objects
* (the type returned from all `function*` functions).
* Can be used to define additional methods for generators
* using `Object.defineProperty` or `Object.defineProperties`
* @type {Generator<never, never, never>}
*/
const generatorProto = Object.getPrototypeOf(
Object.getPrototypeOf((function* () {})()),
)
@MysteryBlokHed
MysteryBlokHed / README.md
Last active June 20, 2021 15:37
Create emojis with custom people and skin tones.

Family Emoji Creator

Create emojis with custom people and skin tones.

Use

Uses Python 3.
To install requirements, run pip install -r requirements.txt, or just install the 1 requirement with pip install pyperclip==1.*. To use, run python main.py.

@MysteryBlokHed
MysteryBlokHed / README.md
Last active June 20, 2021 15:37
Fake being deafened or muted on Discord while still being able to talk.

FakeDeaf

Fake being deafened or muted on Discord while still being able to talk.

Use

Discord Client

To use in the Discord Client, copy + paste the contents of fakedeaf.client.js into the developer console (Ctrl + Shift + I on the client to access).

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.