Skip to content

Instantly share code, notes, and snippets.

View rickybassom's full-sized avatar

Ricky Bassom rickybassom

View GitHub Profile
@balloy
balloy / watchdog_persistent_observer.py
Last active August 11, 2022 16:48 — forked from serge-kilimoff/watchdog_persistent_observer.py
Persistent watchdog observer. When watchdog re-start, check if new/modify/delete/etc.. files or directories since the last launch, and send events for suscribers handlers.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is forked from https://gist.github.com/serge-kilimoff/8163233
Supports Python 3 and fixed a few spell errors.
"""
"""
Subclassing Observer for saving states of folders, and load this states at the next observation.
@rabssm
rabssm / closestpoint3dlines.py
Last active May 18, 2021 14:20
Find a point that is mutually closest to two or more 3d lines in a least-squares sense. Python code.
# Find a point that is mutually closest to two or more 3d lines in a least-squares sense.
# Based on: https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection#In_three_dimensions_2
import numpy as np
# Create two or more 3d lines in the form of a matrix [[x1,y1,z1], [x2,y2,z2]]
lines = []
lines.append(np.asmatrix([[ 4, 0,0], [1,1,4]]))
lines.append(np.asmatrix([[-3,-2,0], [4,2,3]]))
lines.append(np.asmatrix([[ 0, 0,0], [2,2,6]]))
lines.append(np.asmatrix([[ 1, 2,0], [2,0,6]]))
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active July 20, 2024 16:44
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\