Skip to content

Instantly share code, notes, and snippets.

View amelandri's full-sized avatar
💻
Working

Alessandro Melandri amelandri

💻
Working
View GitHub Profile
@amelandri
amelandri / journalcleanup.py
Last active February 17, 2024 11:19
hledger journal cleanup script
inputFile = 'input.journal'
outputFile = 'output.journal'
alignColumn = 100
decimalSeparator = ','
addMissingDecimals = True
with open(inputFile, 'r') as file_input, open(outputFile, 'w') as file_output:
for line in file_input:
if line.strip().startswith(("assets:", "expenses:", "revenues:", "liabilities:")):
account, amount_comment = line.rsplit(' ', 1)
@amelandri
amelandri / notice.md
Last active May 18, 2022 08:18
Mastodon Custom CSS
@amelandri
amelandri / reorderNotes.py
Last active August 31, 2021 16:34
This code is outdated, please see https://github.com/amelandri/NotableUtilities
"""
*************************************************************************************
This code is outdated, please see https://github.com/amelandri/NotableUtilities
*************************************************************************************
A custom script developed by Alessandro Melandri (@AleMelandri) to reorder Notable (https://notable.md) notes in folders matching Notebooks tags.
@amelandri
amelandri / notablesync.bat
Created October 30, 2019 09:20
Notable auto sync
@echo off
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do (
set day=%%i
set month=%%j
set year=%%k
)
for /f "tokens=1-4 delims=: " %%i in ("%time%") do (
set hour=%%i
@amelandri
amelandri / todoist.css
Last active February 27, 2020 21:34
Todoist custom style sheet
#top_bar_inner {
margin: auto !important;
width: 1160px !important;
padding-left: 0px;
}
#top_icons{
padding-right: 3px
}
.quick_find{
width: 650px;