Skip to content

Instantly share code, notes, and snippets.

View BYK's full-sized avatar
🔦
Helping engineers help themselves help us all

Burak Yigit Kaya BYK

🔦
Helping engineers help themselves help us all
View GitHub Profile
@BYK
BYK / keybase.md
Created June 16, 2016 12:10
Verifying myself on Keybase

Keybase proof

I hereby claim:

  • I am BYK on github.
  • I am byk (https://keybase.io/byk) on keybase.
  • I have a public key whose fingerprint is 70DB C4D9 5802 6B46 032E AB75 A17E E621 C962 DE46

To claim this, I am signing this object:

@BYK
BYK / blogger-to-wordpress.py
Last active August 21, 2016 16:29 — forked from fajran/blogger-to-wordpress.py
A Blogger's backup file to WordPress' WXR converter.Only tested with posts and comments, and NOT with pages. May not be efficient for huge blogs since the script keep all content in the memory during conversion.Released as public domain.
# Blogger's backup file to WordPress' WXR converter.
#
# Only tested with posts and comments, and NOT with pages.
# May not be efficient for huge blogs since the script keep
# all content in the memory during conversion.
#
# Released as public domain.
#
# Please note that I converted the labels in Blogspot
# as tags in WordPress. I also hardcoded two categories for the
@BYK
BYK / script.js
Created May 20, 2021 08:02
A simple async mutex implementation
let locks = [];
const fn = async () => {
let resolve;
locks.push(new Promise(r => (resolve=r)));
let lock;
while (locks.length > 1 && (lock = locks.shift()))
await lock;
console.log(new Date());
setTimeout(resolve, 1000);