This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PIE = 3.14; | |
function f() { | |
console.log('function f inside module a'); | |
} | |
function f123() { | |
//not accessible | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
win = turtle.Screen() | |
win.setup(900,600) | |
win.title("Jackhammer's Paint") | |
# ribbon | |
rib = turtle.Turtle() | |
rib.hideturtle() | |
rib.color('thistle') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#So far, my Python scripts for Blender are segmented into | |
#a "create the objects" script, | |
#and a "describe their motion over time" script. | |
#The "motion.py" script must be run and have the "register" | |
#checkbox clicked on it in the Blender "Text Editor" window, | |
#so that it will add the driver every time the file loads. | |
#To use the creation script, you must already have a group named | |
#"Triangle" defined with some renderable mesh in it so that the | |
#"creation.py" script can create instances of that group. | |
#My "Triangle" group has a skinned wireframe triangle in it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import division | |
from turtle import Turtle | |
import math | |
import random | |
class ShapefulTurtle(Turtle): |