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
bin = boot.img | |
CC = ia16-elf-gcc | |
LD = ia16-elf-ld | |
$(bin): boot.o | |
$(LD) -Tboot.ld -o $@ $^ | |
.PHONY: clean | |
clean: |
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
#include <stdio.h> | |
#include <stdlib.h> | |
char *find_nonws(char *ptr, char *end); | |
int trailing_ws, fixed_trailing; | |
int main(int argc, char **argv) { | |
int i, j, count = 0; |
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
/* MD5 message digest | |
* Author: John Tsiombikas <[email protected]> | |
* | |
* This software is public domain. Feel free to use it any way you like. | |
* | |
* If public domain is not applicable in your part of the world, you may use | |
* this under the terms of the Creative Commons CC-0 license: | |
* http://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
#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
/* Example of rendering cross-sections of closed non-self-intersecting geometry | |
* with the stencil buffer. See draw_cross_section for details. | |
* | |
* Controls: | |
* - rotate object by dragging with the left mouse button | |
* - move cross-section plane back and forth by dragging up/down with the right | |
* mouse button | |
* | |
* Compile with: cc -o xsection xsection.c -lGL -lGLU -lglut | |
* |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <ctype.h> | |
#include <alloca.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <dirent.h> | |
#include <sys/wait.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
#!/bin/sh | |
# ___________________________________________________ | |
# / \_ | |
# | fixname - cleans up filenames | \ | |
# | | | | |
# | author: John Tsiombikas <[email protected]> | | | |
# | license: public domain | | | |
# \___________________________________________________/ | | |
# \___________________________________________________/ | |
# |
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
; DOS caps lock -> ctrl remapper | |
; Author: John Tsiombikas <[email protected]> | |
; This program is public domain. Do whatever you like with it | |
; build with: nasm -o capsctrl.com -f bin capsctrl.asm | |
org 100h | |
bits 16 | |
mov ax, 0900h | |
mov dx, msg | |
int 21h |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdarg.h> | |
#include <math.h> | |
#include <assert.h> | |
#include <alloca.h> | |
#include <GL/glew.h> | |
#ifdef __APPLE__ | |
#include <GLUT/glut.h> | |
#else |
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
/*! cc -o rinplace -pedantic -Wall -g rinplace.c */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
struct snode { |
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
#ifndef UNISTATE_H_ | |
#define UNISTATE_H_ | |
#include "vmath/vmath.h" | |
class ShaderProg; | |
enum StType { | |
ST_UNKNOWN, | |
ST_INT, ST_INT2, ST_INT3, ST_INT4, |