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
/* | |
Simple Java Prolog engine. | |
This is basically a Java port of Chris Meyers' Python Prolog interpreter [1]. | |
This currently only contains the first part, but maybe I'll port the remainder at | |
a later stage. | |
I actually wanted a Datalog [5] engine, but ended up going with the Prolog engine | |
since Datalog is a Prolog subset. |
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
BEGIN { | |
if(!title) title = "Documentation" | |
print "<!DOCTYPE html>\n<html>\n<head>\n<title>" title "</title>"; | |
print "<style><!--"; | |
print "body {font-family:Arial, Verdana, Helvetica, sans-serif;margin-left:20px;margin-right:20px;}"; | |
print "h1 {color:#575c91;border:none;padding:5px;}"; | |
print "h2 {color:#575c91;border:none;padding:5px;}"; | |
print "h3 {color:#9191c1;border:none;padding:5px;}"; | |
print "a{padding:2px;border-radius:2px;}"; | |
print "a:link {color: #575c91;}"; |
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
/* | |
Java Datalog Engine with Stratified Negation | |
Copyright 2016 Werner Stoop | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.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
#! /usr/bin/awk -f | |
# | |
# Purpose: Either converts markdown in code comments | |
# to HTML, or is a poem about Hastur. I forget. | |
# | |
# The comments must have the /** */ pattern. Every line in the comment | |
# must start with a *. Like so: | |
# | |
# /** | |
# * Markdown here... |
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
/* | |
* This is the annotated version of my first attempt at a Quine | |
* | |
* I wonder if it is still considered a quine if it is annotated? :) | |
* You'll find that if you compile and run this, the output is equivalent | |
* to this code, so I'm still calling it a quine. | |
* | |
* Anyway, if you don't know what a Quine is, enlighten yourself at | |
* the wikipedia: http://en.wikipedia.org/wiki/Quine_(computing) | |
*/ |
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
/* | |
* $ gcc -o xdmp.exe xdmp.c | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <unistd.h> | |
unsigned char *read_file(const char *fname, size_t *plen) { | |
FILE *f; |
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
<!-- | |
Author: Werner Stoop, 2012 | |
This is free and unencumbered software released into the public domain. | |
http://unlicense.org/ | |
--> | |
<html> | |
<head> | |
<title>Buzzword Bingo 2.0</title> | |
<style> |
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
/* | |
http://paulbourke.net/dataformats/ms3d/ms3dspec.h | |
http://www.chumba.ch/chumbalum-soft/files/ms3dsdk184.zip | |
http://sappersblog.blogspot.co.za/2014/08/milkshape-3d-185-ms3d-file-format.html | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.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
/* | |
gcc -Wall -DWAV_TEST wav.c | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <errno.h> | |
#include "wav.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
javascript:(function(){ | |
/* Ad-B-Gone: Bookmarklet that removes obnoxious ads from pages */ | |
var selectors = [ | |
/* By ID: */ | |
'#sidebar-wrap', '#advert', '#xrail', '#middle-article-advert-container', | |
'#sponsored-recommendations', '#around-the-web', '#sponsored-recommendations', | |
'#taboola-content', '#taboola-below-taboola-native-thumbnails', '#inarticle_wrapper_div', | |
'#rc-row-container', '#ads', '#at-share-dock', '#at4-share', '#at4-follow', '#right-ads-rail', | |
'div#ad-interstitial', 'div#advert-article', 'div#ac-lre-player-ph', | |
/* By Class: */ |
OlderNewer