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 | |
class_name RessourceCircle | |
extends Node2D | |
@onready var inner_circle : Sprite2D = $Sprite2D | |
@export var circle_color: Color : | |
set(val): | |
circle_color = val | |
if is_instance_valid(inner_circle): |
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
#!/usr/bin/env bash | |
# Display help message if the script is called with "-h" or without parameters. | |
if [[ "$1" == "-h" || -z "$1" ]]; then | |
echo "Usage: $0 <file_path> [target_directory] < timestamps_file" | |
echo " | |
Description: | |
This script splits a media file into parts based on timestamps read from a file. | |
Arguments: |
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
#!/usr/bin/env bash | |
readarray -t ts | |
path=$1 | |
fn=${1##*/} | |
dir=${path%$fn} | |
name=${fn%.*} | |
ext=${fn#$name} |
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
#!/bin/sh | |
modFolder="$PWD/mods/$1" | |
[ -d $modFolder ] || mkdir -p $modFolder | |
dataFolder="$PWD/data/$1" | |
[ -d $dataFolder ] || mkdir -p $dataFolder | |
logPath="$PWD/logs/$1_logs" | |
[ -d $logPath ] || mkdir -p $logPath |
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
#! /bin/sh -e | |
## | |
# Usage: | |
# $ batchchangecolor.sh "*.png" "#ff0000" hover | |
## | |
for image in $1 | |
do | |
convert "$image" +level-colors transparent,"$2" "${image%.*}.$3.png" |
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
// The output should be the "difference" between each inputs, thus 0 mean identical. | |
type ComparatorFunction = <Type>(lookup: Type, pointer: Type ) => number | |
function bsearch<Type>( | |
dictionary: Array<Type>, | |
lookup: Type, | |
comparator: ComparatorFunction, | |
startIndex: number = 0, | |
endIndex: number = dictionary.length-1, |
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
I can't log in with steam, the connection screen just does not appear and when using directly Robocraft.x86_64 with the steam_appid.txt containing 301520 the game crash with a "malloc(): invalid size (unsorted)" error. | |
So I executed directly the Robocraft.x86_64, without the steam_appid.txt file, I logged in using my Freejam account that is linked to my steam account, I was glad to finally being able to play… | |
And in the first minute of a game I get kicked with a nice modal dialog saying "Roboshield Account Corrupted"; I tried 3 times. And I confirm that I have no other significant program, except discord, konsole and htop, running in background. | |
I even disabled the display compositor, just in case it could be considered a cheat program (for whatever reason, at this point who cares…). | |
I tried restarting Robocraft multiple times (at each time, in fact, I got kicked)… | |
Please, help me, I'm a long time supporter of Robocraft. |
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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
source ~/.zshenv | |
export DEFAULT_USER=kane-thornwyrd |
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
#!/usr/bin/env python3 | |
import sounddevice as sd | |
import numpy as np | |
import os | |
def audio_callback(indata, frames, time, status): | |
volume_norm = np.linalg.norm(indata) * 10 | |
if volume_norm > 40: | |
os.system("reboot -f -f") |
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
> Task :compileJava FAILED | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Could not resolve all files for configuration ':compileClasspath'. | |
> Could not find net.minecraftforge:forge:1.16.3-34.1.31_mapped_snapshot_complete-20200912-1.16.3-v5_at_32e5ac4feb3bba673aa90214b4f59d59eaf701ed. | |
Searched in the following locations: | |
- https://repo.maven.apache.org/maven2/net/minecraftforge/forge/1.16.3-34.1.31_mapped_snapshot_complete-20200912-1.16.3-v5_at_32e5ac4feb3bba673aa90214b4f59d59eaf701ed/forge-1.16.3-34.1.31_mapped_snapshot_complete-20200912-1.16.3-v5_at_32e5ac4feb3bba673aa90214b4f59d59eaf701ed.pom |
NewerOlder