Skip to content

Instantly share code, notes, and snippets.

View timvisee's full-sized avatar
Consuming coffee

Tim Visée timvisee

Consuming coffee
View GitHub Profile
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active April 26, 2024 04:52
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@timvisee
timvisee / my-subreddits.txt
Last active January 16, 2024 03:54
My subreddits
11foot8
18650masterrace
1911
2b2t
3Dprinting
3dshacks
3kliksphilip
45thworldproblems
5September2020
9CB9D65
@timvisee
timvisee / SUBREDDIT_LIST.md
Last active December 22, 2023 02:13
Get a list of subreddits you're subscribed to on reddit. https://timvisee.com/blog/list-export-your-subreddits/

As posted on: https://timvisee.com/blog/list-export-your-subreddits/

Get a list of your subreddits

To obtain a list of your subreddits, do the following:

  • First make sure you're logged in on reddit, on a desktop browser.
  • Then visit reddit.com/subreddits.
  • Then put the following snippet in your browsers address bar, and press Enter.
    Make sure javascript: is included at the beginning, your browser might remove it while copy-pasting for security reasons:

Change log

Features 🗺️

import random
import subprocess
import uuid
from qdrant_client import QdrantClient
from qdrant_client import models
client = QdrantClient(host="127.0.0.1", port=6333)
collection_name = "test"
page_size = 20
@timvisee
timvisee / Cargo.toml
Last active December 6, 2022 15:58
AoC 2022 day06b extra p{1..94}
[package]
name = "day06b"
version = "0.1.0"
authors = ["Tim Visee <3a4fb3964f@sinenomine.email>"]
edition = "2021"
[dependencies]
rayon = "1.6"
[profile.release]
@timvisee
timvisee / Cargo.toml
Last active December 6, 2022 15:11
AoC 2022 day06b extra p94
[package]
name = "day06b"
version = "0.1.0"
authors = ["Tim Visee <3a4fb3964f@sinenomine.email>"]
edition = "2021"
[profile.release]
codegen-units = 1
lto = true
strip = true
@timvisee
timvisee / exchange.php
Last active August 6, 2022 16:59
Live currency exchange script, to retrieve the current exchange rates betwee to currencies, live from the internet.
<?php
/**
* Live currency exchange script.
* This script allows you to retrieve the current currency exchanges, live, from the internet.
*
* This script is developed by Tim Visee, for educational purposes.
* The Yahoo currency exchange API is used to retrieve the live exchange rates.
*
* ---