Skip to content

Instantly share code, notes, and snippets.

View JimChengLin's full-sized avatar
🤔
Give me a tree, and I shall index the world

Jim Lin JimChengLin

🤔
Give me a tree, and I shall index the world
  • Beijing, China
View GitHub Profile
@JimChengLin
JimChengLin / fk_hdr.js
Last active September 30, 2025 23:21
Smart HDR Compressor (Detect then Process)
// ==UserScript==
// @name Smart HDR Compressor (Detect then Process)
// @name:zh-CN 智能HDR压缩器 (先检测后处理)
// @namespace http://tampermonkey.net/
// @version 4.1
// @description Only processes images detected as HDR. First, checks if the display is in HDR mode. Then, does a quick scan for bright pixels. If found, performs a high-quality, color-preserving highlight compression in a web worker.
// @description:zh-CN 仅处理检测到的HDR图片。首先检查显示器是否为HDR模式,然后快速扫描图片是否存在高光像素。如果存在,则在后台使用Web Worker进行高质量、无色差的高光压缩。
// @author Gemini
// @match *://*/*
// @grant none
@JimChengLin
JimChengLin / timej.js
Last active October 3, 2024 14:36
TimeJ
// ==UserScript==
// @name TimeJ
// @namespace TimeJ
// @version 1.0
// @description TimeJ
// @author Jim
// @match *://*/*
// @grant GM.setValue
// @grant GM.getValue
// @grant GM.deleteValue
@JimChengLin
JimChengLin / tsx.cpp
Last active September 5, 2023 16:36
Intel TSX simple benchmark
#include <atomic>
#include <chrono>
#include <immintrin.h>
#include <iostream>
#include <thread>
struct Node {
Node * prev{};
Node * next{};
};
@JimChengLin
JimChengLin / script.js
Last active December 1, 2023 07:01
VimJ
// ==UserScript==
// @name VimJ
// @namespace VimJ
// @version 1.0
// @description VimJ
// @author Jim
// @match *://*/*
// @grant GM_openInTab
// @run-at document-body
// ==/UserScript==