Skip to content

Instantly share code, notes, and snippets.

View listenrightmeow's full-sized avatar
🦍

Mike Dyer listenrightmeow

🦍
View GitHub Profile
x = setInterval(function(){
--w >= 0 ? console.log([w / 86400, (w / 3600) % 24, (w / 60) % 60, w % 60].map(function(n){
return n < 10 ? '0' + ~~n : ~~n
}).join(':')) : clearInterval(x);
}, [1e3, w = 10][0]);
@listenrightmeow
listenrightmeow / .gitconfig
Created July 19, 2023 23:17
Push history-less/empty branch to origin
[alias]
empty = "!sh -c 'git switch --orphan $0 && git commit --allow-empty -m \"empty commit\" && git rebase --onto master $0 && git push -u origin $0'"