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 { WorkerEntrypoint } from 'cloudflare:workers' | |
import { ProxyToSelf } from 'workers-mcp' | |
import XLSX from 'xlsx' | |
export default class MCPTableReader extends WorkerEntrypoint<Env> { | |
/** | |
* Read an xlsx file from a url or binary data | |
* @param source {string | ArrayBuffer | Uint8Array} the url or binary data to read | |
* @param sheetName {string} the name of the sheet to read | |
* @param startRow {number} the starting row to read |
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
WORKSPACE_ID=$(./get_cursor_workspace_id.sh <path>) sqlite3 "$HOME/Library/Application Support/Cursor/User/workspaceStorage/$WORKSPACE_ID/st | |
ate.vscdb" "SELECT value FROM ItemTable WHERE key = 'notepad.reactiveStorageId';" | python3 -c "import sys, json; pri | |
nt(json.dumps(json.loads(sys.stdin.read()), indent=2))" 2>/dev/null | jq '.notepads | to_entries[] | .value | {name: | |
.name, content: .text} ' |
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
# get_cursor_workspace_id.sh - Get Cursor workspace ID for a given path | |
# Check if path argument is provided | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 /path/to/workspace" >&2 | |
exit 1 | |
fi | |
# Normalize input path (remove trailing slash) | |
SEARCH_PATH="${1%/}" |
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
var link = window.location.href | |
var address = document.evaluate('//*[@href="#item-location"]', document) | |
.iterateNext() | |
.innerText | |
.replace('проспект', 'пр.') | |
.replace('Ленинградская область,', '') | |
.replace(', Санкт-Петербург', '') | |
.replace('посёлок', 'пос.') | |
.replace('район', 'р-н') |
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 | |
import rospy | |
import mavros | |
from mavros import command | |
from mavros_msgs.msg import PositionTarget | |
from geometry_msgs.msg import Point, Vector3 | |
from sensor_msgs.msg import LaserScan | |
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 | |
# Подключаем библиотеки ROS | |
import rospy | |
import mavros | |
from mavros import command | |
from mavros_msgs.msg import PositionTarget | |
from geometry_msgs.msg import Point, Vector3 | |
from sensor_msgs.msg import LaserScan |