Skip to content

Instantly share code, notes, and snippets.

View neopunisher's full-sized avatar
🎯
Focusing

Carter Cole neopunisher

🎯
Focusing
View GitHub Profile
@neopunisher
neopunisher / word-battle-tools.js
Last active March 15, 2025 20:07
https://www.word-battle.com/ unofficial api and helper tools; vibe coded with love
const endpoint = "https://htbgzenw76.execute-api.us-east-1.amazonaws.com/dev/app";
const callApi = async (funcName, data) => {
const response = await fetch(endpoint, {
body: JSON.stringify({ funcName, data }),
method: "POST",
headers: { "Content-Type": "application/json" }
});
if (!response.ok) {
throw new Error(`API call failed: ${response.status} ${response.statusText}`);
graph LR
    DMN[Default Mode Network]
    CEN[Central Executive Network]
    SN[Salience Network]
    SMN[Sensory-Motor Network]
    VN[Visual Network]
    AN[Auditory Network]
 LN[Limbic Network]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Notebook Paper Design</title>
<link href="https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Nanum Pen Script', cursive;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SVG to PNG Download</title>
</head>
<body>
<svg id="texas" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="300" height="300" viewBox="-67235,-57840 124725,118547">

LNC Region Breakdown

Region 1

  • Reps: Adam Haman and Roman Garcia
  • Alts: Andrew Chadderdon (Rank 1), Nick Shawhan (Rank 2)
  • States: AK, AZ, CO, HI, ID, KS, KY, MI, MN, MT, NE, NM, NV, OR, WI

Region 2

  • Rep: Daniel McGee
  • Alt: Matt Johnson
@neopunisher
neopunisher / stand-alone-graphql.html
Created March 28, 2024 20:38
Graphql stand alone
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React App</title>
</head>
<body>
<script type="importmap">
{
"imports": {
if (HTMLScriptElement.supports && HTMLScriptElement.supports('importmap')) {
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap
const importMap = {
imports: {
lazyload: 'IntersectionObserver' in window
? './lazyload.js'
: './lazyload-fallback.js',
},
};
function createCSV(data, fileName) {
const headers = [
'id',
'author_name',
'post',
'is_post',
'comment',
'is_comment',
'first_name',
'last_name',
@neopunisher
neopunisher / bypass-cloudflare-email-protection.js
Last active December 31, 2024 00:19
How to circumvent Cloudflare's [email protected] thing, WITHOUT enabling Javascript
// Adapted from https://raddle.me/f/Privacy/3722/how-to-circumvent-cloudflare-s-email-protected-thing-without with the help of chatGPT
function fixObfuscatedEmails() {
const elements = document.getElementsByClassName('__cf_email__');
for (let i = 0; i < elements.length; i++) {
const element = elements[i];
const obfuscatedEmail = element.getAttribute('data-cfemail');
if (obfuscatedEmail) {
const decodedEmail = decrypt(obfuscatedEmail);
element.setAttribute('href', 'mailto:' + decodedEmail);
element.innerHTML = decodedEmail;
@neopunisher
neopunisher / japanese-sayings.txt
Last active March 21, 2023 19:11
Sayings from all the languages I could find
初志貫徹 (shoshikantetsu) - "to carry out original intent"
一期一会 (ichigoichie) - "Treasure every encounter, for it will never recur."
一日一歩 (iichinichiippo) - "One step each day."
十人十色 (jūnintoiro) - "To each their own; So many people, so many minds"
匠の技 (Takumi no waza) - "the expertise of master craftsmen"