Skip to content

Instantly share code, notes, and snippets.

Date: Sun, 8 Oct 2023 13:52:00 -0400 (EDT)
https://www.youtube.com/watch?v=mNiqpBNE9ik
[debug] Command-line config: ['--ffmpeg-location', '/usr/local/bin/ffmpeg', '--autonumber-start', '1', '--force-ipv4', '-f', 'best
video[ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/mp4', '--cookies', 'youtube.com_cookies.txt', '--restrict-filenames', '--download
-archive', '/Volumes/WDPassport2/YouTube/download_log.txt', '--max-downloads', '3', '--write-info-json', '--write-thumbnail', '--a
dd-metadata', '--hls-prefer-native', '--verbose', '-o', '/Volumes/WDPassport2/YouTube/%(uploader)s/%(uploader)s.S10E08%(autonumber
)1d.ep_%(title)s [%(id)s].%(ext)s', 'https://www.youtube.com/watch?v=mNiqpBNE9ik']
[debug] Encodings: locale utf-8, fs utf-8, pref utf-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2023.02.17 [a0a7c01]
#!/bin/sh
for each in $(cat /Volumes/WDPassport2/YouTube/channel_list.txt )
do
printf $each
printf "\n"
/opt/local/bin/yt-dlp \
@ohiofi
ohiofi / neopixelDistance.ino
Last active May 27, 2022 13:43
Neopixel strip with HC-SR04 distance sensor
// A basic everyday NeoPixel strip test program.
// NEOPIXEL BEST PRACTICES for most reliable operation:
// - Add 1000 uF CAPACITOR between NeoPixel strip's + and - connections.
// - MINIMIZE WIRING LENGTH between microcontroller board and first pixel.
// - NeoPixel strip's DATA-IN should pass through a 300-500 OHM RESISTOR.
// - AVOID connecting NeoPixels on a LIVE CIRCUIT. If you must, ALWAYS
// connect GROUND (-) first, then +, then data.
// - When using a 3.3V microcontroller with a 5V-powered NeoPixel strip,
// a LOGIC-LEVEL CONVERTER on the data line is STRONGLY RECOMMENDED.
{
"get out|GET OUT|Get out|Get Out|Leave":"#getOut#",
"broke":"You know who else is \"broke\"?#exs#?! \n #images#",
"miss":"You know who else is a \"Miss\"?#exs#?! \n Ms. Sorrenstein... a.k.a. my mom#exs# #images#",
"glitch|Glitch|GLITCH":"You know who else is glitching?#exs#?! \n #images#",
"found a bug|Found A Bug|FOUND A BUG":"You know who else found a bug?#exs#?! \n #images#",
"so close|So Close|SO CLOSE":"You know who else is so close?#exs#?! \n #images#",
"UGH|Ugh":"You know who else says \"ugh\"?#exs#?! \n #images#",
"SIGH|Sigh|sigh":"You know who else says \"sigh\"?#exs#?! \n #images#",
"know who|Know Who|KNOW WHO":"You know whom else wants to know whom? #exs#?! \n #images#",
// STEP ONE: load all 10 of the sounds. For example…
// var soundA = new Audio("https://cdn.glitch.com/475828fb-3da7-4c90-8b9a-8217d8db7a15%2F0.mp3?1509508399315");
var soundA = new Audio(
"https://cdn.glitch.com/475828fb-3da7-4c90-8b9a-8217d8db7a15%2F0.mp3?1509508399315"
);
var soundB;
var soundC;
var soundD;
@ohiofi
ohiofi / pythonTypewriterTextEffect.py
Last active December 16, 2020 13:36
A function that gives a typewriter effect to console text in Python
from time import sleep
import sys
def typewriter(str):
for letter in str:
sleep(0.01)
print(letter, end='')
sys.stdout.flush()
print("\n",end='')
@ohiofi
ohiofi / wall.py
Last active February 7, 2020 19:30
Python Wall class
""" Mr. Riley's Wall class v1.20200207
2/07/20
How to use this Wall class
1) from wall import *
2) Instanciate the screen. Like this:
screen = Screen()
<!DOCTYPE html>
<html>
<body>
<h1>Hello World</h1>
<p>I'm hosted with GitHub Pages.</p>
</body>
</html>
@import url(https://fonts.googleapis.com/css?family=Press+Start+2P);
tw-story {
/* The following changes the text */
color: darkgreen; /* Set text to green or other color */
text-shadow: 1px 1px lightgreen; /* Green text shadow */
font-size: 20px;
font-family: "Press Start 2P","Helvetica","Arial",sans-serif;
# Truth Table Generator
# Complete the seven ### comments so that 50% of the time it
# adds the first option and 50% of the time it adds the second
from random import *
while True:
outputString = "("
# True / False
if random() >= 0.5: