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
@tool | |
extends Node3D | |
@export | |
var scene: Node | |
@export | |
var light_energy_max: float = 200.0 | |
@export |
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 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 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 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 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
export interface pb_schema_entry_schema_options { | |
min: number; | |
max: number; | |
pattern: string; | |
} | |
export interface pb_schema_entry_schema { | |
system: boolean; | |
id: string; | |
name: string; | |
type: string; |
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
package common | |
import ( | |
"os" | |
"os/signal" | |
"syscall" | |
) | |
func HandleSigTerm(cb func(sig os.Signal)) { | |
signalChannel := make(chan os.Signal, 2) |
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
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 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 ); |
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
using Godot; | |
// Attach to an Area3D | |
// listens to collisions with area3d (use area3d's collision mask to select what objects should walk thru holes) | |
// sets or unsets the cutLayer (see in editor after attaching this script) | |
// dont forget to build C# project once to see the editor field for PhysicsHole) | |
public partial class PhysicsHole : Area3D { | |
[Export] |
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 { Tensor, layers, sequential, tensor, train } from "@tensorflow/tfjs-node"; | |
function create_model () { | |
const model = sequential(); | |
model.add(layers.dense({ | |
units: 16, | |
activation: "relu", | |
inputShape: [1] | |
})); |
NewerOlder