Skip to content

Instantly share code, notes, and snippets.

@gman77
gman77 / Large-app-how-to.md
Created September 25, 2021 15:34 — forked from cuibonobo/Large-app-how-to.md
How to structure a large application in Flask. Taken from the Flask wiki: https://github.com/mitsuhiko/flask/wiki/Large-app-how-to

Here's an example application that uses the pattern detailed below: https://github.com/tantastik/talent-curator


This document is an attempt to describe the first step of a large project structure with flask and some basic modules:

  • SQLAlchemy
  • WTForms

Please feel free to fix and add your own tips.

@gman77
gman77 / git.md
Created September 22, 2021 15:20
git commands

git remote remove origin

@gman77
gman77 / python.md
Last active September 27, 2021 13:54
python venv

for vscode when adding a venv use from terminal in root of project

python3 -m venv .venv

then will be prompted to change the interpreter, change it to the venv one.

xattr -d com.apple.quarantine chromedriver

pip freeze > requirements.txt (pip3 on macOS/Linux). The requirements file describes the packages you've installed in your virtual environment. With only this file, you or other developers can restore those packages using pip install -r requirements.txt (or, again, pip3 on macOS/Linux). By using a requirements file, you need not commit the virtual environment itself to source contro

@gman77
gman77 / gist:b48ce027b020c5d9a221dc4581718a92
Created May 21, 2021 16:36 — forked from mefuru/gist:25ffa3d67aabe3affd7b7a8ab62fbcac
Instructions for setting up a Hugo site hosted on GitHub pages

Hey, this is how I set up personal site using Hugo, hosting it on Github pages and linked it to a domain bought through Google domains. Let me know if you have any questions!

  • Install Hugo (Mac)
> brew install hugo
> hugo new site SITE_NAME
> hugo new post/test-post.md
  • Download a theme and add to project e.g.