Skip to content

Instantly share code, notes, and snippets.

@olikami
olikami / cleanPage.js
Created February 15, 2023 16:45
Clean out Garmin Connect Workouts
for(let i = 1; i <= 25; i+= 1) {
setTimeout(() => {
document.querySelector("div.workouts table tbody tr span.dropdown button").click();
document.querySelector("span.dropdown.open ul li a.delete-workout").click();
document.querySelector("div.modal div.modal-footer a.btn-danger").click();
}, i * 2000);
}
setTimeout(() => {
location.reload();
@olikami
olikami / # gdk-pixbuf - 2019-03-10_13-38-31.txt
Created March 10, 2019 12:41
gdk-pixbuf on Ubuntu 18.10 - Homebrew build logs
Homebrew build logs for gdk-pixbuf on Ubuntu 18.10
Build date: 2019-03-10 13:38:31
@olikami
olikami / About.md
Last active May 17, 2018 20:12
Speed comparison of fibonacci implementations in Python

About this Comparison

What's the difference between memoized and chaching.

Memoized just saves the previous calculations when using a formula recusivley. Caching actually saves the previous results as well, which makes it really quick to caluclate a values that is incresed.

Device

This was run on my really old Lenovo X220.

@olikami
olikami / gallery3.html
Last active February 16, 2018 09:09
Hugo gallery shortcode
<div class="slider">
<ul class="slides">
<li>
{{ $original := .Page.Resources.GetMatch (printf "%s*" (.Get 0 )) }}
{{ .Scratch.Set "image" ($original.Fill "800x400") }}
{{ $image := .Scratch.Get "image" }}
<img src="{{ $image.RelPermalink }}">
</li>
<li>
{{ $original := .Page.Resources.GetMatch (printf "%s*" (.Get 1 )) }}