(generated by Gemini 3 Pro, apparently inspired by StreakyCobra's viral HN post)
- Create the Bare Repo for Dotfiles We create a hidden folder (e.g., .cfg or .dotfiles) to hold the database.
git init --bare $HOME/.cfg| /* 1. Define your preferred width in ONE place so they match perfectly */ | |
| body { | |
| --custom-width: 850px; /* Adjust this value to change width for BOTH views */ | |
| } | |
| /* 2. Fix Reading View */ | |
| .markdown-preview-view.is-readable-line-width .markdown-preview-sizer { | |
| max-width: var(--custom-width) !important; | |
| } |
(generated by Gemini 3 Pro, apparently inspired by StreakyCobra's viral HN post)
git init --bare $HOME/.cfg| import gc | |
| import statistics | |
| import time | |
| import typer | |
| import numpy as np | |
| from pprint import pprint | |
| from typing import Annotated, Counter | |
| def mostly_uniform_cover_perms(n: int, k: int, r: int): |
| """implementation of a heap""" | |
| from typing import TypeVar, Generic, List, Optional | |
| T = TypeVar('T') # declare a type variable | |
| class MinHeap(Generic[T]): | |
| """all elements must satisfy | |
| for a parent element, it must be less than both it's children | |
| """ | |
| def __init__(self) -> None: |
| /** copy.cpp - a simple C++ program to copy a file **/ | |
| #include <iostream> | |
| #include <fstream> | |
| void copyFile(std::ifstream& ifile, std::ofstream& ofile); | |
| int main (int argc, char* argv[]) { | |
| /* check for correct number of arguments*/ | |
| if (3 != argc) { |