Skip to content

Instantly share code, notes, and snippets.

View FunctionDJ's full-sized avatar
🏠
Working from home

Function FunctionDJ

🏠
Working from home
View GitHub Profile
/**
* Types for character / expression rendering by https://github.com/FunctionDJ
*
* Credit goes to https://github.com/ac2pic and https://github.com/AndrielChaoti
* for initial types at https://github.com/CCDirectLink/crosscode-re-docs/blob/master/gui/faces.md
*/
type Mapped<T> = {
[key: string]: T
}
type Mapped<T> = {
[key: string]: T
}
export interface CharacterData {
face?: Face | string | FaceMap
}
export interface Face {
width: number
import { ReactElement } from "react";
import { Alert } from "react-bootstrap";
import { ChangeVarNumber_T } from "../../interfaces/actions";
interface Props {
data: ChangeVarNumber_T
}
export const ChangeVarNumber = ({ data }: Props) => {
const value = (
type GameAction =
"moveDirX"
| "aiming"
| "charge"
| "menuBack"
| "menuHotkeyHelp2"
| "questCircleLeft"
| "dashing"
| "guarding"
type GameAction =
"moveDirX"
| "aiming"
| "charge"
| "menuBack"
| "menuHotkeyHelp2"
| "questCircleLeft"
| "dashing"
| "guarding"
interface WaitEvent {
ignoreSlowDown: boolean
time: number
type: "WAIT"
}
interface ShowSideMsgEvent {
message: {
en_US: string
de_DE: string
/* global nodecg */
import { faCheck } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import React, { useState, useEffect } from "react";
import ReactDOM from "react-dom";
import OverlayData from "../shared/OverlayData";
import LoaderOverlay from "./components/LoaderOverlay";
import LogoPicker from "./components/LogoPicker";
import RowLabelInput from "./components/RowLabelInput";
import Socials from "./components/Socials";
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="7zip.install" version="19.0" />
<package id="audacity" version="2.4.2" />
<package id="autohotkey.portable" version="1.1.33.02" />
<package id="ccleaner" version="5.76.8269" />
<package id="chocolatey" version="0.10.15" />
<package id="chocolateygui" version="0.17.3" />
<package id="discord.install" version="0.0.309" />
<package id="epicgameslauncher" version="1.1.298.0" />
@FunctionDJ
FunctionDJ / cloudSettings
Last active June 19, 2021 14:00
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-06-19T14:00:41.526Z","extensionVersion":"v3.4.3"}
@FunctionDJ
FunctionDJ / swap.js
Created February 7, 2020 18:09
How the swap function works
// We're given this function
x = (y=>y)(y,y=x)
// It assignes something to x
// y => y is an arrow function with implicit return
// implicit return means that the "function body" is just an expression that we return
// We can write y => y like this
y => {
return y;
}
// So we can turn our arrow function to a classic named function like this: