This file contains 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
# To learn more about how to use Nix to configure your environment | |
# see: https://developers.google.com/idx/guides/customize-idx-env | |
{ pkgs, ... }: { | |
# Which nixpkgs channel to use. | |
channel = "stable-23.11"; # or "unstable" | |
# Use https://search.nixos.org/packages to find packages | |
packages = [ | |
# pkgs.go | |
pkgs.python311 | |
pkgs.python311Packages.pip |
This file contains 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
set -o vi |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
[ | |
// ACTIONS | |
{ | |
"key": "alt+a", | |
"command": "workbench.action.showAllSymbols" | |
}, | |
{ | |
"key": "alt+b", | |
"command": "workbench.action.navigateBack" | |
}, |
This file contains 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
"""Declare User-Defined Functions (UDF) for SQLite databases.""" | |
# IMPORTS | |
import math | |
import typing as T | |
# CLASSES | |
This file contains 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
"""Implement custom logics over SQLAlchemy SQL engines. | |
SQLite Extensions: https://github.com/nalgeon/sqlean | |
Reference: https://docs.sqlalchemy.org/en/14/core/engines.html | |
""" | |
# IMPORTS | |
import sys | |
import sqlite3 |
This file contains 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
"""Manage the Command-Line Interface (CLI) of the project.""" | |
# IMPORTS | |
import typing as T | |
import typer | |
# CONFIGS |
This file contains 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
"""Start a simple Gradio application.""" | |
# IMPORTS | |
import gradio as gr | |
# CONFIGS | |
TITLE = "Gradio App" | |
ARTICLE = """ |
This file contains 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
"""Declare fixtures for SQLAlchemy (session and engine).""" | |
# IMPORTS | |
import sqlalchemy as sql | |
from sqlalchemy import orm | |
from project import models # TODO | |
# FIXTURES |
This file contains 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
" PLUGINS | |
set exchange | |
set surround | |
set commentary | |
set visualbell | |
set noerrorbells | |
set textobj-entire | |
set highlightedyank | |
set multiple-cursors | |
set ReplaceWithRegister |