Skip to content

Instantly share code, notes, and snippets.

import panel as pn
script = """
<script>
function querySelectorDeep(selector, rootNode=document.body) {
const arr = []
const traverser = node => {
// 1. decline all nodes that are not elements
if(node.nodeType !== Node.ELEMENT_NODE) {
@Adam-D-Lewis
Adam-D-Lewis / voice_type.py
Last active June 19, 2023 16:18
Convert voice to typed text output
# POC Type with your voice script
# You may also need to install the additional dependencies: portaudio flac
from pathlib import Path
import speech_recognition as sr
import pyaudio
from pynput.keyboard import Controller
from threading import Thread
import wave
@Adam-D-Lewis
Adam-D-Lewis / example_usage
Created March 23, 2021 05:10 — forked from tgarc/example_usage
Jekyll IPython notebook converter
ipython nbconvert --to markdown <notebook>.ipynb --config jekyll.py