$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
#Import-Module PSColors | |
#Import-Module posh-git | |
Import-Module -Name Terminal-Icons |
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
Django Project Structure - Modular App Design
A small project today could lead to its expansion with additional functionalities, necessitating separate applications. As you incorporate more features, the views.py file might swell with disparate code segments, complicating navigation and comprehension. It’s preferable to manage a concise, 200-line views.py file focused solely on your store app rather than wading through over a thousand lines of unrelated code.
Collaborative efforts benefit from modularization, as it simplifies task delegation among developers.
Modular apps enhance the flexibility of your codebase, allowing for straightforward integration or detachment from your current or future projects.
Suggested Directory Structure - Position all applications within an apps/ subdirectory to maintain an uncluttered root directory. This approach aids in the immediate recognition and understanding of the project’s framework and layout.
This guide will walk you through the process of setting up a Python project environment using pip-tools
, a set of command-line tools designed to complement pip
. You can find more information about pip-tools
on their GitHub repository.
https://github.com/jazzband/pip-tools
Step 1: Create a Virtual Environment
A virtual environment is an isolated Python environment that allows you to manage dependencies for different projects separately. To create a virtual environment, run the following commands in your terminal:
// Usual process | |
mkdir project-name | |
cd project-name | |
git mod init github.com/brndnsmth/project-name | |
go get -u gorm.io/gorm // example install | |
go get -u gorm.io/driver/sqlite // example install | |
go mod tidy | |
go run main.go | |
// Set install directory for all go modules |
Electron is tricky to get set up on Windows Subsystem for Linux, but it can work!
Four things needed overall:
- you need WSL2, not WSL1
- you need node, of course, and that part isn't so bad
- you need to
apt install
several dependencies - you need an X Server so it can display the electron GUI over in Windows-land
Setup instructions, in order:
If you're working within the Windows Subsystem for Linux (WSL) and need to open the current directory in Windows Explorer, you can use the following commands. WSL automatically sets the Windows path for you.
explorer.exe .
This command will launch Windows Explorer with the current directory open.