This file contains hidden or 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
/************************************************************** | |
LZSS.C -- A Data Compression Program | |
(tab = 4 spaces) | |
*************************************************************** | |
4/6/1989 Haruhiko Okumura | |
Use, distribute, and modify this program freely. | |
Please send me your improved versions. | |
PC-VAN SCIENCE | |
NIFTY-Serve PAF01022 | |
CompuServe 74050,1022 |
This file contains hidden or 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
// Test program for miniz (https://github.com/richgel999/miniz) | |
#include <stdio.h> | |
#include "../miniz.h" | |
int main(int argc, char *argv[]) { | |
mz_zip_archive zip; | |
int i; |
This file contains hidden or 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
/* | |
gcc -Wall `sdl2-config --cflags` -O0 -g -o editor.o -c editor.c | |
gcc editor.o -lm `sdl2-config --libs` -o editor | |
*/ | |
#include <SDL.h> | |
SDL_Renderer *renderer = NULL; | |
#define STB_TILEMAP_EDITOR_IMPLEMENTATION |
This file contains hidden or 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
/** | |
* This is a modified version of [Picol][], | |
* Salvatore Sanfilippo ("antirez")'s Tcl interpreter in ~500 lines. | |
* | |
* This version turns it into a [STB][]-style single header library, so | |
* that it can be embedded into another program as a command interpreter. | |
* | |
* To use it, add a `#define PICOL_IMPLEMENTATION` above the | |
* `#include "picol.h"` in _one_ of your source files. | |
* |
This file contains hidden or 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=gcc | |
CFLAGS=-c -Wall -DTEST | |
LDFLAGS=-lm | |
EXECUTABLE=gap | |
BUILD=debug | |
# Detect operating system: | |
# More info: http://stackoverflow.com/q/714100 |
This file contains hidden or 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
/* | |
* JSON Parser and serializer. | |
* | |
* https://www.json.org/json-en.html | |
* https://tools.ietf.org/id/draft-ietf-json-rfc4627bis-09.html | |
* | |
* | |
* TODO: I came across this test suite for JSON parsers: | |
* [Parsing JSON is a Minefield](http://seriot.ch/parsing_json.php); | |
* I should maybe try running this parser through it one day. |
This file contains hidden or 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 <assert.h> | |
typedef struct internTreeNode ITNode; | |
/* ============================================================= | |
String Interning |
This file contains hidden or 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
#! python | |
# Version 1.0 | |
# Naive, with no negation. | |
# Also, no parser | |
class DatalogException(Exception): | |
pass | |
class Expr: |
This file contains hidden or 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
/* | |
Compile all the lua source in one go. | |
Put this in the `lua-5.3.5/src` directory, then compile like so: | |
$ cc lua.c luaone.c | |
$ cc luac.c luaone.c | |
Or compile to an object file like so: |
This file contains hidden or 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
<html> | |
<head> | |
<title>Markdown Editor</title> | |
<!-- | |
It uses showdownjs to render the Markdown https://github.com/showdownjs/showdown | |
--> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.0/showdown.min.js"></script> |