Skip to content

Instantly share code, notes, and snippets.

View kristjanvariksoo's full-sized avatar

Kristjan Variksoo kristjanvariksoo

  • Estonian Defence Forces
  • Estonia
View GitHub Profile
@kristjanvariksoo
kristjanvariksoo / skript.js
Created August 18, 2023 08:40
UT Moodle kahe õppekava ainete võrdlemine
t1 = `
logo
MINU ASJAD
Töölaud
Teated
Minu tunniplaan
Õppetulemused
Valikud õppekavas
Registreeringud
Avaldused

Keybase proof

I hereby claim:

To claim this, I am signing this object:

import requests, json, multiprocessing
GETINFO = False
def get_best_playlist(m3ufile):
maxquality = 0
bestplaylist = ""
lines = m3ufile.split("\n")
n = 0
@kristjanvariksoo
kristjanvariksoo / SkypeMusic.py
Created December 29, 2016 07:48
Play music mixed together with your microphone through skype. Linux only. Uses pulseaudio.
from pulsectl import Pulse
import os
pulse = Pulse("volume-increaser")
N = 0
for sink in pulse.sink_list():
print str(N) + " - " + sink.description + " - " + sink.name
N += 1
mainsink = pulse.sink_list()[int(raw_input("Select your preferred sink... "))]
print "Selected sink: " + str(mainsink)
#include <PID_v1.h>
#include <Servo.h>
#include <NewPing.h>
//Define Variables we'll be connecting to
double Setpoint, Input, Output;
//Specify the links and initial tuning parameters
PID myPID(&Input, &Output, &Setpoint,2,5,1, DIRECT);