This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: minunit.h | |
* Author: Zed. A. Shaw, Sam | |
* | |
* @see http://c.learncodethehardway.org/book/ex30.html | |
* | |
* Created on 27 August 2014, 22:14 | |
*/ | |
#ifndef MINUNIT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* More info? | |
* [email protected] | |
* http://aspyct.org | |
* @aspyct (twitter) | |
* | |
* Hope it helps :) | |
*/ | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/syscall.h> | |
void printid(void) { | |
uid_t r, e, s; | |
getresuid(&r, &e, &s); | |
printf("real: %d eff: %d saved: %d\n", r, e, s); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I | EIGH | |
---|---|---|
J | DGE | |
U | OU | |
S | ZE | |
T | TTE | |
TH | CHTH | |
R | EUR | |
EW | IEU | |
U | OU | |
P | PPE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface val Auth | |
fun val apply[B: Auth val](): B ? => | |
this as B | |
fun val add(that: Auth): AuthSet => | |
AuthSet(this, that) | |
class val AuthSet is Auth | |
let _a: Auth | |
let _b: Auth |