Skip to content

Instantly share code, notes, and snippets.

@Romern
Romern / snake.c
Last active April 8, 2018 13:57
Snake written for Arduino with tiny screen
//SNAKE
#include "lcd.h"
#include "util.h"
#include "os_input.h"
#include "os_core.h"
#include "os_scheduler.h"
#include "os_memory.h"
#include "keyb_processor.h"
@Romern
Romern / slackhidesidebar.user.js
Created March 30, 2018 10:03
If you use only one channel in slack or your window is narrow, you may want to hide Slacks sidebar.
// ==UserScript==
// @name Slack: Hide sidebar
// @namespace http://userstyles.org
// @description Slack doesn't support narrow windows that good. This hides the sidebar.
// @author Roman Karwacik
// @run-at document-start
// @match https://*.slack.com/*
// @version 1
// ==/UserScript==
(function() {var css = [
@Romern
Romern / telegramlayoutunrestricter.user.js
Last active November 4, 2018 12:25
Telegram has a very stupid restricted layout. This userscript removes all width restrictions. Also works with rambox.
// ==UserScript==
// @name Telegram - Full Sized Windows
// @namespace http://userstyles.org
// @description Telegram has a very stupid restricted layout. This removes all width restrictions
// @author Roman Karwacik
// @run-at document-idle
// @match https://web.telegram.org/*
// @version 1
// ==/UserScript==
(function() {
@Romern
Romern / LICENSE
Last active August 7, 2018 18:08
Latex Aufgaben Template slightly modified https://git.rwth-aachen.de/kevin.meder/LaTeX_Templates
MIT License
Copyright (c) 2017 Nino van der Linden, Kevin Meder
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
0xf9133cb0ccc6e75aab5a427ccbc2edc7b308a010
@Romern
Romern / bar.sh
Last active April 11, 2017 10:01 — forked from csssuf/bar.sh
Adds now playing indicator from spotify to i3status. Better to use playerctl and i3blocks, but it works
#!/bin/bash
i3status | while :
do
read line
dir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
spotify_status=$(dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus' | tail -n1 | cut -d'"' -f2 | sed -e 's/[\/&]/\\&/g')
spotify_artist=$(dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | awk -f ${dir}/spotify_song.awk | head -n 1 | cut -d':' -f2 | sed -e 's/[\/&]/\\&/g')
spotify_song=$(dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | awk -f ${dir}/spotify_song.awk | tail -n 1 | cut -d':' -f2 | sed -e 's/[\/&]/\\&/g')