Skip to content

Instantly share code, notes, and snippets.

RPDeshaies RPDeshaies

Block or report user

Report or block RPDeshaies

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
RPDeshaies /
Last active Apr 17, 2020
Google Slides Fudge Dice
function onOpen() {
.addItem("Roll 4df", "runFudgeDice")
function runFudgeDice() {
const fudgeDice = [-1, -1, 0, 0, 1, 1];
View awesomeSort.ts
type IDirection = "asc" | "desc";
export function awesomeSort<T>(
array: Array<T>,
getters: Array<(el: T) => { value: unknown; direction: IDirection }>
) {
const arrayToSort = [...array];
return arrayToSort.sort((a, b) => {
for (const getter of getters) {
View useEmotionStyles.ts
import { css, ObjectInterpolation } from "emotion";
export type IStyles = { [key: string]: ObjectInterpolation<undefined> };
export function useStyles<
TStyleDefinitions extends { [key: string]: ObjectInterpolation<undefined> },
TStyleDefinitionNames extends keyof TStyleDefinitions
styleDefinitions: {
[key in TStyleDefinitionNames]: ObjectInterpolation<undefined>;
You can’t perform that action at this time.