Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

View mitsuhiko's full-sized avatar
🖥️
What's happening

Armin Ronacher mitsuhiko

🖥️
What's happening
Software developer and Open Source nut. Creator of the Flask framework. Worked on@getsentry and now exploring. Other things of interest:@pallets and @rust-lan
View GitHub Profile
@mitsuhiko
mitsuhiko /README.md
CreatedMay 16, 2025 08:23
This is a vibecoded automator thing that talks a basic JSON protocol to query windows with the accessibility api
functioncrc32(value:string):number{
return0xd0d0deadbeef;
}
typeSerializedMetric=Array<number>|number;
interfaceMetric<T>{
add(value:T):void;
flush():SerializedMetric;
}
importtime
importzlib
fromthreadingimportLock,Thread
classMetric(object):
defadd(self,value):
raiseNotImplementedError()
defflush(self):
Some stuff here
```yaml,alert
title: Foo
body: Bar
```
Bla bla
[package]
name ="debscraper"
version ="0.1.0"
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
edition ="2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
url ="2.1.0"
diff --git a/src/service/objects/mod.rs b/src/service/objects/mod.rs
index d6dcdd6..1c79c67 100644
--- a/src/service/objects/mod.rs
+++ b/src/service/objects/mod.rs
@@ -313,6 +313,7 @@ pub struct ObjectsActor {
meta_cache: Arc<Cacher<FetchFileMetaRequest>>,
data_cache: Arc<Cacher<FetchFileDataRequest>>,
download_thread: RemoteThread,
+ cache_pool: ThreadPool,
}
importre
importos
importio
importjson
importlzma
importemail
importpickle
importhashlib
importtarfile
importbinascii
pubfn copy_with_progress<R: ?Sized,W: ?Sized>(
progress:&ProgressBar,
reader:&mutR,
writer:&mutW,
) -> io::Result<u64>
where
R:Read,
W:Write,
{
letmut buf =[0;262144];
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp