Skip to content

Instantly share code, notes, and snippets.

View RawrBear's full-sized avatar

Neil RawrBear

View GitHub Profile
@RawrBear
RawrBear / gist:e0abec0cd3ed2a9ce41e7a7b79efdbc6
Created July 19, 2023 18:29
Basic VSCode Extensions I use. VSC-Extensions is needed to import/export the list
aaron-bond.better-comments
albymor.increment-selection
AntiAntiSepticeye.vscode-color-picker
apollographql.vscode-apollo
aslamanver.vsc-export
bradgashler.htmltagwrap
bradlc.vscode-tailwindcss
burkeholland.simple-react-snippets
christian-kohler.path-intellisense
dbaeumer.vscode-eslint
@RawrBear
RawrBear / How to setup Python VENV on Windows with VSCode
Last active July 13, 2023 22:01
Instructions to setup a VENV and get VSCode/Pylance to use it. This hopefully fixes issues with Pylance complaining about packages not being installed when they actually are.
1. Create 2 dirs: **virtual_envs** and **pyvers**
2. Download the Python version you want to use.
3.Run the python.exe
**IMPORTANT:** UNCHECK "Add Python to PATH"
4. Click "Customize Installation"
5. Click "Next" unless you want to modify the options. I uncheck "Documentation" but it's up to you
@RawrBear
RawrBear / gist:ee597629a22f0d13255bdafb0b48e124
Created April 2, 2020 23:06
OpenSuse 15.1 Error building Beeware
'''
I think I fixed the libcairo2-dev error by running zypper install cairo-devel. Now getting this:
'''
(beeware37) rawrbear@linux:~/sandbox/beeware> python -m pip install --pre beeware
Collecting beeware
Using cached beeware-0.3.0.dev3-py2.py3-none-any.whl (3.1 kB)
Collecting briefcase>=0.3.0.dev3
Using cached briefcase-0.3.0.dev8-py2.py3-none-any.whl (53 kB)
Collecting toga>=0.3.0.dev17
@RawrBear
RawrBear / app.py
Last active March 27, 2020 02:39
An image viewer GUI built with Beeware
"""
A simple test area for me to learn to use Beeware
"""
import toga
from toga.style import Pack
from toga.style.pack import COLUMN, ROW, CENTER
class TestGUI(toga.App):