Skip to content

Instantly share code, notes, and snippets.

@zsviczian
zsviczian / BulkExport.js
Created July 16, 2025 19:00
Build a Searchable Icon Library in Obsidian With Bases
ea = ExcalidrawAutomate;
async function run() {
const files = app.vault.getMarkdownFiles().filter(f=>ea.isExcalidrawFile(f) && f.name.match(/^(?:icon|stickfigure|logo) - /i));
let workingLeaf = app.workspace.getLeaf(true);
//let i = 0; //uncomment this and if statment later for limited debugging.
for (excalidrawFile of files) {
//if(i++>5) continue;
await workingLeaf.openFile(excalidrawFile);
await sleep(200);
@arthurschiller
arthurschiller / RealityKit_CustomBindTargetAnimation.swift
Last active December 23, 2025 01:28
RealityKit visionOS – Animate Custom Bind Target Parameters 🏃‍♀️
import SwiftUI
import RealityKit
struct AnimationDemoView: View {
@Environment(\.realityKitScene) var scene: RealityKit.Scene?
init() {
// register System and Component – Important!
AnimationSystem.registerSystem()
AnimationComponent.registerComponent()
@HeySora
HeySora / SSDT-WWAN.dsl
Last active December 23, 2025 01:24
WWAN SSDT for ThinkPad T490s (Fibocom L850-GL)
// This SSDT is essentially sending "CAP_EXP+10.w=0052" as well as a RST() call
// in order to switch the Fibocom WWAN card to USB mode.
// This is fully working on my ThinkPad T490s (20NX*), but I cannot guarantee
// that this code will work for you as well. Read below for instructions for other brands.
// There might be issues when going out of sleep mode? I vaguely recall
// having rare issues in these cases. Going in sleep mode and going out fixed it.
// There are probably better ways to do something like this...
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@EverythingSmartHome
EverythingSmartHome / All open windows and doors
Last active December 23, 2025 01:23
A collection of useful templates for Home Assistant dashboards
{{ states.binary_sensor
| selectattr('attributes.device_class', 'in', ['door','window'])
| selectattr('state', 'equalto', 'on')
| list | count }}
@hivefans
hivefans / .Cloud.md
Created July 10, 2022 04:41 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@LaurieWired
LaurieWired / heisenbug.cpp
Created December 22, 2025 19:45
Heisenbug Demo
#include <iostream>
#include <vector>
#include <string>
#include <iomanip>
// example sbox, typical in ciphers
const uint8_t S_BOX[16] = {
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5,
0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76
};
@rogerioagjr
rogerioagjr / conveyor_chaos.py
Created December 17, 2024 20:08
Meta Coding Puzzles - Level 4 - Conveyor Chaos (Python)
from typing import List
from sortedcontainers import SortedList
# Write any import statements here
def getMinExpectedHorizontalTravelDistance(N: int, H: List[int], A: List[int], B: List[int]) -> float:
conveyors = get_conveyors(H, A, B)
find_conveyors_below(conveyors)
find_init_probs(conveyors)
find_total_probs(conveyors)