Original AlpineJS | Svelte Translation | Explanation |
---|
<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 |
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: |
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"; |
'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')(); |
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:
A quick cheatsheet of useful snippet for Flutter
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
.
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:
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; |