Skip to content

Instantly share code, notes, and snippets.

View Kadajett's full-sized avatar

Jeremy Stover Kadajett

View GitHub Profile
@Kadajett
Kadajett / gist:bb8522da736e5f060762146b5fa002cf
Created February 2, 2024 17:59
Track commits by team members
const { exec } = require("child_process");
const path = require("path");
// Replace this with the path to your Git repository
const repoPath = "../colony";
function parseGitLog(log, filterNames = []) {
const weeklyCommits = {};
const commitLines = log.split("\n");
@Kadajett
Kadajett / BonusSpellCalculaterPathfiner1e.ts
Created November 18, 2023 17:26
Calculate Bonus Spells Pathfinder 1e
function calculateAbilityModifier(abilityScore: number): number {
return Math.floor((abilityScore - 10) / 2);
}
function generateBonusSpellTable(abilityScore: number): {
[level: number]: number;
} {
const modifier = calculateAbilityModifier(abilityScore);
let bonusSpells: { [level: number]: number } = {};
@Kadajett
Kadajett / PasswordGenerator.js
Created June 4, 2023 19:10
Password generator that is simple enough to do in your head in a pinch. Hard to guess. Security.org says: 9 quadrillion years to crack
function generatePassword(domain, base) {
const domainName = domain.split(".")[0]; // Extract the domain name
const lastChar = domainName.slice(-1); // Get the last character of the domain name
const charCount = domainName.length; // Count the characters in the domain name
const baseWords = base.split(" "); // Split the base string into words
const firstChars = baseWords.map(word => word[0]); // Get the first letter of each word
// Capitalize letters in the password based on the number at the end
const passwordChars = firstChars.map((char, index) => {
let img;
function preload() {
img = loadImage("src/assets/photo2.jpg");
}
function setup() {
createCanvas(400, 400);
@Kadajett
Kadajett / CockKeys.json
Last active July 10, 2021 23:40
db for dickCoin
{
"keys": [{
"openseaUrl": "https://opensea.io/assets/0x495f947276749ce646f68ac8c248420045cb7b5e/4491726516030203812614450579463857042464239586635258517311568059421845094401",
"imageUrl": "https://i.imgur.com/dwJfUub.mp4",
"title": "the little spermaid"
}]
}
onmessage = function(evt) {
const canvas = evt.data.canvas;
const gl = canvas.getContext("webgl");
function render(time) {
// ... some drawing using the gl context ...
requestAnimationFrame(render);
}
requestAnimationFrame(render);
};
#include <iostream>
#include <string>
// #include <bits/stdc++.h>
using namespace std;
struct Node {
int (*func)(string);
string param;
#include <iostream>
#include <array>
using namespace std;
struct QueueItem {
int func(string);
string params;
};
Function permuteString(input, iter = 0) {
if(iter == input.length - 1) return;
Let currentArr = Array.from(input);
Let firstChar = currentArr[0];
currentArr = currentArr.splice(0,1); edbc
// loop through for all the characters
for(let i = 0; i < currentArr.length; i++) {
Let tempItem = currentArr[i];
@Kadajett
Kadajett / cart.component.js
Created January 11, 2019 21:07
Cart line item modification
let tempLineItems = lineItems.filter(item => item.label === "Medical Fee");
// debugger;
return products && products.length > 0 ? (
<Block>
<Block mb={combineRems(spacing.two, spacing.four)}>
{/* <CartProductList
products={products}
onDecreaseQuantity={decreaseQuantity}
onIncreaseQuantity={increaseQuantity}
onRemoveProduct={removeProduct}