Skip to content

Instantly share code, notes, and snippets.

@zezic
zezic / SvgChart.vue
Created July 9, 2018 08:31
Draw and animate SVG with Vue.js and Tween.js
<template lang='pug'>
.svg-chart
button(@click='randomize') Randomize
transition-group(name='list', tag='div')
svg.chart(
v-for='item in list',
:width='width',
:height='height',
:key='item.key'
)
@zezic
zezic / click_enter.py
Created July 20, 2018 14:28
Produce Enter key tap when left mouse button clicked
from pymouse import PyMouseEvent
from pykeyboard import PyKeyboard
class Listener(PyMouseEvent):
def __init__(self):
PyMouseEvent.__init__(self)
self.keyboard = PyKeyboard()
def click(self, x, y, button, press):
@zezic
zezic / Numix Transparent.qss
Created July 12, 2019 20:17
Semi-transparent theme for Albert
/*
* author: <https://github.com/zezic>
* author: <https://github.com/tepf>
*
* Check http://doc.qt.io/qt-5/stylesheet-syntax.html especially the subtopics:
* The Style Sheet Syntax (http://doc.qt.io/qt-5/stylesheet-syntax.html)
* Qt Style Sheets Reference (http://doc.qt.io/qt-5/stylesheet-reference.html)
*/
@zezic
zezic / USAGE.md
Created August 3, 2019 09:57
Text Encoding Test
$ python3 enctest.py
Input Certificate Serial Number:
> 03:4A:72:43:1B:35:86:E7:D1:F9:22:2B:03:F6:9E:15:3E:54
Base64: A0pyQxs1hufR+SIrA/aeFT5U
Base85: 14?p38#RXK(fJ}P1NNR3K2!
@zezic
zezic / bg_watcher.py
Last active December 27, 2019 12:30
Fake chameleon Plank themer and top panel background blur tool
import os
from string import Template
from PIL import Image
from PIL.ImageStat import Stat
from PIL.ImageFilter import GaussianBlur
from PIL import ImageEnhance
from time import sleep
def flat( *nums ):
'Build a tuple of ints from float or integer arguments. Useful because PIL crop and resize require integer points.'
@zezic
zezic / keybase.md
Created January 21, 2020 13:51
keybase.md

Keybase proof

I hereby claim:

  • I am zezic on github.
  • I am zezic (https://keybase.io/zezic) on keybase.
  • I have a public key whose fingerprint is 6E92 D872 6795 67D8 E6C2 FAA8 1201 543B BAE0 C769

To claim this, I am signing this object:

@zezic
zezic / highlight_last_word_diff.py
Created October 22, 2024 12:42
Highlight Last Word Diff for Sublime Text
import sublime
import sublime_plugin
import re
class HighlightLastWordDiffCommand(sublime_plugin.TextCommand):
def run(self, edit):
# Get all lines in the document
view = self.view
lines = view.lines(sublime.Region(0, view.size()))