Skip to content

Instantly share code, notes, and snippets.

View clavis-magna's full-sized avatar

andrew burrell clavis-magna

View GitHub Profile
int rot = 0;
void setup(){
size(500,500);
}
void draw(){
background(255);
pushMatrix();
rot = rot + 5;
translate(100,100);
@clavis-magna
clavis-magna / polar2cartesian.cs
Created August 29, 2019 10:04
[Unity c#] given an angle and a radius, get a cartesian co-ordinate
// what is the position on a circumference?
// given a radius of 'radius'
// need to make relative to the object when touched
// eg: (x, y) = (12 * sin(115.toRadian), 12 * cos(115.toRadian))
float xPosOnradius = radius * Mathf.Sin(degree * Mathf.Deg2Rad) + transform.position.x;
float zPosOnradius = radius * Mathf.Cos(degree * Mathf.Deg2Rad) + transform.position.z;
float yPos = this.transform.position.y;
@clavis-magna
clavis-magna / gist:794923bf541b2f0e0f035b728ec19e96
Created September 8, 2023 00:27 — forked from mberman84/gist:45545e48040ef6aafb6a1cb3442edb83
LLaMA 2 13b chat fp16 Install Instructions
conda create -n textgen python=3.10.9
conda activate textgen
install pytorch: 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
pip install -r requirements.txt
python server.py
# download model
# refresh model list
# load model