Skip to content

Instantly share code, notes, and snippets.

View MichaelGatesDev's full-sized avatar
🐧

Michael Gates MichaelGatesDev

🐧
View GitHub Profile
@tatsumoto-ren
tatsumoto-ren / subs.md
Last active May 7, 2024 05:26
Japanese Subtitles

📓 Table of Contents 📚 Resources ✉️ Chat


kitsunekko.net jp subtitles

A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.

@p2or
p2or / io_batch_import_objs.py
Last active May 21, 2023 18:02
Blender 2.92+ - Batch import obj files based on my answer here: https://blender.stackexchange.com/a/31825/31447 #Blender #BSE
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@saitho
saitho / TwitchError2000Reloader.user.js
Created January 13, 2021 23:41
Tampermonkey - Reload Twitch stream on Error 2000
// ==UserScript==
// @name Twitch Reloader
// @namespace https://github.com/saitho
// @version 0.1
// @description Reload twitch on 2000 error
// @author You
// @match https://www.twitch.tv/*
// @grant none
// ==/UserScript==
@elliette
elliette / ManyToManyRelationships.md
Last active October 31, 2023 16:03
Describing `belongsToMany` and `hasMany` methods in Sequelize

Defining Many-to-Many Associations in Sequelize

Reference: Sequelize docs on association

Let’s say we have two models: Films and Festivals

We know that a film can be shown at many film festivals and that, conversely, a festival can show many films. This is what is known as a many-to-many relationship.

Knowing this, we can set up our associations:

@samuelmaddock
samuelmaddock / bind-all-keys.cpp
Created November 18, 2016 01:33
Unreal Engine 4 UE4 Hack to bind a delegate to all key presses. This allows for multiple keys to be pressed down at once without blocking events.
// example.h
DECLARE_DYNAMIC_DELEGATE_TwoParams(FBindAllKeysDelegate, const FKey&, Key, bool, bKeyPressed);
// example.cpp
void UExampleStatics::BindAllKeyInputActions(AActor *Actor, const FBindAllKeysDelegate& Delegate)
{
// Get input component from actor
UInputComponent *InputComponent = Actor->InputComponent;
if (InputComponent == nullptr) return;