Skip to content

Instantly share code, notes, and snippets.

View limsammy's full-sized avatar

Sam Lim limsammy

View GitHub Profile
@limsammy
limsammy / paradiso-terms-of-service.md
Created August 14, 2026 01:14
Paradiso Discord Bot — Terms of Service

Paradiso — Terms of Service

Effective date: August 13, 2026

These Terms of Service ("Terms") govern your use of Paradiso, a Discord music bot (the "Bot"), operated by an individual developer (the "Operator"). Contact: sam@typhonic.io.

By adding the Bot to a Discord server or using its commands, you agree to these Terms. If you do not agree, remove the Bot and discontinue use.

1. The Service

@limsammy
limsammy / paradiso-privacy-policy.md
Created August 14, 2026 01:14
Paradiso Discord Bot — Privacy Policy

Paradiso — Privacy Policy

Effective date: August 13, 2026

This Privacy Policy describes what data Paradiso, a Discord music bot (the "Bot"), collects and how it is used. The Bot is operated by an individual developer (the "Operator"). Contact: sam@typhonic.io.

1. What We Collect

The Bot stores the minimum data needed to operate:

@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"
[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 <sam@supercoolcorp.test>"]
[tool.poetry.dependencies]
python = ">=3.9,<3.11"
Django = "^3.2.9"
django-bootstrap4 = "^21.1"
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Plotly.js
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
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
# 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)
fortune -a -o | cowsay -f vader
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:~/.composer/vendor/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/sam/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@limsammy
limsammy / dtr_mod3.gist
Created November 27, 2017 22:51
DTR Mod 3
Developers: Sam Lim, Adrian Lara
Means of Contact: Slack
Work Flow: Agile workflow with code reviews on PR's
Project Management: Waffle.io, PR's, Rebase
Availbality: Preferrably not early