Skip to content

Instantly share code, notes, and snippets.

View nikicc's full-sized avatar

Niko nikicc

  • Ljubljana, Slovenia
View GitHub Profile
@nikicc
nikicc / sort-commits-for-github
Created October 16, 2020 17:52
Shortcut for reordering commits in GitHub PRs
git rebase "$(git merge-base HEAD master)" -x 'git commit --amend -C HEAD --date="$(date -R)" && sleep 1.05'
@nikicc
nikicc / .screenrc
Created June 24, 2018 19:04
Screen show status bar
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"
@nikicc
nikicc / button image
Last active June 23, 2016 12:38
PyQt Image As Checkbox Button
import sys
from PyQt4 import QtCore
from PyQt4.QtGui import *
def abu():
global button, checked
checked = not checked