Skip to content

Instantly share code, notes, and snippets.

View EliTheCoder's full-sized avatar
😀

Eli Frigo EliTheCoder

😀
View GitHub Profile
@EliTheCoder
EliTheCoder / Esperantigi.plugin.js
Created June 29, 2021 19:59
A BetterDiscord plugin that converts x-system to circumflexes in Esperanto
/**
* @name Esperantigi
*/
/*@cc_on
@if (@_jscript)
// Offer to self-install for clueless users that try to run this directly.
var shell = WScript.CreateObject("WScript.Shell");
var fs = new ActiveXObject("Scripting.FileSystemObject");
var pathPlugins = shell.ExpandEnvironmentStrings("%APPDATA%\BetterDiscord\plugins");
-- Video Player version 1.0.0 by CrazedProgrammer
-- You can find info and documentation on these pages:
--
-- You may use this in your ComputerCraft OSes and modify it without asking.
-- However, you may not publish this program under your name without asking me.
-- If you have any suggestions, bug reports or questions then please send an email to:
-- [email protected]
local function loadAPIString(name, str)
local env = {}
@EliTheCoder
EliTheCoder / .p10k.zsh
Created December 24, 2019 00:18
EliTheCoder's p10k config
# Generated by Powerlevel10k configuration wizard on 2019-12-15 at 14:09 CST.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 38148.
# Wizard options: nerdfont-complete + powerline, small icons, classic, darkest, time,
# slanted separators, slanted heads, sharp tails, 2 lines, solid, left frame, sparse,
# many icons, concise, instant_prompt=quiet.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
def recurring(input):
save = []
for i in input:
if i in save:
return i
else:
save.append(i)
function recurring(input) {
let save = [];
for (let i of input) {
if (save.includes(i)) {
return i;
}
else {
save.push(i);
}
}
function recurring(input: string) {
let save: string[] = [];
for (let i of input) {
if (save.includes(i)) {
return i;
} else {
save.push(i);
}
}
}

Keybase proof

I hereby claim:

  • I am elithecoder on github.
  • I am elithecoder (https://keybase.io/elithecoder) on keybase.
  • I have a public key whose fingerprint is 0250 C532 F502 5BC1 ADC4 1333 17B3 2BAC 4B0A A3B6

To claim this, I am signing this object:

function factorial(num) {
let answer = 1;
for (let i = 0; i < num; i++) {
answer *= num
num--;
}
return answer;
}
Johnny was a king
Sid was magnificent
Angus was nothing
Lennen was nothing
The river was nothing
While Angus is weaker than Johnny,
Build Angus up
Put Lennen with Sid into the river
Put Sid into Lennen
let person = 0;
let toggle = false;
window.addEventListener("keydown", (e)=>{
if (e.keyCode == 219) {
if (person == 0) {
person = IIC.getConnectedIds.length-1;
} else {
person--;
}
}