This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Completely remove YouTube Shorts from page | |
// @namespace https://github.com/hallzy | |
// @version 0.2 | |
// @description Removes YouTube Shorts Videos from your current page. | |
// @author Steven Hall, Igor Santarek | |
// @match https://www.youtube.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edges = [[1, 2], [0, 2], [0, 1, 3], [0, 2]] # grid | |
vertices = [1, 2, 3, 4] | |
# edges = [[2], [2], [0, 1, 3], [2]] # spanning tree | |
# vertices = [1, 2, 3, 4] | |
visited = [False] * len(vertices) | |
spanning_tree_edges = [[] for x in range(len(vertices))] | |
def is_spanning_tree_dfs(node, source, _edges): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
import subprocess | |
LOCAL_DIR = 'SPECIFY LOCAL DIR HERE' # your local dir noita path (f.e. %userprofile%\AppData\LocalLow\Nolla_Games_Noita\save00) | |
NOITA_DIR = 'SPECIFY NOITA DIR HERE' # your noita's game directory that contains noita.exe | |
def del_file_if_exists(path): | |
if os.path.exists(path): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Camera | |
var _duration = 0.0 | |
var _period_in_ms = 0.0 | |
var _amplitude = 0.0 | |
var _timer = 0.0 | |
var _last_shook_timer = 0 | |
var _previous_x = 0.0 | |
var _previous_z = 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
from random import randint | |
import math | |
def distance(a, b): | |
return math.sqrt(math.pow(b[0] - a[0], 2) + math.pow(b[1] - a[0], 2)) | |
def is_near_other_star(star, stars, min_dist): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node | |
const BIG_ENDIAN = 'big' | |
const LITTLE_ENDIAN = 'little' | |
const INT_SIZE = 4 | |
const ERROR_INDEX = 0 | |
const DATA_INDEX = 1 | |
const MAX_SIGNALS_COUNT = 255 | |
onready var stream_peer = StreamPeerTCP.new() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if %1.go.==. goto :errorFileName | |
echo package %1>>%1.go | |
echo.>>%1.go | |
echo import "fmt">>%1.go | |
echo.>>%1.go | |
echo func main() {>>%1.go | |
echo fmt.Println("Hello World\n")>>%1.go | |
echo }>>%1.go | |
exit /b |