This file contains hidden or 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
//content.js | |
function goodbye_blank() { | |
console.log("removing _blanks") | |
for (const a of document.querySelectorAll("a")) { | |
if (a.target == "_blank") { | |
a.target = ""; | |
} | |
} | |
} |
This file contains hidden or 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
javascript:(()=>{let output = 'action,url\n';for(anchor of document.querySelectorAll("a#video-title%22)){output+=%60allow,${anchor.href}\n%60;}const%20dl=document.createElement(%22a%22);dl.setAttribute(%22href%22,%22data:text/plain;charset=utf-8,%22+encodeURIComponent(output));dl.setAttribute(%22download%22,%22playlist.csv%22);dl.style.display%20=%20%22none%22;dl.click();})() |
This file contains hidden or 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
@tool | |
extends Node3D | |
@export | |
var scene: Node | |
@export | |
var light_energy_max: float = 200.0 | |
@export |
This file contains hidden or 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 android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
/**Intent Broadcast receiver shit is too verbose, fixed it for ya*/ | |
public class EZAction { | |
public static void Fire(Context ctx, String action) { | |
Intent intent = new Intent(action); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0; | |
height: 100svh; | |
padding: 0; | |
overflow: hidden; |
This file contains hidden or 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 Node2D | |
@export | |
var a: RigidBody2D = null | |
@export | |
var b: RigidBody2D = null | |
@export | |
var a_affected: bool = false | |
@export | |
var b_affected: bool = false |
This file contains hidden or 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
#!/usr/bin/env node | |
import { readFileSync } from "fs"; | |
import { exit } from "process"; | |
function log(...msgs) { | |
console.log("//", ...msgs); | |
} | |
function warn(...msgs) { | |
log("WARN:", ...msgs); | |
} |
This file contains hidden or 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
package common | |
import ( | |
"os" | |
"os/signal" | |
"syscall" | |
) | |
func HandleSigTerm(cb func(sig os.Signal)) { | |
signalChannel := make(chan os.Signal, 2) |
This file contains hidden or 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
onModelBeforeCreate((e)=>{ | |
const item_name = "responses"; | |
const container_name = "tickets"; | |
const container_ref = "ticket"; | |
const container_id = e.model.get(container_ref); | |
if (container_id) { |
This file contains hidden or 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
var upThrust = 1; | |
var forwardThrust = 2; | |
var absoluteForce = new Vector3 ( 0, upThrust, forwardThrust ); | |
var relativeForce = absoluteForce * Basis.Transposed(); //The magic BS that makes it work | |
ApplyCentralForce( relativeForce ); |
NewerOlder