Skip to content

Instantly share code, notes, and snippets.

View afvanwoudenberg's full-sized avatar

Aswin van Woudenberg afvanwoudenberg

View GitHub Profile
@afvanwoudenberg
afvanwoudenberg / terminal.ipynb
Created February 9, 2024 19:40
Get shell access to the Google Colab runtime on a free Colab plan
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afvanwoudenberg
afvanwoudenberg / mathematicians_birthdays_calendar.ipynb
Created December 25, 2023 23:03
Web scraping Wikipedia to create a mathematicians’ birthdays calendar
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afvanwoudenberg
afvanwoudenberg / word_search_clock.ipynb
Created November 26, 2023 19:15
Generating images to turn a digital photo frame into a clock
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afvanwoudenberg
afvanwoudenberg / soma.ipynb
Created October 19, 2023 20:28
Solving Piet Hein's Soma cube with Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afvanwoudenberg
afvanwoudenberg / chrome_history.ipynb
Created September 2, 2023 15:46
Analyze Chrome browser history using Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afvanwoudenberg
afvanwoudenberg / weaver.pl
Created June 1, 2023 15:37
A Prolog solver for the Weaver (word ladder) puzzle
% A Prolog solver for the Weaver (word ladder) puzzle
% https://wordwormdormdork.com/
:- dynamic goal/1.
weaver(Start, Goal, Solution) :-
retractall(goal(_)),
assert(goal(Goal)),
a_star(Start, Solution).
@afvanwoudenberg
afvanwoudenberg / menace.ipynb
Created May 27, 2023 12:04
A Python implementation of MENACE (Matchbox Educable Noughts and Crosses Engine)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afvanwoudenberg
afvanwoudenberg / fun_logger.py
Created May 16, 2023 14:32
A Python decorator and custom logging handler to create call graphs
# fun_logger.py
# For details see: https://www.aswinvanwoudenberg.com/posts/call-me-maybe/
import logging
import graphviz
from logging import StreamHandler
from functools import wraps, partial
def fun_logger(func=None, *, logging=logging, indent=' ', exit=False):
if func is None:
@afvanwoudenberg
afvanwoudenberg / time-lapse.ipynb
Created May 6, 2023 19:52
Create a time-lapse video from a collection of selfies
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afvanwoudenberg
afvanwoudenberg / blocbirds.ipynb
Created May 3, 2023 12:47
Create your own BLOCBIRDS-style artwork (https://blocbirds.nl/)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.