Skip to content

Instantly share code, notes, and snippets.

View lemonase's full-sized avatar
🍄

James Dixon lemonase

🍄
View GitHub Profile
@lemonase
lemonase / print_days_of_year.py
Created May 30, 2025 19:54
Print out the days of the year (incrementing and decrementing)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime, timedelta
# a function to print out all days of the current year
# in CSV format (for importing to a spreadsheet)
# has bool flag for incrementing and decrementing
def print_days_of_year(incrementing_days=True):
document.body.style.background = 'pink';
@lemonase
lemonase / iso-date.md
Last active April 12, 2025 15:26
Getting ISO Dates
#Requires AutoHotkey v2.0
; Media Keys for AutoHotkey version 2
^!Insert::Send "{Media_Play_Pause}"
^!Home::Send "{Media_Prev}"
^!End::Send "{Media_Next}"
^!PgUp::Send "{Volume_Up}"
^!PgDn::Send "{Volume_Down}"
@lemonase
lemonase / .zshrc
Created August 10, 2022 10:13
my zsh git prompt
git_prompt() {
BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/*\(.*\)/\1/')
STATUS="$(git status 2> /dev/null)"
if [[ "$?" -ne 0 ]]; then
return
fi
if [ ! -z $BRANCH ]; then
printf "%s" "%F{reset}%F{yellow}$BRANCH"
@lemonase
lemonase / index.html
Created March 2, 2021 19:41
A link that crashes Windows 10 (fixed)
<!-- https://www.tomsguide.com/news/win10-browser-filepath-bsod -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kill Windows 10</title>
</head>
<style>