Skip to content

Instantly share code, notes, and snippets.

View filiptronicek's full-sized avatar
🐢
Doing awesome stuff

Filip Troníček filiptronicek

🐢
Doing awesome stuff
View GitHub Profile
@filiptronicek
filiptronicek / conversion.md
Last active October 9, 2020 07:07
Converting from jQuery to vanilla JS
@filiptronicek
filiptronicek / bash-stuff.md
Last active July 30, 2020 18:16
Bash tricks

Bash stuff

  • Ctrl + O - trigger next command in history
  • Ctrl + R - search in history
  • Ctrl + Z - run in background

alias update="sudo apt-get update && sudo apt-get upgrade && sudo apt-get full-upgrade autoremove"

Git stuff

Verbose before commit: git config --global commit.verbose 1

@filiptronicek
filiptronicek / qr.js
Created July 21, 2020 09:35
QR code generator in 5 lines or less
let toConvert = $("#content").val();
function generate(text) { $("#qrcode").html(""); $("#qrcode").qrcode(text);}
if($("#content").val() == "") $("#qrcode").html("");
@filiptronicek
filiptronicek / nehoda.txt
Last active July 15, 2020 15:41
Nehoda API
PN = počet nehod
Š = škody (in K)
TR = Těžce ranění
PVA = Pod Vlivem Alkoholu
NR = 19
LR = lehce zraněných
@filiptronicek
filiptronicek / dark.css
Created June 24, 2020 21:06
Mannoviny Darkmode (WIP)
@media (prefers-color-scheme: dark) {
header, .site-title a {
background: #2a2a2e !important;
color: white !important;
}
}
🗣 Commented on #15139 in gitpod-io/gitpod
🗣 Commented on #15139 in gitpod-io/gitpod
💪 Opened PR #15165 in gitpod-io/gitpod
💪 Opened PR #15164 in gitpod-io/gitpod
🎉 Merged PR #655 in open-vsx/publish-extensions
🏆 1,774 Contributions in year 2020
📦 Used 286 MB in GitHub's Storage
📜 28 Public Gists
🔑 2 Public Keys
💼 Opted to Hire
import subprocess as s
import sys
import time
delay = 30
def rpt()
s.call(["python",sys.argv[1])
time.sleep(delay)
rpt()
@filiptronicek
filiptronicek / lazyAF.sh
Last active April 28, 2020 07:19
A commiting script for a friend
echo "What have u done with the gaem?"
read commit
#Animation
spinner() {
local i sp n
sp='/-\|'
n=${#sp}
printf ' '