Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |