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#",
@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='')
<!DOCTYPE html>
<html>
<body>
<h1>Hello World</h1>
<p>I'm hosted with GitHub Pages.</p>
</body>
</html>
#AvengersEndgame a4 a4leak a4leaked a4spoiler a4spoilers Ameenah Kaplan ant man Ant Man ant-man Anthony Mackie antman Ariana Greenblatt Aunt May avengers Avengers Avengers 4 Avengers: Endgame avengersendgame AvengersEndgame avengersendgameleak avengersendgameleaked avengersendgamespoiler avengersendgamespoilers avispa Ayo Benedict Cumberbatch Benedict Wong Benicio Del Toro black panther Black Panther black widow Black Widow box office Box Office Bradley Cooper Brie Larson Bruce Banner bucky Bucky Barnes Cap capitán america capitana marvel Captain captain america Captain America captain marvel carol danvers Carol Danvers Carrie Coon Chadwick Boseman characters Chris Evans Chris Hemsworth Chris Pratt Clark Gregg Collector Corvus Glaive Cull Obsidian Danai Gurira Dave Bautista doctor strange Doctor Strange Don Cheadle Dr Strange Drax Ebony Maw Eitri Elizabeth Olsen end game End Game End-game End-Game endgame Endgame endgameleak endgameleaked endgamespoiler endgamespoilers Ethan Dizon Falcon far from home Far Fro
// At the bottom of override func didMove()
// add this below the tapGestureRecognizer
let leftSwipe = UISwipeGestureRecognizer(target: self, action: #selector(handleSwipes(_:)))
let rightSwipe = UISwipeGestureRecognizer(target: self, action: #selector(handleSwipes(_:)))
leftSwipe.direction = .left
rightSwipe.direction = .right
view.addGestureRecognizer(leftSwipe)
view.addGestureRecognizer(rightSwipe)
}
@objc func handleSwipes(_ sender:UISwipeGestureRecognizer) {
@ohiofi
ohiofi / pygamewall.py
Last active March 8, 2019 19:07
Wall class for Pygame Zero
"""
Mr. Riley's PygameWall class v1.20190308
3/8/2019
How to use this Wall class
1) from pygamewall import *
2) Instanciate a wall by passing x, y, width, and height. Like this:
mywall = Wall(400,400,100,10)
3) Draw the wall inside of the draw() loop. Like this:
mywall.draw(screen)
4) Use the touching method to determine if an actor is touching the wall.
public class StoreTester
{
public static void main(String[] args)
{
//1. First Constructor and toString
Store store1 = new Store("grocery");
System.out.println("1. \nOUTPUT: Grocery store is open from 10am to 9pm");
System.out.println("YOUR OUTPUT: "+store1);
System.out.println();