#python

Custom Sorting in Python

Published • 4 min read

I recently found myself needing to sort a list by cardinal directions. Here's a super simple solution to do custom sorting in Python.

JavaScript Search Token Highlighter

Published • 6 min read

Building a search results page? Thinking about highlighting the search terms so they standout? Here's how I did it using vanilla JavaScript.

Trying Out Things 3

Published • 10 min read

I decided to switch my to-do list to Things 3 and needed to move a lot of to-dos over from Todoist. Seemed like a great project to explore their API and save myself a bunch of copying and pasting.

Python Type Hints and Fancy Banners

Published • 7 min read

While leaning about Python Type Hints, I wrote a nifty little function to display cool banners and help remind me about the concepts of type hinting.

RSS Feeds Using Flask-FlatPages

Updated • 5 min read

Need to generate a valid RSS feed for your Flask website? Using Flask-FlatPages? Well, it's really quite simple.

Unpacking Tuples in a For Loop

Published • 2 min read

Have you ever noticed as you learn more and more of a programming language, you often forgo the basics for a more complex solution? Well, today I was reminded of the KISS principle when I needed to unpack a bunch of tuples.