Skip to content

Instantly share code, notes, and snippets.

@markcmarino
markcmarino / xsuptrace_translated.c
Created February 20, 2020 22:49
Translation of Friedrich Kittler's xsuptrace.c ray tracer code
/*
v. 3.57
31.07.11
PTRACE.PAS (c't 1 / 93,167ff.) Extended
Super ellipsoid, rotational body and procedural textures from povray3
DOS version no longer supported
compile:
Normal: xgraf xsuptrace ray.s matrices.s
// Option -DNEWFRESNEL: simplified Fresnel light from povray3
@markcmarino
markcmarino / argot_ogre_ok.html
Created February 20, 2020 22:35
Argot Ogre, OK! by Andrew Plotkin
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html manifest="argot-ogre-ok.manifest">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" sizes="57x57" href="argot-ogre-ok-icon-57x57.png">
<link rel="apple-touch-icon" sizes="114x114" href="argot-ogre-ok-icon-114x114.png">
<!--
#!/usr/bin/env Python
#
# Taroko Gorge
# A one-page Python program to generate an unbounded poem
#
# Nick Montfort
# 8 January 2009, Taroko Gorge National Park, Taiwan and Eva Air Flight 28
#
# x() splits a string into a list c() is just random. choice()
# f() picks a fresh value from a list p() prints a line and pauses
@markcmarino
markcmarino / TBMidlet.java
Last active February 18, 2020 20:01
Code from the Transborder Immigrant Tool
/* WalkingtoolsGpx: XML, APIs, and Apps for Walking Artists
Copyright (C) 2007-2012 Walkingtoools project/B.A.N.G Lab UCSD
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@markcmarino
markcmarino / FLOWMATIC
Created February 18, 2020 18:14
FLOWMATIC
0. INPUT INVENTORY FILE-A PRICE FILE-B ; OUTPUT PRICED-INV FILE-C UNPRICED-INV FILE-D ; HSP D .
1. COMPARE PRODUCT-NO (A) WITH PRODUCT-NO (B) ; IF GREATER GO TO OPERATION 10 ; IF EQUAL GO TO OPERATION 5 ; OTHERWISE GO TO OPERATION 2
2. TRANSFER A TO D .
3. WRITE-ITEM D .
4. JUMP TO OPERATION 8 .
5. TRANSFER A TO C .
6. MOVE UNIT-PRICE (B) TO UNIT-PRICE (C) .
7. WRITE-ITEM C .
8. READ-ITEM A ; IF END OF DATA GO TO OPERATION 14 .
9. JUMP TO OPERATION 1 .
@markcmarino
markcmarino / TG1.js
Created June 18, 2012 03:56
Taroko Gorge Gist
<script language="JavaScript" type="text/javascript">
var t=0;
var n=0;
var paths=0;
var above='brow,mist,shape,layer,the crag,stone,forest,height'.split(',');
var below='flow,basin,shape,vein,rippling,stone,cove,rock'.split(',');
var trans='command,pace,roam,trail,frame,sweep,exercise,range'.split(',');
var imper='track,shade,translate,stamp,progress through,direct,run,enter';
imper=imper.split(',');
var intrans='linger,dwell,rest,relax,hold,dream,hum'.split(',');
@markcmarino
markcmarino / iterated.rb
Created February 14, 2012 23:51 — forked from nasser/iteracy.rb
An iterated version of David M Berry's iteracy.rb that randomizes the text of the points
# ----------------------------------------------
# CRITICAL CODE STUDIES: WEEK 2 LITERACIES
#
# David M. Berry Feb 2012
# modified slightly by Mark C Marino Feb 2012 a bit later
#
# Based on the webpage: http://stunlaw.blogspot.com/2011/09/iteracy-reading-writing-and-running.html
#
# ITERATED.RB based on ITERACY.RB
# Programmed in Zajal - http://zajal.cc/