Skip to content

Instantly share code, notes, and snippets.

View EliTheCoder's full-sized avatar
😀

Eli Frigo EliTheCoder

😀
View GitHub Profile
function recurring(input: string) {
let save: string[] = [];
for (let i of input) {
if (save.includes(i)) {
return i;
} else {
save.push(i);
}
}
}
function recurring(input) {
let save = [];
for (let i of input) {
if (save.includes(i)) {
return i;
}
else {
save.push(i);
}
}
def recurring(input):
save = []
for i in input:
if i in save:
return i
else:
save.append(i)
@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.
#
-- 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 / 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");