Skip to content

Instantly share code, notes, and snippets.

@frunkad
frunkad / control.py
Created October 3, 2020 06:26
Arduino - Python Duplex Communication
import serial
port = "/home/frunkad/projects/cansat/virtual-hind1"
# Uncomment the next line
# port = "COM1"
with serial.Serial(port, 9600, timeout=None) as ser:
while(True):
l = ser.readline()
@frunkad
frunkad / bookmark.js
Last active October 15, 2020 16:27
Quickfeedback 2.0
javascript:(function(){$("div.stars:not(.ng-hide) > .stars > span.stars > input.yn--1").click();$("div.stars:not(.ng-hide) > .stars > span > label.star.star-1").click();var c = prompt("What to fill in input boxes? (Use different each time)");$("div.stars:not(.ng-hide) > textarea").val(c);setTimeout(() => {$("form button.btn.btn-primary").click()}, 1000)})();
@frunkad
frunkad / tmux.conf
Created May 12, 2024 15:11 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000