Skip to content

Instantly share code, notes, and snippets.

// gets uid 0 (iOS 11)
// add patchfinder and you should be good
// Abraham Masri @cheesecakeufo
/*
* Purpose: iterates over the procs and finds our proc
*/
uint64_t get_our_proc() {
@zheksoon
zheksoon / libui-react-like-syntax-proposal.c
Last active March 20, 2018 08:07
Pure C-complaint React-like syntax proposal for libui for building dynamic native user interfaces in reactive manner
// Pure C-complaint React-like syntax proposal for libui for building dynamic native
// user interfaces in reactive manner.
// "h" function is vararg function that returns itself, so it's possible to chain calls
// without need to write "h" again and again, only in cases you need to break the chain
// with semicolon.
// As its first parameter "h" takes component function pointer of the next definition:
// void Component(uiConstructor h, ...)
// and then list of key-value pairs a-la props in React.js land. The props list must end
@DavidHarper
DavidHarper / ibm2ieee.asm
Created May 21, 2022 09:18
VM/370 assembler code to convert VM/370 64-bit float to IEEE 64-bit float
* Name: IBM2IEEE ASSEMBLE IBM00010
* IBM00020
* Author: David Harper, University of Liverpool Computer Lab IBM00030
* Email: [REDACTED] IBM00040
* Date: 24 April 1989 IBM00050
* IBM00060
* Purpose: To convert IBM Dfloat data to IEEE IBM00070
* IBM00080
* Linkage convention: Waterloo C IBM00090
* IBM00100