Skip to content

Instantly share code, notes, and snippets.

View xPapla's full-sized avatar
💭
Who wants a muffin?

Michał Papliński xPapla

💭
Who wants a muffin?
View GitHub Profile
@xPapla
xPapla / download-meet-backgrounds.js
Created April 21, 2022 10:13
Download all custom backgrounds from google meet
const db = await new Promise((resolve, reject) => {
const request = window.indexedDB.open("meet_fx_db");
request.onerror = event => {
reject("req fail");
};
request.onsuccess = event => {
resolve(event.target.result);
};
});
@xPapla
xPapla / rearct-native-app-in-wsl2.md
Created June 8, 2020 13:44 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2
@xPapla
xPapla / recursion.py
Last active March 17, 2019 12:41
Turbo recursion, tail call optimization https://code.activestate.com/recipes/474088/
class TailRecurseException(BaseException):
def __init__(self, args, kwargs):
self.args = args
self.kwargs = kwargs
def tail_call_optimized(g):
"""
This function decorates a function with tail call
optimization. It does this by throwing an exception