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 board | |
| import digitalio | |
| import time | |
| import touchio | |
| from adafruit_debouncer import Button | |
| # Update these pins to match your wiring. | |
| TM1637_CLK_PIN = board.GP3 |
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 | |
| # Define the state file to store previous runs | |
| STATE_FILE=".vikunja_user_deltas.state" | |
| TMP_STATE="${STATE_FILE}.tmp" | |
| # Initialize an associative array to hold the previous state | |
| declare -A prev_deltas | |
| # Load the previous state if the file exists |
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 | |
| # --- Configuration --- | |
| VIKUNJA_CONTAINER="vikunja-vikunja-1" | |
| VIKUNJA_BINARY="/app/vikunja/vikunja" | |
| DEFAULT_PASSWORD="changeme" | |
| # UI Colors | |
| GREEN='\033[0;32m' | |
| RED='\033[0;31m' |
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
| # /// script | |
| # requires-python = ">=3.13" | |
| # dependencies = [ | |
| # "psycopg2-binary", | |
| # ] | |
| # /// | |
| import json | |
| import sys | |
| from pathlib import Path |
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
| # /// script | |
| # requires-python = ">=3.13" | |
| # dependencies = [ | |
| # "psycopg2-binary", | |
| # "tabulate", | |
| # ] | |
| # /// | |
| import os | |
| import psycopg2 |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "pillow>=11.2.1", | |
| # ] | |
| # /// | |
| # usage: uv run this_script.py <path_to_png> | |
| import sys |
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
| #include <TM1637Display.h> | |
| #define CLK_PIN 2 | |
| #define DIO_PIN 3 | |
| const int SPEED_PINS[] = { 4, 5, 6, 7 }; | |
| const int NUM_SPEED_PINS = sizeof(SPEED_PINS) / sizeof(SPEED_PINS[0]); | |
| const int REFRESH_RATES_HZ[] = { 30, 60, 90, 120 }; | |
| const int RATE_DEFAULT_HZ = 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
| <# | |
| .SYNOPSIS | |
| Generates a high frame rate video with SMPTE timecode overlay. | |
| .DESCRIPTION | |
| This script creates a video file with a timecode burned in using FFmpeg. | |
| The video frame rate is configurable and can be set to any desired duration. | |
| .PARAMETER Duration | |
| Duration of the video in seconds (default: 10) |
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 'dart:typed_data'; | |
| import 'package:image/image.dart' as img; | |
| const dim = 512; | |
| const maxInt16Value = 32767; | |
| const maxInt8Value = 255; | |
| final Int16List testData = () { | |
| final buffer = Int16List(dim * dim); |
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 'package:flutter/material.dart'; | |
| void main() => runApp(const App()); | |
| class App extends StatefulWidget { | |
| const App({super.key}); | |
| @override | |
| State<App> createState() => _AppState(); | |
| } |
NewerOlder