Skip to content

Instantly share code, notes, and snippets.

View DokaDev's full-sized avatar
🫥
sleepy.....

Awesome DokaDev

🫥
sleepy.....
View GitHub Profile
@DokaDev
DokaDev / dx11_rotexturedcb.cpp
Created July 26, 2025 16:02
dx11 graphics snippet in cpp rendering a textured rotating cube with lighting and camera transforms
#include <windows.h>
#include <d3d11.h>
#include <d3dcompiler.h>
#include <DirectXMath.h>
#include <wrl/client.h>
#include <iostream>
using namespace DirectX;
using Microsoft::WRL::ComPtr;
@DokaDev
DokaDev / protocol_xpc.swift
Last active July 26, 2025 15:25
a swift protocol for async service calls, tailored for xpc styled interaction
import Foundation
@objc public protocol XpcProtocol {
func invoke(
withInput input: String,
withReply reply: @escaping (String) -> Void
)
}
@DokaDev
DokaDev / mbr.asm
Created July 26, 2025 15:14
16bit-protected-mode-legacy-mbr
[ORG 0]
[BITS 16]
SECTION .text
jmp 0x07C0:ENTRY
TOTALSECTORCOUNT: dw 0x02
KERNEL32SECTORCOUNT: dw 0x02
BOOTSTRAPPROCESSOR: db 0x01 ; BP
STARTGRAPHICMODE: db 0x01