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 / 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==