we will build an index for an academic book . attached is an excel with the terms
follow this guideline between the three ### lines
INTRODUCTION: WORKING WITH T&F
| $condaenvs = (conda env list | Out-String) -split "`n" | |
| foreach ($condaenv in $condaenvs) { | |
| $name = $condaenv.Split(' ')[0] | |
| if ($name -ne "" -and $name -ne "#") { | |
| Write-Output "================================================================" | |
| Write-Output "Environment: $name" | |
| Write-Output "`nChecking for Jupyter:" | |
| & cmd /c "call activate $name && jupyter --version" |
| # an LLM attempt at an https://noisio.de/boards/levitation-oscillator | |
| import streamlit as st | |
| import numpy as np | |
| from pydub import AudioSegment | |
| from pydub.playback import play | |
| import tempfile | |
| def generate_sine_wave(frequency, amplitude, phase, duration, sample_rate): | |
| t = np.linspace(0, duration, int(sample_rate * duration), endpoint=False) |
| import streamlit as st | |
| import json | |
| import base64 | |
| import requests | |
| from PIL import Image | |
| import os, io | |
| output_folder = "../output" | |
| if not os.path.exists(output_folder): |
| from bs4 import BeautifulSoup | |
| import requests | |
| import re | |
| import urllib2 | |
| import os | |
| import argparse | |
| import sys | |
| import json | |
| # adapted from http://stackoverflow.com/questions/20716842/python-download-images-from-google-image-search |
| # sudo apt install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 | |
| # wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh | |
| # bash /tmp/https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh | |
| # conda create --name opencv -c conda-forge opencv | |
| # conda activate opencv | |
| # pip install opencv-contrib-python | |
| # python testSource.py | |
| # ['FFMPEG', 'GSTREAMER', 'INTEL_MFX', 'MSMF', 'V4L2', 'CV_IMAGES', 'CV_MJPEG', 'UEYE'] |
| from __future__ import division | |
| import time | |
| import Adafruit_PCA9685 | |
| from pyueye import ueye | |
| import ctypes | |
| import datetime | |
| pwm = Adafruit_PCA9685.PCA9685(address = 0x40) #1st | |
| pwm1 = Adafruit_PCA9685.PCA9685(address = 0x41) #2nd |
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| # extract YouTube videoids from html | |
| import re | |
| import json | |
| import urllib2 | |
| from BeautifulSoup import BeautifulSoup | |
| def get_videoids(url): |