python
Automatic tag pages for Jekyll on Github Pages
The extremely useful jekyll-tagging plugin doesn’t work on github pages, but it is still possible to automatically generate tag clouds and tag pages, just slightly more difficult.
Answering common code interview questions in Python 3
It’s fairly common practice in interviews for the interviewee to be asked to present their answer to a reasonably simple coding problem in the language of their choice. As a result it can be good practice to work through some of these in preparation. The list I’m using is from Simpl¡Learn’s article Top 40 Coding Interview Questions You Should Know.
Deploying a React and Flask project on Ubuntu 18.04 using Nginx and uWSGI
A walkthrough of the process of setting up a React and Flask project on Ubuntu 18.04 using Nginx and uWSGIWriting a personal statement
Writing a personal statement for an application can be tricky, especially if all you have initially is some take on “because it’s awesome!”. To get past that first hurdle it can be tempting to just write that for the required length so, lets do it:
Using Google Fonts With WeasyPrint - Two Ways
I needed to generate a pdf and I was looking for a way to do so that didn’t involve me writing raw Latex (I use Pandoc for a reason k). So today, for the first time I tried using WeasyPrint in order to programatically generate pdf’s from Jinja2 templates.
Manipulating the clipboard on Mac using python3
Accessing and manipulating the contents of the Mac clipboard using Python3.Silly Strings: Passwords in Python
I’ve been playing with Flask a lot in the last few days. If you’re going to do anything with sessions in Flask you first need to generate a secret key which you use to cryptographically sign the session. I got a tad bored of mashing the keyboard to generate them so I wrote a short script to do it for me:
Python battleship
For the lovely ladies on my short Introduction to Programming course here is an answer to the code challenges at the end of the course, this is not the only answer, nor is it necessarily the best answer but it does work and has been thoroughly tested. The challenges were to add the following functionality to your program: