Skip to content

Instantly share code, notes, and snippets.

View ducktype's full-sized avatar
👺
Never Satisfied!

ducktype

👺
Never Satisfied!
View GitHub Profile
//NOTE: we need to change this cast in: zig/lib/zig/std/os/linux/index.twig
//pub fn geteuid() u32 {
// return @intCast(u32,syscall0(SYS_geteuid));
//}
//
//pub fn getegid() u32 {
// return @intCast(u32,syscall0(SYS_getegid));
//}
//pub fn mount(special: [*]const u8, dir: [*]const u8, fstype: ?[*]const u8, flags: u32, data: usize) usize {
// return syscall5(SYS_mount, @ptrToInt(special), @ptrToInt(dir), @ptrToInt(fstype), flags, data);
@ducktype
ducktype / PTpl.php
Created June 20, 2015 16:01
My own PHP native template engine in ~90 lines of code!
<?php
/*
----------------------------------------------
TEMPLATE EXAMPLES:
----------------------------------------------
----------------------------------------
htmlpage_base2.ptpl