Skip to content

Instantly share code, notes, and snippets.

@dahoba
dahoba / rk68-manual-text.md
Last active December 28, 2024 03:07
RK68 manual in text

RK68 user manual ⌨️

conections

  • BT 5.1
  • USB-A 2.4GHz
  • Wired

BT connection wind

@karl-zylinski
karl-zylinski / raylib_minimal.odin
Last active December 28, 2024 03:07
Minimal Odin + Raylib example.
// 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"
import telebot
from telebot import types
from flask import Flask, request
import requests
import psycopg2
import re
import os
import sqlite3
@YouKnow-sys
YouKnow-sys / custom_html_parser.py
Created June 21, 2024 15:01
Html parser/unparser with spoiler and custom emoji support for telethon
"""
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
@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active December 28, 2024 02:51
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@zhuziyi1989
zhuziyi1989 / URL Schemes.md
Last active December 28, 2024 02:49
常用 URL Schemes 收集。

** 由于此文年事已久,可能某些 URL Schemes 已失效,可在评论区留言指出!(最后更新于 2024.10.28)

关于 URL Scheme 你知道多少?

iOS 系统中

由于苹果的各应用都是在沙盒中,不能够互相之间访问或共享数据。但是苹果还是给出了一个可以在 APP 之间跳转的方法:URL Scheme。简单的说,URL Scheme 就是一个可以让 APP 相互之间可以跳转的协议。每个 APP 的 URL Scheme 都是不一样的,如果存在一样的 URL Scheme,那么系统就会响应先安装那个 APP 的 URL Scheme,因为后安装的 APP 的 URL Scheme 被覆盖掉了,是不能被调用的。

Android 系统中

@mohayonao
mohayonao / find_homography
Created March 25, 2011 22:09
4つの点からホモグラフィ行列(平面射影変換行列)を求める
#!/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)
#
@supersational
supersational / claude-autoclicker.sh
Last active December 28, 2024 02:45
Claude Autoclick "Allow Tool"
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
@NoobGajen
NoobGajen / EndeavourOS to Arch Linux.MD
Last active December 28, 2024 02:44 — forked from sun-jiao/endeavour-to-arch-guide.MD
Converting EndeavourOS to ArchLinux

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-hooks

Reinstall the base package group:

sudo 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
@iveskins
iveskins / morph.gs
Created November 15, 2019 07:03
google app script to get furigana in [] for google sheets
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