Skip to content

Instantly share code, notes, and snippets.

View limsammy's full-sized avatar

Sam Lim limsammy

View GitHub Profile
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
fi
# Initializes Oh My Zsh
# add a function path
fpath=($ZSH/functions $ZSH/completions $fpath)
from bs4 import BeautifulSoup
import re
from urllib.request import *
import urllib.request
import argparse
import requests
import os
import cv2
from imutils import paths
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Plotly.js
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
[tool.poetry]
name = "my-super-cool-app"
version = "4.5.3"
description = "SuperCoolCorp end-user interface to access project camera feeds, view and download static reports, and access Operational Dashboard"
authors = ["Sam Lim <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.9,<3.11"
Django = "^3.2.9"
django-bootstrap4 = "^21.1"
@limsammy
limsammy / logger_util.py
Created June 7, 2024 06:53
My preferred way to log python projects. Throw it in a app/utils, app/helpers, etc. and import it from any module you want to log.
import pathlib
import logging
import sys
from logging.handlers import TimedRotatingFileHandler
FORMATTER = logging.Formatter("%(levelname)s | %(asctime)s | %(name)s | %(message)s")
LOG_FILE = "logs/app.log"