Skip to content

Instantly share code, notes, and snippets.

View bombless's full-sized avatar

York Xiang bombless

  • Guangzhou, China
View GitHub Profile
x/9i 0x4c3916c

这里是EFI_MAIN入口

x/9i 0x4c3a8b9
System
------------
Pixi version: 0.59.0
Platform: linux-64
Virtual packages: __unix=0=0
: __linux=6.17.7=0
: __glibc=2.42=0
: __cuda=13.0=0
: __archspec=1=skylake
Cache dir: /home/bombless/.cache/rattler/cache
2101146142
146142
@bombless
bombless / Cargo.toml
Created October 12, 2025 14:35
egui_plot 0.34 zooming problem
[package]
name = "custom_plot_manipulation"
version = "0.1.0"
edition = "2024"
[dependencies]
eframe = "0.33"
egui_plot = "0.34"
%% 广告播放设备管理系统
%% 文件: ad_device_system.erl
-module(ad_device_system).
-behaviour(gen_server).
%% API exports
-export([start_link/0, stop/0, get_device_status/0, get_device_info/1]).
%% gen_server callbacks
<circuit version="1.1.0-SR1" rev="2005" stepSize="1000000" stepsPS="1000000" NLsteps="100000" reaStep="1000000" animate="0" >
<item itemtype="BJT" CircId="BJT-1" mainComp="false" Show_id="false" Show_Val="false" Pos="-52,28" rotation="0" hflip="1" vflip="1" label="BJT-1" idLabPos="18,0" labelrot="0" valLabPos="-16,20" valLabRot="0" PNP="false" Gain="100" Vcrit="0.670736 V" />
<item itemtype="Battery" CircId="Battery-2" mainComp="false" Show_id="false" Show_Val="false" Pos="56,-32" rotation="0" hflip="1" vflip="1" label="Battery-2" idLabPos="-18,-22" labelrot="0" valLabPos="-10,10" valLabRot="0" Voltage="5 V" Resistance="1 mΩ" />
<item itemtype="Led" CircId="Led-3" mainComp="false" Show_id="false" Show_Val="false" Pos="128,92" rotation="-360" hflip="1" vflip="1" label="Led-3" idLabPos="-16,-24" labelrot="0" valLabPos="-16,20" valLabRot="0" Color="Yellow" Grounded="false" Threshold="2.4 V" MaxCurrent="30 mA" Resistance="0.6 Ω" />
<item itemtype="Switch" CircId="Switch-5" mainComp="false" Show_id="false" Sho
@bombless
bombless / play_tones.py
Created July 19, 2024 09:17
Play twinkle song
import math
import sounddevice as sd
def frequency(base_freq, semitones):
return base_freq * (2 ** (semitones / 12))
DO = 440
RE = frequency(DO, 2)
https://stackoverflow.com/questions/26590174/convert-rtsp-stream-to-virtual-web-camera
@bombless
bombless / PrintDirect.cs
Last active January 18, 2024 03:29 — forked from corytodd/csharp_gdi_print.cs
GDI Printing Example for C#
// https://www.c-sharpcorner.com/UploadFile/dbeniwal321/using-gdi-print-functionality/
//PrintDirect.cs
//shows how to write data directly to the
//printer using Win32 APIs.
//this code sends Hewlett-Packard PCL5 codes
//to the printer to print
//out a rectangle in the middle of the page.
using System;
using System.Text;
using System.Runtime.InteropServices;