Export all logs to a file
journalctl > all_logs.txt
Download logs from remote server
scp :
# Usually you can do: | |
get_viewport().get_mouse_position() | |
# For a window you can do: | |
@onready var window: Window = %Window | |
window.get_mouse_position() |
@tool | |
extends Control | |
@export var device: int = 0 | |
func _process(delta: float) -> void: | |
queue_redraw() | |
func _draw() -> void: | |
# Set the size, the layout isn't dynamic and based on something I sketched! |
const FPS = 60; | |
let lastFrameTime = 0; | |
function update() { | |
const diff = Date.now() - lastFrameTime; | |
if (diff > (1000 / FPS)) { | |
// DO STUFF HERE. | |
describe("alternate", () => { | |
it("counts up when starting index is at the start", () => { | |
expect(Array.from(alternate(0, 10))).toStrictEqual([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) | |
}) | |
it("counts down indices when starting index is at the end", () => { | |
expect(Array.from(alternate(10, 10))).toStrictEqual([10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]) | |
}) | |
it("counts up when starting index is negatively out of bounds", () => { |
var tween = create_tween() | |
tween.set_trans(Tween.TRANS_SINE) | |
tween.tween_property(foot, "translation", home.transform.origin, move_duration) | |
yield(tween, "finished") |
Export all logs to a file
journalctl > all_logs.txt
Download logs from remote server
scp :
const getDifferenceBetweenAmounts = (transactionA, transactionB) => { | |
return Math.abs(transactionA.amount - transactionB.amount); | |
}; | |
const categorizeSimilarTransactions = (transactions) => { | |
return transactions.map((transaction) => { | |
if (transaction.category) { | |
return transaction; | |
} | |
function infiniteLineIntersection(line1Start, line1End, line2Start, line2End) { | |
const denominator = | |
(line2End.y - line2Start.y) * (line1End.x - line1Start.x) - | |
(line2End.x - line2Start.x) * (line1End.y - line1Start.y); | |
const noIntersection = denominator === 0; | |
if (noIntersection) { | |
return null; | |
} |
self.global_transform.basis.y.normalized()
is the local equivialant to
Vector3.UP
https://google.com/ 🌐 Google | |
http://yahoo.com/ ☁️ Yahoo |