Skip to content

Instantly share code, notes, and snippets.

View RobinBoers's full-sized avatar
curious

Robin RobinBoers

curious
View GitHub Profile
@RobinBoers
RobinBoers / tetris.py
Last active June 16, 2021 19:07
Tetris for the micro:bit
# Import micro:bit modules
from microbit import *
from random import randrange
import music
from collections import OrderedDict
moveTimer = 0
playerMoveSpeed = 2 #higher is slower
fallTimer = 0
@RobinBoers
RobinBoers / stopbit.py
Created July 19, 2021 09:13
Simple script to control a traffic light using a micro:bit and stop:bit
from microbit import *
# Kitronik STOP:bit blocks
# turn each LED on or off individually
def stopBitLight(colour, illuminate):
if colour == "Red":
if illuminate == "On":
pin0.write_digital(1)
elif illuminate == "Off":
pin0.write_digital(0)
@RobinBoers
RobinBoers / line-following.py
Created July 20, 2021 10:19
Line following MicroPython for the micro:bit MOVE Motor
# Add your Python code here. E.g.
from microbit import *
import math
from neopixel import NeoPixel
from time import sleep
import machine
import utime
from music import play,stop,BA_DING
# A module to simplify the driving o the motors on Kitronik :MOVE Motor buggy with micro:bit
@RobinBoers
RobinBoers / remote-car.py
Last active July 21, 2021 08:56
Script for a remote car control using :MOVE motor and another microbit for the micro:bit
# Script for the :MOVE motor
def on_received_value(name, value):
if value == 0:
moveMotorZIP.set_color(Kitronik_Move_Motor.colors(Kitronik_Move_Motor.ZipLedColors.WHITE))
Kitronik_Move_Motor.move(Kitronik_Move_Motor.DriveDirections.FORWARD, speed)
elif value == 1:
moveMotorZIP.set_color(Kitronik_Move_Motor.colors(Kitronik_Move_Motor.ZipLedColors.WHITE))
Kitronik_Move_Motor.move(Kitronik_Move_Motor.DriveDirections.REVERSE, speed)
elif value == 2:
@RobinBoers
RobinBoers / config.py
Created September 26, 2021 07:54
Qtile MacOS style config
# Config file for Qtile TWM written by Robijntje.
# This is part of Robijntjes dotfiles. Copy it and do whatever
# the hell you want with it.
# This is my MacOS clone config. Only the look
# is different from the main version. The rest of
# the config is identical to the main config file.
from typing import List # noqa: F401
@RobinBoers
RobinBoers / must-read-blogs.txt
Created December 10, 2021 20:10
List of cool programming blogs I follow :)
https://kornel.ski/pornelski.atom
https://keithjgrant.com/posts/index.xml
https://webdevelopment-en-meer.blogspot.com/feeds/posts/default
https://witblauw.blogspot.com/feeds/posts/default
https://ictoblog.nl/feed
https://pointieststick.com/feed/
https://keithjgrant.com/posts/index.xml
https://www.wiserfirst.com/feed.xml
https://vyshnav.xyz/feed.xml
https://ferd.ca/feed.rss
@RobinBoers
RobinBoers / must-watch-channels.txt
Created December 10, 2021 20:15
List of cool YouTube channels I follow
www.youtube.com/channel/UCLXo7UDZvByw2ixzpQCufnA
www.youtube.com/channel/UCcXUhZB4t3g8EGdYiqwS4Aw
www.youtube.com/channel/UCHnyfMqiRRG1u-2MsSQLbXA
www.youtube.com/channel/UCBa659QWEk1AI4Tg--mrJ2A
www.youtube.com/channel/UCvt0HYxX34vUvqu66HLXeUw
www.youtube.com/channel/UClY084mbGLK_SLlOfgizjow
www.youtube.com/channel/UCQHsMwcGoH1ygyi-pJs5Z8A
www.youtube.com/channel/UC9mvRrl9o7rG65ABsGVvDBw
www.youtube.com/channel/UCY1kMZp36IQSyNx_9h4mpCg
www.youtube.com/channel/UCmtyQOKKmrMVaKuRXz02jbQ
@RobinBoers
RobinBoers / github-theme-notes-up.md
Created January 5, 2022 09:58
GitHub theme for Notes-Up

Notes-Up "GitHub" theme

This is a simple theme to make Notes-Up look like GitHub markdown. Adaptation of sindresorhus/github-markdown-css for Notes-Up.

Installation

  • Open Preferences
  • Click viewer
  • Enter the CSS below in "Global style modifications"
  • Click close
@RobinBoers
RobinBoers / distro-list.md
Created January 16, 2022 11:41
A list of beginner friendly distros I would recommend to my friends if I had any.

GNOME

For GNOME I picked Fedora because it offers a vanilla GNOME experience and is frequently updated while remaining rock-solid.

Download

elementaryOS

Pantheon, the elementary desktop, is only shipped by the guys over at elementary, so that choice was quickly made.

@RobinBoers
RobinBoers / som.css
Last active June 14, 2022 05:33
Userstyle to clean up somtoday ELO.
/**************************************************************************************************************************\
________ ________ _____ ______ _________ ________ ________ ________ ___ ___ _______ ________
|\ ____\|\ __ \|\ _ \ _ \|\___ ___\\ __ \|\ ___ \|\ __ \ |\ \ / /| / ___ \ |\ __ \
\ \ \___|\ \ \|\ \ \ \\\__\ \ \|___ \ \_\ \ \|\ \ \ \_|\ \ \ \|\ \ \ \ \/ / / /__/|_/ /| \ \ \|\ \
\ \_____ \ \ \\\ \ \ \\|__| \ \ \ \ \ \ \ \\\ \ \ \ \\ \ \ __ \ \ \ / / |__|// / / \ \ \\\ \
\|____|\ \ \ \\\ \ \ \ \ \ \ \ \ \ \ \ \\\ \ \ \_\\ \ \ \ \ \ \/ / / / /_/__ __\ \ \\\ \
____\_\ \ \_______\ \__\ \ \__\ \ \__\ \ \_______\ \_______\ \__\ \__\__/ / / |\________\\__\ \_______\
|\_________\|_______|\|__| \|__| \|__| \|_______|\|_______|\|__|\|__|\___/ / \|_______\|__|\|_______|