Skip to content

Instantly share code, notes, and snippets.

View HanClinto's full-sized avatar

Clint Herron HanClinto

View GitHub Profile
@davidhershey
davidhershey / draft_prompt.txt
Created December 4, 2023 22:25
Magic Draft Prompt
In our Magic the Gathering draft, we're on pack 3 pick 1. These are the contents of our pool so far:
-------------------------
Evolving Wilds -- (common)
Brave the Wilds -- {G} (common)
Vampiric Rites -- {B} (uncommon)
Torch the Tower -- {R} (common)
Hopeless Nightmare -- {B} (common)
Harried Spearguard -- {R} (common)
Leaping Ambush -- {G} (common)
Questing Druid // Seek the Beast -- {1}{G} // {1}{R} (rare)

During the past days, this great article by Sam Pruden has been making the rounds around the gamedev community. While the article provides an in-depth analysis, its a bit easy to miss the point and exert the wrong conclusions from it. As such, and in many cases, users unfamiliar with Godot internals have used it points such as following:

  • Godot C# support is inefficient
  • Godot API and binding system is designed around GDScript
  • Godot is not production ready

In this brief article, I will shed a bit more light about how the Godot binding system works and some detail on the Godot

@reneruiz
reneruiz / yt-dlp-examples.md
Last active January 14, 2024 02:38
Using youtube-dl or yt-dlp to download and name files in Plex-like format

⚠️ A lot of this depends on the the metadata that was used by the publisher/uploader. You might be able to modify the metadata to clean output, but I haven't experimented with this.


As Series Name - S00E00.mp4

$ yt-dlp -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" -o '%(series)s - S%(season_number)02dE%(episode_number)02d.%(ext)s' 'https://www.youtube.com/playlist?list={your_list_id_here}'
@RchGrav
RchGrav / setup_neural_net.bat
Last active November 18, 2021 19:31
Setup Neural Net
@echo off
REM Does generate.py exist, if so lets assume all of this script has been ran already and just execute the demo.
if exist %~dp0generate.py goto launch
REM If this script wasn't run in the context needed to install needed components lets prompt the user for their permission to do so.
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
@kylemcdonald
kylemcdonald / Collect Parler Metadata.ipynb
Last active June 27, 2024 04:09
Collect video URLs and GPS data for Parler videos.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mxhmovd
Mxhmovd / cap.py
Created October 22, 2018 20:36
Read Youtube videos with OpenCV without downloading it locally.
#pip install pafy
#sudo pip install --upgrade youtube_dl
import cv2, pafy
url = "https://www.youtube.com/watch______"
video = pafy.new(url)
best = video.getbest(preftype="webm")
#documentation: https://pypi.org/project/pafy/
capture = cv2.VideoCapture(best.url)