This file contains 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 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 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
# 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. |
This file contains 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 | |
# 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 |
This file contains 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
# 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 |
This file contains 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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: brown; icon-glyph: file-code; | |
// To use this script, you need to configure an OAuth App on GitHub. | |
// Follow the instructions on the link below to create your OAuth App. | |
// https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/// | |
// | |
// When you are asked to put in a redirect URL, you should put the URL for running this script in Scriptable. Assuming the name of this script is "Create Gist", the URL is scriptable:///run?scriptName=now.json | |
// | |
// Now that you have an app, you can run this script. The script will prompt you to enter the client ID and client secret you got after creating the app on GitHub. |
This file contains 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
{ | |
"status": "Working at 3st as a Full Stack Developer. Now with formatting", | |
"playlist": { | |
"name": "Warten", | |
"uri": "5k4CrIEvYeNCg0go3BPR56" | |
}, | |
"activities ": [ | |
"Saw the RTO and Jan Böhmermann in Cologne" | |
], | |
"plans": [ |
This file contains 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
#!/usr/bin/osascript | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Play Coding Playlist | |
# @raycast.mode silent | |
# Optional parameters: | |
# @raycast.packageName Spotify | |
# @raycast.icon 💻 |
This file contains 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
{ | |
"actions":[ | |
{ | |
"title":"Open Tweet", | |
"regex":"https?://(mobile\\.|www\\.|m\\.)?twitter\\.com/(@?[a-zA-Z0-9_]{1,15}/)?(status|i/web/status|statuses|i/topics/tweet)/(\\d+).*$", | |
"testInputs":[ | |
"https://twitter.com/zpower/status/588561590997352448", | |
"https://mobile.twitter.com/kiebk/status/599159327056863232?cn=cmVwbHk%3D&refsrc=email", | |
"https://twitter.com/i/web/status/814237378382622720", | |
"https://twitter.com/hamburger/statuses/221225038941126657", |
This file contains 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 network | |
import ntptime | |
import utime | |
import math | |
import urequests | |
import EnkPi_4in2 as epd | |
from EnkPi_4in2 import Buzzer | |
from main import sync_time | |
from machine import Pin | |
from secrets import SSID, PASSWORD, WEATHER_API_KEY # Add your weather API key here |
This file contains 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
{ | |
"1": "What are you gonna leave behind to be more present?", | |
"2": "Today I'll be...", | |
"3": "How’s your attitude today?", | |
"4": "What has your attention today? ", | |
"5": "What was the best gift you've ever got?", | |
"6": "Which personality traits do you like best in people?", | |
"7": "What's your energy level for today?", | |
"8": "What would have to happen to make today a perfect day?", | |
"9": "How can we make today a perfect day?", |
NewerOlder