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/env python3 | |
| import urllib.request | |
| import json | |
| import sys | |
| # Replace with your actual Signal K server address and port | |
| # (e.g., http://localhost:3000/signalk/v1/api/vessels/self/navigation/position) | |
| SIGNALK_URL = "http://192.168.2.105/signalk/v1/api/vessels/self/navigation/position" | |
| def fetch_signalk_position(url): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| const { readdir, readFile, writeFile } = require('node:fs/promises'); | |
| const { spawn } = require('node:child_process'); | |
| const path = require('path'); | |
| const frontmatter = require('frontmatter'); | |
| let notedir = process.env.PWD; | |
| if (process.argv.length > 2) { | |
| notedir = path.resolve(process.env.PWD, process.argv[2]); | |
| } | |
| const notesmap = {}; |
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 asyncio | |
| import threading | |
| from evdev import InputDevice, categorize, ecodes | |
| dev = InputDevice('/dev/input/event1') | |
| clicks = 0 | |
| timer = None | |
| def count_clicks(): | |
| global clicks, timer |
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
| const fbpManifest = require('fbp-manifest'); | |
| const fbpGraph = require('fbp-graph'); | |
| const path = require('path'); | |
| const showError = (err) => { | |
| console.error(err); | |
| process.exit(1); | |
| }; | |
| const baseDir = process.cwd(); |
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
| const noflo = require('noflo'); | |
| function getFlowhubStats() { | |
| return fetch('https://api.flowhub.io/stats') | |
| .then((result) => result.json()); | |
| } | |
| exports.getComponent = () => noflo.asComponent(getFlowhubStats); |
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
| noflo = require 'noflo' | |
| window.bsyncs = [] | |
| class Bsync | |
| constructor: (@request,@waitfor,@block,@callback) -> | |
| exports.getComponent = -> | |
| c = new noflo.Component | |
| c.description = 'bsync' |
NewerOlder