This is a test.
Hello Pebble!
This is a test.
Hello Pebble!
| const fs = require('fs'); | |
| const path = require('path'); | |
| // Read the JSON file | |
| const bookmarksFilePath = path.join(__dirname, 'bookmarks.json'); | |
| const bookmarksData = JSON.parse(fs.readFileSync(bookmarksFilePath, 'utf-8')); | |
| // Function to convert bookmarks to CSV/TSV | |
| function convertToCSV(bookmarks, delimiter = ',') { | |
| const header = ['URL', 'Title']; |
| import fs from 'fs' | |
| const RCSnippets = JSON.parse(fs.readFileSync('./snippets.json', 'utf-8')) | |
| if (!fs.existsSync('./output')) { | |
| fs.mkdirSync('./output') | |
| } | |
| RCSnippets.forEach(sn => { | |
| const data = { |
| #!/usr/bin/env bash | |
| set -e | |
| LED=27 | |
| DIR="$HOME/Pictures" | |
| mkdir -p "$DIR" | |
| raspi-gpio set $LED op | |
| # take picture with timestamp as name |
| import time | |
| import math | |
| from machine import Pin | |
| import rp2 | |
| NUM_LEDS = 25 # 5x5 matrix | |
| max_lum = 100 # Maximum brightness level | |
| brightness = 0.1 # Scale brightness (0.0 to 1.0) | |
| @rp2.asm_pio(sideset_init=rp2.PIO.OUT_LOW, out_shiftdir=rp2.PIO.SHIFT_LEFT, autopull=True, pull_thresh=24) |
| # This file contains pin mappings for the stock 2020 Creality CR6-SE. | |
| # To use this config, during "make menuconfig" select the STM32F103 | |
| # with a "28KiB bootloader" and serial (on USART1 PA10/PA9) | |
| # communication. | |
| # Flash this firmware by copying "out/klipper.bin" to a SD card and | |
| # turning on the printer with the card inserted. The firmware | |
| # filename must end in ".bin" and must not match the last filename | |
| # that was flashed. |
| #!/bin/bash | |
| # Required parameters: | |
| # @raycast.schemaVersion 1 | |
| # @raycast.title Open URL in Responsively | |
| # @raycast.mode silent | |
| # Optional parameters: | |
| # @raycast.icon /Applications/ResponsivelyApp.app/Contents/Resources/icon.icns |
| # NVM | |
| export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |