Skip to content

Instantly share code, notes, and snippets.

View wuxianggujun's full-sized avatar
🌴
写代码中

无相孤君 wuxianggujun

🌴
写代码中
  • GodDog
  • China
View GitHub Profile
/*
* Basic SDL3 and BGFX initialization
*
* By: Shogunate
* Date: July 8th, 2024
* Email: [email protected]
*/
#include <windows.h>
#include <SDL3/SDL.h>
@rokups
rokups / CMakeLists.txt
Last active March 26, 2025 03:00
Dear ImGui CMake build script.
#
# CMake build system for Dear ImGui
# =================================
#
# Build instructions:
# 1. Install latest CMake
# * Windows: https://cmake.org/download/ (Tick checkbox to place cmake in system PATH)
# * Linux: from your favorite package manager
# * MacOS: brew install cmake
# 2. Open command prompt in directory containing "imgui" and "imgui_dev" folders
@akvadrako
akvadrako / pty-demo.c
Last active March 5, 2024 06:47
Linux pseudo TTY example
/**
* gcc -o pty-demo pty-demo.c
* pty-demo bash
*/
#define _XOPEN_SOURCE 600 /* Single UNIX Specification, Version 3 */
#include <fcntl.h>
#include <errno.h>
#include <stdio.h> /* for convenience */
import javax.swing.*;
import java.awt.*;
import java.util.List;
import java.util.ArrayList;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
public class DemoViewer {
public static void main(String[] args) {