To use in dev environments
- after
python manage.py shell
from django.contrib.auth.models import User
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
// path/to/whatever does not exist | |
} | |
if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
// path/to/whatever exists | |
} |
const main = async () => { | |
const context = new AudioContext(); | |
const microphone = await navigator.mediaDevices | |
.getUserMedia({ | |
audio: true | |
}) | |
const source = context.createMediaStreamSource(microphone); |
List available keys xmodmap -pk
Find key numbers, for my computer it's:
112 Prior <-> 110 Home
117 Next <-> 115 End