Skip to content

Instantly share code, notes, and snippets.

View JorenSix's full-sized avatar

Joren Six JorenSix

View GitHub Profile
JorenSix /
Created February 19, 2024 14:13
Image matching using the lightglue library for keypoint detection in images and matching of keypoints.
from pathlib import Path
import torch
import glob
from lightglue import LightGlue, SuperPoint, DISK, SIFT, ALIKED, DoGHardNet
from lightglue.utils import load_image, rbd
from lightglue import viz2d
JorenSix / post_to_fb_page.rb
Created May 9, 2019 06:52
Automatically post status update to facebook page
require 'mechanize'
def facebook_page_status_update(email,password,page_name,message)
agent =
agent.user_agent_alias = 'Android'
#go to the login page
login_page = agent.get('')
JorenSix / web-audio-fetch-stream.js
Created February 20, 2018 19:55 — forked from revolunet/web-audio-fetch-stream.js
Web Audio streaming with fetch API
// loads remote file using fetch() streams and "pipe" it to webaudio API
// remote file must have CORS enabled if on another domain
// mostly from
function appendBuffer( buffer1, buffer2 ) {
var tmp = new Uint8Array( buffer1.byteLength + buffer2.byteLength );
tmp.set( new Uint8Array( buffer1 ), 0 );
JorenSix / relay_driver.rb
Created March 17, 2016 09:45
Ruby driver for an 8 Channel Relay Module USB type USB-RLY08 by Devantech. The driver needs the serialport gem installed. You will probably need to change the port name to the correct name.
require 'rubygems'
require 'serialport'
class RelayDriver
def initialize
#params for serial port
port_str = "/dev/tty.usbmodem00024841" #may be different for you
baud_rate = 19200
data_bits = 8
JorenSix / spotify_music_quiz.rb
Created February 22, 2013 15:48
A Spotify music quiz, implemented in ruby.
# Implements a simple music quiz.
# With a list of correct
# answers and a button, attached via serial. When the button
# is pressed, the meta data of the currently playing song in
# Spotify is checked, and if the currently playing song is
# in the list of correct songs a 'winner' sound file is played
# using aplay. If the currenlty playing song is not correct, a
JorenSix /
Created February 22, 2013 12:30
Python script to fetch the meta data of the currently playing track in Spotify. Tested on Ubuntu.
# Python script to fetch the meta data of the currently playing
# track in Spotify. This is tested on Ubuntu.
import dbus
bus = dbus.SessionBus()
JorenSix / now_playing.osascript
Last active March 20, 2018 16:57
This osascript gets and returns the meta data of the track that is currently playing in Spotify on Mac OS X.
# now_playing.osascript
# Osascript to fetch the meta data of the currently playing
# track in Spotify. This works only on Mac OS X.
tell application "System Events"
set myList to (name of every process)
end tell