Skip to content

Instantly share code, notes, and snippets.

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

Ben therealbenpai

🏠
Working from home
View GitHub Profile
@therealbenpai
therealbenpai / wordle-README.md
Last active January 3, 2023 12:46
Wordle Exploit

Wordle Game Solver Script

Note: You require to be on a PC for this to work

  1. Go to the Wordle Game
  2. Press Ctrl+Shift+I
  3. Go to the tab labeled "Console"
  4. Copy the code from here and paste it, then press enter
  5. A popup will appear confirming if you want to run the code. If so, accept it. Otherwise, cancel it. Directions will be provided afterwords

This project is completely open source and this bug may be patched when you try to use it.

@therealbenpai
therealbenpai / minesweeper.html
Last active January 3, 2023 12:34
Ad-free Minesweeper
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="google" content="notranslate">
<meta http-equiv="Content-Language" content="en">
<title>Minesweeper Offline - Play Free Offline Minesweeper that can be played on any PC</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes">
<meta name="description"
content="Free Offline Minesweeper in JavaScript. Play the classic game in Beginner, Intermediate, and Expert modes.">
@therealbenpai
therealbenpai / matrix.js
Last active April 30, 2022 18:14
Matrix
function x() {
const letter = String.fromCharCode(Math.floor(Math.random() * 26) + 65);
const element = document.createElement('p');
element.style.left = `${Math.random() * 100}%`;
element.style.top = `${Math.random() * 100}%`;
element.innerText = letter;
document.body.insertAdjacentElement('beforeend', element);
}
function meta() {
class cLogs {
constructor() {
this.cmethods = new Map()
}
static TagCSS = (t, b) => `color:${t};border:1px solid ${t};border-radius:12px;font-size:11px;font-family:arial;background-color:rgba(${b.join(', ')},0.2);padding: 0px 3px`
static error = (msg) => console.error(`%cERROR%c ${msg ?? ""}`, this.TagCSS('red', [220, 0, 0]), '')
static warn = (msg) => console.warn(`%cWARNING%c ${msg ?? ""}`, this.TagCSS('darkorange', [240, 130, 0]), '')
static success = (msg) => console.log(`%cLOG%c ${msg ?? ""}`, this.TagCSS('green', [0, 220, 0]), '')
static customTag = (tagType = 'log', tagText= 'Filler Text', tagData = {}) => (d) => console[tagType](`%c${tagText.toUpperCase()}%c ${d}`,Object.entries(tagData).map(([k,v]) => `${k}: ${v}`).join(';'),'')
error = (msg) => cLogs.error(msg)
@therealbenpai
therealbenpai / README.md
Created January 3, 2023 17:06
Generating PGP Keys

How to generate a PGP Key for usage in GitHub

Needed programs:

Steps on making a PGP key:

  1. Install GPG on your machine
@therealbenpai
therealbenpai / class.js
Last active October 10, 2023 13:11
Helper Classes
class CustomMath {
static devideWithRemainder = (a, b) => [Math.floor(a / b), a % b];
static collatz = (sn = 5, mi = 100) => {
if (sn <= 0) throw new SyntaxError('Starting Number must be greater than 0');
let i = 0, f = false, mn = sn, cn = sn
while (i < mi) {
cn = (cn % 2 == 1) ? (cn * 3) + 1 : cn / 2;
++i;
mn = Math.max(mn, cn);
if (cn == 4) { f = true; break }
@therealbenpai
therealbenpai / textFormatter.js
Created March 20, 2023 18:28
Reddit Text Formatter
class TextFormatter {
static bold = (text) => `**${text}**`;
static italic = (text) => `*${text}*`;
static strikethrough = (text) => `~~${text}~~`;
static spoiler = (text) => `>!${text}!<`;
static code = (text) => `\`${text}\``;
static codeBlock = (text) => text.split('\n').unshift('').push('').map(line => ` ${line}`).join('\n');
static quote = (text) => `> ${text}`;
static quoteBlock = (text) => `>>> ${text}`;
static link = (text, url) => `[${text}](${url})`;

aspe:keyoxide.org:JI3O6H2RNBQYQGJCSZRZYMF7NU

Keybase proof

I hereby claim:

  • I am therealbenpai on github.
  • I am therealbenpai (https://keybase.io/therealbenpai) on keybase.
  • I have a public key ASAKK3q5b3LcCytHXBdeDShDrik5taw_M4-9JBUGGYPa6wo

To claim this, I am signing this object:

openpgp4fpr:AA9B0130E794BF62C0FA240CE9469FAA8B44BB16