Skip to content

Instantly share code, notes, and snippets.

View jb0gie's full-sized avatar
🏗️
Buidl'n

web3genie jb0gie

🏗️
Buidl'n
View GitHub Profile
@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/rippleui@1.12.1/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:

@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active September 19, 2024 07:14
The truth about Svelte

I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.

But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.

Svelte is a language.

Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?

A few projects that have answered this question:

using UnityEngine;
public class DistanceJoint3D : MonoBehaviour {
public Transform ConnectedRigidbody;
public bool DetermineDistanceOnStart = true;
public float Distance;
public float Spring = 0.1f;
public float Damper = 5f;