Skip to content

Instantly share code, notes, and snippets.

@banyudu
banyudu / figma-plugin-development-intro.blog.md
Last active December 25, 2025 07:17
Figma插件开发浅浅谈

Figma插件开发浅浅谈

Figma是一款优秀的设计工具,不仅可以便捷地实现协作开发,同时还提供了丰富的扩展能力,使得我们可以通过编写插件实现自定义的功能。

Figma官方是有提供开发者文档的,资料也比较齐全。推荐同时读一下 https://www.figma.com/plugin-docs/intro/

@psenger
psenger / README.md
Last active December 25, 2025 07:06
[SIPS - scriptable image processing system] #MacOS #sips #Image

SIPS (Scriptable Image Processing System)

SIPS (Scriptable Image Processing System) is a command-line utility available on macOS that enables users to perform various image manipulation tasks directly from the command line. It supports a wide range of image file formats, including JPEG, PNG, TIFF, GIF, and more

Example usage:

  • Scale an image (without aspect ratio): sips -z width height input_image --out output_image
  • Scale an image (maintain aspect ratio): sips -z 800 0 original.jpg --out scaled.jpg
  • Query image properties: sips -g dpiHeight -g dpiWidth image.jpg
@louis030195
louis030195 / hyper-v-sandbox-internals.md
Created December 6, 2025 22:16
Windows Sandbox & Hyper-V Internals: Reverse Engineering Guide - HCS API, hypercalls, kernel drivers

Windows Sandbox & Hyper-V Internals: Reverse Engineering Guide

A comprehensive technical reference for understanding and reverse engineering Windows Sandbox, HCS APIs, and Hyper-V hypervisor internals.

Architecture Overview

┌─────────────────────────────────────────────────────────────────┐
│                         USER MODE                                │
├─────────────────────────────────────────────────────────────────┤
#define UNICODE
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
Complete stuff:
https://xmonader.github.io/letsbuildacompiler-pretty/
Lexers + DFAs:
https://gist.github.com/pervognsen/218ea17743e1442e59bb60d29b1aa725
Parsing:
https://eli.thegreenplace.net/2012/08/02/parsing-expressions-by-precedence-climbing
Backend:
@ih2502mk
ih2502mk / list.md
Last active December 25, 2025 06:54
Quantopian Lectures Saved
@mortie
mortie / chrono-cheat-sheet.md
Last active December 25, 2025 06:50
std::chrono cheat sheet for the every-day programmer

Chrono cheat sheet

For the every-day programmer who needs to get shit done instead of fighting type errors.

If your application deals with times in any meaningful way, you should probably want to actually store time_points and durations and what-not; chrono has a pretty rich vocabulary for talking about time-related concepts using the type system. However, sometimes you just need to do something simple, like timing how long something takes, which is where chrono becomes overly complex, hence this cheat sheet.

All examples will assume #include <chrono>.

I just want to time something, then print the result

// Mostly portable example of creating an object file to embed a binary.
// Requires stb_ds.h (https://github.com/nothings/stb/blob/master/stb_ds.h)
// Arguments:
//
// coff_embed [name] [input]
//
// name must be a valid C-identifier if you wanna actually import into C, the
// idea is that the 'input' file is going to be embedded into an object file
// under the symbol name 'name', the content's length is a size_t with the name
// _length appended to the name.
@RealNeGate
RealNeGate / nbhm.h
Last active December 25, 2025 06:39
////////////////////////////////
// NBHM - Non-blocking hashmap
////////////////////////////////
// You wanna intern lots of things on lots of cores? this is for you. It's
// inspired by Cliff's non-blocking hashmap.
//
// To use it, you'll need to define NBHM_FN and then include the header:
//
// #define NBHM_FN(n) XXX_hm_ ## n
// #include <nbhm.h>