You might not think you should blog. I think you should.
I like your thoughts! I want to be able to read them!
Here are some other reasons:
You might not think you should blog. I think you should.
I like your thoughts! I want to be able to read them!
Here are some other reasons:
{ | |
"basics": { | |
"name": "Alfie Renn", | |
"label": "Software Engineer", | |
"image": "https://cv.alfierenn.dev/profile-picture.png", | |
"email": "alfie@alfierenn.dev", | |
"phone": "", | |
"url": "https://alifeee.co.uk", | |
"summary": "Hi! I'm Alfie: physics graduate, toki pona speaker, and software engineer. I love to make beautiful things with code (mainly using HTML/CSS/JavaScript and Python), including websites, apps, and graphs. With all my work I create good quality, robust, and well-tested code, as well as powerful automation and well-organised git repositories, empowering collaboration. Do check out my website and GitHub!", | |
"location": { |
Wiring up a Google Form to GitHub is not that difficult with a little bit of Apps Script automation. All you need is a Google account, a GitHub account, and a web browser...
Personal access tokens provide an easy way to interact with the GitHub API without having to mess with OAuth. If you don't already have a personal access token with repo or public_repo access, visit your GitHub settings page and generate a new token.
Be sure to copy your token some place safe and keep it secure. Once generated, you will not be able to view or copy the token again.
#!/bin/bash | |
# make bar chart from $prog, $total, $n_seg as $1 $2 $3 | |
# example: | |
# > ./bar.sh 25 100 12 | |
# ███░░░░░░░░░ | |
awk -v prog=$1 -v TOTAL=$2 -v TOTSEG=$3 'BEGIN { | |
frac = prog / TOTAL; | |
segs = frac * TOTSEG; | |
segs_int = int(sprintf("%.0f", segs)); |
{ | |
"last_modified": "2024-03-25T00:44:15.551843Z", | |
"bookmarks": { | |
"TOP 10 personal websites/blogs": [ | |
{ | |
"title": "Tom Forth's Homepage", | |
"url": "https://www.tomforth.co.uk/", | |
"date_added": "2023-05-29T18:23:46.689000Z", | |
"last_modified": "2023-11-12T22:19:05.160000Z" | |
}, |
#!/bin/bash | |
# script to remove stylesheets, style tags, and inline styles from an HTML file | |
# 1. remove <link rel="stylesheet" ...> | |
# 2. remove <style> ... </style> | |
# 3. remove style="..." attributes | |
# notes: | |
# perl "0777" is so that perl sees newlines as "any character" (so <link> can wrap onto new lines) | |
# "|gms" helps with the same thing. see https://regex101.com/ | |
# example: | |
# ./naked.sh index.html > index-naked.html |