Skip to content

Instantly share code, notes, and snippets.

View jb0gie's full-sized avatar
πŸ—οΈ
Buidl'n

web3genie jb0gie

πŸ—οΈ
Buidl'n
View GitHub Profile
@lanmower
lanmower / gist:77234786dacf18b7021cc85141006d9d
Created January 31, 2025 10:53
Bookmarklet - page to prompt
javascript:(function() { const pageTitle = document.title; const pageContent = document.body.innerText; const prompt = `###%20Title:%20${pageTitle}\n\n###%20Content:\n${pageContent}%60;%20const%20textarea%20=%20document.createElement('textarea');%20textarea.value%20=%20prompt;%20document.body.appendChild(textarea);%20textarea.select();%20let%20successful;%20try%20{%20successful%20=%20document.execCommand('copy');%20}%20catch%20(err)%20{%20console.error('Could%20not%20copy%20text:%20',%20err);%20successful%20=%20false;%20}%20document.body.removeChild(textarea);%20if%20(successful)%20{%20alert('Page%20content%20copied%20as%20LLM-readable%20prompt!');%20}%20else%20{%20alert('Failed%20to%20copy%20the%20content.%20Please%20try%20again.');%20}%20})();
@jamiephan
jamiephan / README.md
Last active April 27, 2025 08:29
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@jb0gie
jb0gie / schwemplate_2-0.html
Last active January 17, 2024 10:17
the evolution of the [schwemplate](https://github.com/AnEntrypoint/schwemplate)
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/styles.css"
/>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,line-clamp"></script>
<div id="app" class="text-5xl">{{ message }}</div>
# Make sure you have Anaconda installed
# This tutorial assumes you have an Nvidia GPU, but you can find the non-GPU version on the Textgen WebUI github
# More information found here: https://github.com/oobabooga/text-generation-webui
conda create -n textgen python=3.10.9
conda activate textgen
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui
cd text-generation-webui
python -m pip install -r requirements.txt
@bramreth
bramreth / Player.gd
Created July 24, 2023 23:52
How to make a 3D Platfomer in Godot 4: Setup, Movement, and Camera Controls - code dump
extends RigidBody3D
var mouse_sensitivity := 0.001
var twist_input := 0.0
var pitch_input := 0.0
@onready var twist_pivot := $TwistPivot
@onready var pitch_pivot := $TwistPivot/PitchPivot
func _ready() -> void:
@ezynda3
ezynda3 / rescue-tokens.ts
Created July 18, 2022 08:08
Flashbots Rescue Tokens
import { ethers, providers, Wallet, utils, Transaction } from "ethers";
import {
FlashbotsBundleProvider,
FlashbotsBundleResolution,
} from "@flashbots/ethers-provider-bundle";
import { exit } from "process";
const FLASHBOTS_URL = "https://relay-goerli.flashbots.net";
const TOKEN_ADDRESS = "0x4E5d67a73bdb6BF68fADa7BDD7F455A7aA02C8ab";
@SumitBando
SumitBando / AlpineToSvelte.md
Last active February 28, 2024 11:45
Tried to use a web page template in a SvelteKit project, unexpectedly found some Alpine.js embedded. Here was the translation.
Original AlpineJS Svelte Translation Explanation
'use strict';
let dotenv = require('dotenv');
let express = require('express');
let http = require('http');
let uuid = require('uuid');
let { json, urlencoded } = require('body-parser');
let compression = require('compression');
let cors = require('cors');
let relay = require('./relay')();
@live24h
live24h / Keybase.md
Created September 12, 2019 17:33
Keybase.md

Keybase proof

I hereby claim:

  • I am live24h on github.
  • I am live24h (https://keybase.io/live24h) on keybase.
  • I have a public key ASA9-5h1I-Q4MY3T0YFbxc91O-348CxAgSVtf7nCxBsoEwo

To claim this, I am signing this object:

@jb0gie
jb0gie / flutter.md
Created February 23, 2019 00:27 β€” forked from matteocrippa/flutter.md
Flutter Cheatsheet

Flutter

A quick cheatsheet of useful snippet for Flutter

Widget

A widget is the basic type of controller in Flutter Material. There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.

Stateful

StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like: