This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DRY_RUN = true | |
SEED_PHRASE = "Yeag!" | |
async function myFunction() { | |
/* Random Number Generation Setup */ | |
// Create cyrb128 state: | |
var seed = cyrb128(SEED_PHRASE); | |
// Four 32-bit component hashes provide the seed for sfc32. | |
var rand = sfc32(seed[0], seed[1], seed[2], seed[3]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# perplexity_subprocess_script.py | |
# Quick and dirty way to measure prompt perplexity from llama.cpp | |
# by Evin Jaff | |
import subprocess | |
import json | |
# Paths to executables | |
PERPLEXITY_ABSOLUTE_PATH = "" | |
TOKENIZE_ABSOLUTE_PATH = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENAI_API_KEY = "YOUR_OPENAI_KEY_HERE" | |
BASE_URL = "https://api.openai.com/v1/chat/completions"; | |
async function fetchGPT(userContent, messages) { | |
try { | |
const headers = { | |
"Content-Type": "application/json", | |
"Authorization": `Bearer ${OPENAI_API_KEY}` | |
}; | |
let payload; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DRY_RUN = true | |
OPENAI_API_KEY = "YOUR_API_KEY_HERE" | |
BASE_URL = "https://api.openai.com/v1/chat/completions"; | |
function myFunction() { | |
/* Random Number Generation Setup */ | |
// Create cyrb128 state: | |
var seed = cyrb128("Your Seed Phrase"); | |
// Four 32-bit component hashes provide the seed for sfc32. | |
var rand = sfc32(seed[0], seed[1], seed[2], seed[3]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<addon id="service.autoexec" name="Autoexec Service" version="1.0.0" provider-name="evinjaff"> | |
<requires> | |
<import addon="xbmc.python" version="3.0.0"/> | |
</requires> | |
<extension point="xbmc.service" library="autoexec.py"> | |
</extension> | |
<extension point="xbmc.addon.metadata"> | |
<summary lang="en_GB">Automatically run python code when Kodi starts.</summary> | |
<description lang="en_GB">The Autoexec Service will automatically be run on Kodi startup.</description> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NES Controller FSM implementation - By Evin Jaff (2023) | |
// Wrote this for funsies during a DnD session with friends because I was bored | |
// Wanted to see if I could write some code to emulate the NES Controller signals - might use this driver code for another project | |
// https://tresi.github.io/nes/ | |
// https://www.nesdev.org/wiki/Standard_controller | |
//Preprocessed Pins | |
#define LATCH_PIN 4 | |
#define CLCK_PIN 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* mostlikely.js | |
* © 2020 By Evin Jaff | |
* functionality: pulls the cached map of all members on a guild, then | |
* outputs a random user as the most likely to (blank) | |
*/ | |
module.exports = { | |
name: 'mostlikely', | |
description: 'Most likely to ...', | |
execute(message, args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//JS Module compatible with Discord.js | |
//Ideally if you were going to use this often, you'd try and find a better randomness library, but that's neither here nor there. | |
module.exports = { | |
name: 'statroll', | |
description: 'rolls stats', | |
execute(message, args) { | |
console.log("args: " + args); | |
//message.reply("args is " + args.toString()); | |
if(args.includes("4d6")){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to dump romfs and exefs using GodMode 9 | |
1. Boot up modded 3DS into GodMode9 by holding start. If you have additional custom boot firms, highlihgt GodMode9 and press "A" | |
2. Select the gamecart as Select "[C:] Gamecart()" and then select the .trim.3ds file, and copy it to the clipboard by clicking "Y" | |
3. Then, navigate to the SDCARD (NOLABEL)/gm9/out folder and paste in the .trim.3ds file | |
4. Click on the .trim.3ds file and then go under "NCSD image options..." and then click "Build CIA from file" | |
5. Once the new CIA file has been created, click on the generated CIA file, then select "CIA image options..." and then select "Mount image to drive" | |
6. Once the CIA has been mounted, it will ask you to navigate to the drive, select "yes" and then once you're in the drive, open the "0000.00000000" file. | |
7. Once you're there, copy the romfs folder to the clipboard using "Y" and then navigate back to the gm9/out folder and paste the romfs folder in there | |
8. If you also want the exefs, repeat again and copy to gm9/out |
NewerOlder