Skip to content

Instantly share code, notes, and snippets.

View piotr-rudnik's full-sized avatar

Piotr Rudnik piotr-rudnik

View GitHub Profile
@piotr-rudnik
piotr-rudnik / gist:1c4451d582b9ce133db7e7e83352fb73
Created April 5, 2021 19:52
Spotify almost automatic liric finder
import dbus
import os
from datetime import timedelta
def get_spotify_artist_title():
"""
Get the current song metadatas (artist - title)
"""
bus = dbus.SessionBus()
__bus = bus.get_object(
set nocompatible " be iMproved, required
filetype off " required
:command! -nargs=1 Silent execute ':silent !'.<q-args> | execute ':redraw!'
map <F1> <esc>:NERDTreeToggle<CR> O <S-Right>
map <F2> <ESC>:CommandT .<CR>
map <F3> <esc>:CommandTFlush <Enter> :NERDTreeFind <Enter><CR>
imap <F5> <Esc>:Silent echo 1 > /tmp/watcher <CR>
:imap <F9> <Esc><c-y>,i
<style type='text/css'>
td {
text-align: left;
/*float: left;*/
}
.wrapper {
position: relative;
package hahahaha;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;