- BT 5.1
- USB-A 2.4GHz
- Wired
Discover gists
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
| // Minimal Odin + Raylib example that opens window and lets you control a | |
| // rectangle using the arrow keys. Beginners can use this as a starting point. | |
| // | |
| // Copy this into a file called whatever_you_want.odin inside an empty folder. | |
| // Use the command prompt to navigate to that folder and run: | |
| // odin run . | |
| // Note the period, with a space before it! This should run this minimal example. | |
| package raylib_minimal | |
| import rl "vendor:raylib" |
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 telebot | |
| from telebot import types | |
| from flask import Flask, request | |
| import requests | |
| import psycopg2 | |
| import re | |
| import os | |
| import sqlite3 |
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
| """ | |
| Simple HTML -> Telegram entity parser. | |
| """ | |
| from collections import deque | |
| from html import escape | |
| from html.parser import HTMLParser | |
| from typing import Iterable, Tuple, List | |
| from telethon.helpers import add_surrogate, del_surrogate, within_surrogate, strip_text | |
| from telethon.tl import TLObject |
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
| #btrfs benchmark for daily used desktop OS |
** 由于此文年事已久,可能某些 URL Schemes 已失效,可在评论区留言指出!(最后更新于 2024.10.28)
由于苹果的各应用都是在沙盒中,不能够互相之间访问或共享数据。但是苹果还是给出了一个可以在 APP 之间跳转的方法:URL Scheme。简单的说,URL Scheme 就是一个可以让 APP 相互之间可以跳转的协议。每个 APP 的 URL Scheme 都是不一样的,如果存在一样的 URL Scheme,那么系统就会响应先安装那个 APP 的 URL Scheme,因为后安装的 APP 的 URL Scheme 被覆盖掉了,是不能被调用的。
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/env python | |
| # -*- coding: utf-8 -*- | |
| import numpy | |
| def find_homography(src, dst): | |
| # X = (x*h0 +y*h1 + h2) / (x*h6 + y*h7 + 1) | |
| # Y = (x*h3 +y*h4 + h5) / (x*h6 + y*h7 + 1) | |
| # |
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
| while true; do | |
| osascript -e ' | |
| tell application "System Events" | |
| if exists process "Claude" then | |
| tell process "Claude" | |
| if exists button "Allow for This Chat" of group 2 of group 1 of group 2 of group 1 of UI element "Claude" of group 1 of group 1 of group 1 of group 1 of window "Claude" then | |
| click button "Allow for This Chat" of group 2 of group 1 of group 2 of group 1 of UI element "Claude" of group 1 of group 1 of group 1 of group 1 of window "Claude" | |
| log "clicked allow button" | |
| end if | |
| end tell |
First of all, uninstall the eos-hooks package, which keeps changing the data of /etc/os-release from a hook while installing base packages.
sudo pacman -R eos-hookssudo pacman -Syyu --noconfirm archlinux-keyring bash bzip2 lsb-release coreutils file filesystem findutils gawk gcc-libs gettext glibc grep gzip iproute2 iputils licenses pacman pciutils procps-ng psmisc sed shadow systemd systemd-sysvcompat tar util-linux xz linux
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
| var morform = function(sentence) { | |
| var endpoint = "https://labs.goo.ne.jp/api/morph"; | |
| var payload = { | |
| "app_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", | |
| "sentence": sentence, | |
| "info_filter":"form|pos|read" | |
| //"info_filter": info_filter, | |
| //"pos_filter": pos_filter | |
| ////"sentence": sentence, | |
| ////"output_type": output_type |
NewerOlder