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
class_name SoundBoard extends Resource | |
@export var streams : Dictionary[String, AudioStream] = {} | |
# Config vars should be in the format: | |
# "type:property" : "value" | |
# "ready:max_distance" : "25.0" | |
# "attack:volume_db" : "-10.0" | |
@export var config : Dictionary[String, String] = {} | |
@export var default_distance := 10.0 |
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
# Exponential decay by Freya (framerate independent lerp) | |
func flerp(a, b, dt, decay): | |
return b + (a - b) * exp(-decay * dt) |
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
{ | |
"default": { | |
"body": [ | |
"services:", | |
" service:", | |
" image: image:tag", | |
" build:", | |
" context: ./app", | |
" restart: unless-stopped", | |
" profiles:", |
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 sys | |
from pathlib import Path | |
import pytest | |
from playwright.sync_api import Page, expect | |
@pytest.fixture | |
def assert_aria_snapshot(page: Page, pytestconfig, request, browser_patch): | |
test_base_dir = Path(request.node.fspath).stem |
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
Show hidden characters
{ | |
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "scope": "javascript,typescript", |
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
# Based on a video by Pefeper: https://youtu.be/1i5SB8Ct1y0 | |
# Shakable.gd | |
extends Area3D | |
@export var camera : Camera3D | |
@export var trauma_reduction_rate := 1.0 | |
@export var max_x := 10.0 | |
@export var max_y := 10.0 | |
@export var max_z := 5.0 |
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
class("Parent").extends() | |
function Parent:foo() | |
print("parent-foo") | |
end | |
function Parent:bar() | |
print("parent-bar-1") | |
self:foo() | |
print("parent-bar-2") | |
end |
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
gitea | 2024/06/25 15:30:49 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/org/repo for 192.168.144.2:0, 200 OK in 17.5ms @ repo/repo.go:523(repo.Get) | |
gitea | 2024/06/25 15:30:49 ...eb/routing/logger.go:102:func1() [I] router: completed GET /org/repo.git/info/refs?service=git-upload-pack for 192.168.144.2:0, 401 Unauthorized in 0.9ms @ repo/githttp.go:517(repo.GetInfoRefs) | |
gitea | 2024/06/25 15:30:49 ...eb/routing/logger.go:102:func1() [I] router: completed GET /org/repo.git/info/refs?service=git-upload-pack for 192.168.144.2:0, 200 OK in 17.4ms @ repo/githttp.go:517(repo.GetInfoRefs) | |
gitea | 2024/06/25 15:30:49 ...eb/routing/logger.go:102:func1() [I] router: completed POST /org/repo.git/git-upload-pack for 192.168.144.2:0, 200 OK in 20.8ms @ repo/githttp.go:477(repo.ServiceUploadPack) | |
gitea | 2024/06/25 15:30:49 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/org/repo/contents/renovate.json for 192.168.144.2:0, 200 OK in 62.6ms @ repo/file.go:891 |
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 bash | |
_val=`curl -Isk $2 | grep HTTP | cut -d ' ' -f2` | |
echo "$(date) $_val" | |
_diff=0 | |
while : | |
do | |
_val2=`curl -Isk $2 | grep HTTP | cut -d ' ' -f2` | |
if [ "$_val" != "$_val2" ]; then |
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
{ | |
"objects": { | |
"#000000": { | |
"image": "/assets/images/rock" | |
} | |
}, | |
"#ac3232": { | |
"player": {} | |
} | |
} |
NewerOlder