上一页 1 2 3 4 5 6 7 8 ··· 124 下一页
摘要: std::condition_variable condition; { std::unique_lock<std::mutex> lock(queue_mutex); // 等待直到有任务或线程池停止 condition.wait(lock, [this] { return this->stop 阅读全文
posted @ 2025-08-19 00:41 AngDH 阅读(39) 评论(0) 推荐(0)
摘要: _getChannelData = AudioBuffer.prototype.getChannelData; AudioBuffer.prototype.getChannelData = function() { let o = _getChannelData.apply(this, argume 阅读全文
posted @ 2025-08-14 17:34 AngDH 阅读(10) 评论(0) 推荐(0)
摘要: HTMLElement.prototype.offsetHeight HTMLElement.prototype.offsetWidth 获取的时候 加上个 随机数 (Math.random() * 0.1 - 0.05) 阅读全文
posted @ 2025-08-14 16:43 AngDH 阅读(8) 评论(0) 推荐(0)
摘要: // WebGLRenderingContext.prototype.bufferData _bufferData = WebGL2RenderingContext.prototype.bufferData; WebGL2RenderingContext.prototype.bufferData = 阅读全文
posted @ 2025-08-14 16:00 AngDH 阅读(16) 评论(0) 推荐(0)
摘要: const g = Math.random() * .05 , M = { r: Math.floor(Math.random() * 10), g: Math.floor(Math.random() * 10), b: Math.floor(Math.random() * 10) }; _toDa 阅读全文
posted @ 2025-08-14 14:59 AngDH 阅读(20) 评论(0) 推荐(0)
摘要: navigator.permissions.query({name: 'speaker'}).then(function(t){ debugger;; }).catch(function(c){ debugger;; }) let tstr = Function.prototype.toString 阅读全文
posted @ 2025-07-22 10:41 AngDH 阅读(13) 评论(0) 推荐(0)
摘要: #include <node.h> #include <thread> #include <chrono> namespace demo { using v8::FunctionCallbackInfo; using v8::Isolate; using v8::Local; using v8::O 阅读全文
posted @ 2025-07-15 14:21 AngDH 阅读(16) 评论(0) 推荐(0)
摘要: RTTI(Run-Time Type Information)详解 1. 什么是 RTTI? RTTI(运行时类型信息,Run-Time Type Information)是 C++ 提供的一种机制,允许程序在运行时获取对象的实际类型信息。 它主要用于多态(即基类指针/引用指向派生类对象)场景下,判 阅读全文
posted @ 2025-07-14 15:24 AngDH 阅读(49) 评论(0) 推荐(0)
摘要: import ddddocr import cv2 from PIL import Image det = ddddocr.DdddOcr(det=True) det2 = ddddocr.DdddOcr(beta=True) with open("download.png", 'rb') as f 阅读全文
posted @ 2025-07-10 18:00 AngDH 阅读(79) 评论(0) 推荐(0)
摘要: 前三个值 window["performance"]["memory"] 阅读全文
posted @ 2025-07-08 10:20 AngDH 阅读(21) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 124 下一页