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
// Main Features: | |
// - Manual fix: Draws a line from a clicked position at a specified bearing and distance, with a distance-dependent multiplier for realism. | |
// Optionally, draws a 90-degree arc (distance ring) centered on the bearing axis. | |
// - Fix: Marks a position with a timestamp and formatted latitude/longitude. | |
// - Context menu setup: Ensures the custom context menu items are available after each action. | |
// | |
// Utility functions: | |
// - formatLatLon: Formats latitude/longitude in degrees and decimal minutes (DMM) with directional suffixes. | |
// - setupContextMenu: Registers the context menu items. | |
// |
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
{ | |
"type": "object", | |
"properties": { | |
"title": { | |
"type": "string", | |
"description": "Name of the folder" | |
}, | |
"icon": { | |
"type": "string", | |
"description": "Icon name for the folder" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"> | |
<link href="./styles.css" rel="stylesheet"> | |
<title>Hello World!</title> | |
</head> | |
<body> |
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 LightColors: | |
ONE_COLOR=(254, 254, 254) | |
ZERO_COLOR=(253, 253, 253) | |
BG_COLOR=(255, 255, 255) | |
class DarkColors: | |
ONE_COLOR=(2, 2, 2) | |
ZERO_COLOR=(1, 1, 1) | |
BG_COLOR=(0, 0, 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
#!/bin/bash | |
BLUE='\033[0;34m' | |
GREEN='\033[0;32m' | |
CYAN='\033[0;36m' | |
RED='\033[0;31m' | |
YELLOW='\033[0;33m' | |
NC='\033[0m' # No Color | |
function print_secret() { |