Export all logs to a file
journalctl > all_logs.txtDownload logs from remote server
scp : | import React, { useRef, useState } from 'react'; | |
| import { CSSTransition } from 'react-transition-group'; | |
| import TooltipBubble from './tooltip_bubble'; | |
| export default function Tooltip({ message, children }) { | |
| const [showTooltip, setShowTooltip] = useState(false); | |
| const childRef = useRef(null); | |
| const child = React.Children.only(children); |
| 🩺 Verifying Package.json... | |
| Common JS Package Detected | |
| ✓ - Exports Common JS | |
| ✓ - Exported Common JS Correct File Extension | |
| ○ - Exports ES Module | |
| ○ - Exports Types for developers | |
| Exporting types, while optional, aid developers who consume your library. |
| .composer { | |
| background: white; | |
| border-radius: 30px; | |
| box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 4px 8px 0 rgba(0,0,0,0.21); | |
| display: flex; | |
| align-items: flex-end; | |
| height: 60px; | |
| position: relative; | |
| transition: height 250ms cubic-bezier(0.45, 0, 0.55, 1); | |
| } |
| # 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.txtDownload 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; | |
| } | |