Skip to content

Instantly share code, notes, and snippets.

Create a series of 100 short dialogs in Cebuano, designed for absolute beginner learners.
Characters and context:
- two characters: a man named Gabriel and a woman named Sofia.
- they meet repeatedly in different everyday situations.
- every dialog must cover everyday topics.
Dialog structure:
- each dialog must contain exactly 12 lines.
@bemitc
bemitc / ira.py
Last active September 21, 2025 11:48
#!/usr/bin/python3
import sys
# Simple script to estimate how much of your early ira withdrawl
# will be left after taxes. It uses 2025 breakpoints from the following
# web page: https://www.usbank.com/wealth-management/financial-perspectives/financial-planning/tax-brackets.html
#
# State tax is based on a flat 5.49% tax
# and a single standard deduction is used
@bemitc
bemitc / ceb_aislop.txt
Last active September 26, 2025 06:52
cebuano prompt based on Luca Lampariello'a Your Vocabulary Revolution Webinar
chatgpt prompt based on the prompt in the video Your Vocabulary Revolution Webinar but adapted for cebuano.
Create a series of 100 short dialogs in Cebuano, designed for absolute beginner learners.
Characters and context:
- two characters: a man named Gabriel and a woman named Sofia.
- they meet repeatedly in different everyday situations.
- every dialog must cover everyday topics.

📝 English Verb Tense Chart — Verb: "Write"

📚 Aspect Descriptions

  • Simple: Describes general facts, habits, or completed actions without focusing on duration.
  • Perfect: Describes completed actions in relation to another time or action.
  • Progressive: Describes actions that are or were ongoing over a period of time.
  • Perfect Progressive: Describes ongoing actions that were happening over time and are connected to another time point.

@bemitc
bemitc / vpw.py
Last active July 1, 2025 10:06
Variable percentage withdrawal
#!/usr/bin/env python3
def pmt(rate, nper, pv, fv=0, when=0):
if rate == 0:
return -(pv + fv) / nper
factor = (1 + rate) ** nper
return -(rate * (pv * factor + fv)) / ((1 + rate * when) * (factor - 1))
def getVpw(port_eq, age):
# Importing the libraries
from bs4 import BeautifulSoup
import requests
import sys
import re
import argparse
import os
import csv
# Function to generate cards using the given html page
@bemitc
bemitc / stage1.lua
Last active February 17, 2022 01:11
-- almost all of this is from Ben Kerman's sub-pause script - https://github.com/Ben-Kerman/mpv-sub-scripts/blob/master/sub-pause.lua
-- I just made some minor changes so visibility of subtitles is determined by a hotkey (e like languagereactor) and implemented
-- a credit system so you can only access a certain number of subtitles per show (default 10 per refold roadmap example)
--
-- This is only designed for use in stage 1.
-- feel free to modify and/or redistribute as long as you give credit to the original creator; © 2022 Ben Kerman
local cfg = {
default_start = false,
// ==UserScript==
// @name animelon-subtitle-downloader
// @namespace http://tampermonkey.net/
// @version 0.1
// @description download animelon subtitles
// @author mescyn#5794
// @match https://animelon.com/video/*
// @grant unsafeWindow
// @grant GM_registerMenuCommand
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/FileSaver.min.js
@bemitc
bemitc / getpositions.py
Last active December 9, 2021 16:17
count unique positions in a pgn file
#!/usr/bin/env python3
import sys
import chess.pgn
positions = []
class UniqPositionsVisitor(chess.pgn.BaseVisitor):
def visit_board(self, board):
if board.fen() not in positions:
#!/usr/bin/env python3
# simple script to produce a csv to import into anki to incorporate spaced repetition for chessking apps
# this one is for ct-art 4.0 (1200-2400) organized by difficulty
#
# it's based on the webapp, which I assume fully matches the mobile apps
back = "\"If you made any incorrect moves, fail card. Otherwise pass. Always fully calculate full variations without moving pieces.\""
tbl = [
[ "10.1", 26],