复制 App ID 和 App Key 填入 backup.py 的 client_id
和 client_secret
rye pin 3.11
rye add requests
rye sync
/* more Tiniri themes: https://tiniri.vlad.studio/ */ | |
html { | |
--ui-font: ui-sans-serif, sans-serif !important; | |
--editor-font: ui-sans-serif, sans-serif !important; | |
--editor-width: 800px !important; | |
line-height: 1.5 !important; | |
} | |
html { |
html { | |
--crust: #dce0e8; | |
--mantle: #e6e9ef; | |
--base: #eff1f5; | |
--surface0: #ccd0da; | |
--surface1: #bcc0cc; | |
--surface2: #acb0be; | |
--overlay0: #9ca0b0; | |
--overlay1: #8c8fa1; | |
--overlay2: #7c7f93; |
复制 App ID 和 App Key 填入 backup.py 的 client_id
和 client_secret
rye pin 3.11
rye add requests
rye sync
#!/usr/bin/env bash | |
# IMPORTANT: this script is now part of my dotfiles and maintained there | |
# see https://github.com/Diaoul/dotfiles/blob/main/.config/hypr/scripts/workspaces.sh | |
set -e | |
declare -i last_called=0 | |
declare -i throttle_by=4 | |
@throttle() { | |
local -i now=$(date +%s) |
"\033[0m" // Reset all text attributes to default | |
"\033[1m" // Bold on | |
"\033[2m" // Faint off | |
"\033[3m" // Italic on | |
"\033[4m" // Underline on | |
"\033[5m" // Slow blink on | |
"\033[6m" // Rapid blink on | |
"\033[7m" // Reverse video on | |
"\033[8m" // Conceal on | |
"\033[9m" // Crossed-out on |
Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.
You use Next.js router like normally, but don't define getStaticProps
and such. Instead you do client-only fetching with swr
, react-query
, or similar methods.
You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)
Don't like Next? Here's how to do the same in Gatsby.
"custom/weather": { | |
"exec": "python ~/.config/waybar/scripts/weather.py", | |
"restart-interval": 300, | |
"return-type": "json", | |
"on-click": "xdg-open https://weather.com/en-IN/weather/today/l/$(location_id)" | |
// "format-alt": "{alt}", | |
}, |
/* This is under Unlicense(https://unlicense.org/) and/or CC0(https://www.tldrlegal.com/l/cc0-1.0). */ | |
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title>Fetch API Local</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> |
#!/bin/sh | |
# | |
# Author: jzbor | |
# Dependencies: xdo, xwininfo (optional), xdg-xmenu (optional), xmenu (optional | |
# | |
# Usage: | |
# riot.sh | |
# riot.sh xterm | |
# riot.sh --focused | |
# riot.sh --select |