Skip to content

Instantly share code, notes, and snippets.

@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/
@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 / 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 / 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
#!/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 / 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">
<!--
@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 / matrices.s
Created February 20, 2020 22:52
The matrices.s assembly code written by Friedrich Kittler
# povasm.asm-Teil nach LINUX-float portiert
# Compute_Axis_Transform nur formal getestet
# braucht ray.s
FL=4 # 8 for double
.version "1.30"
# 05.02.11
.equ PII,1
.equ ONE,0x3F800000 # change for double
.equ NEGATIVE,0x80
@markcmarino
markcmarino / briffa_sep98_e.pro
Created February 20, 2020 23:06
One of the leaked files from the so-called Climategate scandal
;
; PLOTS 'ALL' REGION MXD timeseries from age banded and from hugershoff
; standardised datasets.
; Reads Harry's regional timeseries and outputs the 1600-1992 portion
; with missing values set appropriately. Uses mxd, and just the
; "all band" timeseries
;****** APPLIES A VERY ARTIFICIAL CORRECTION FOR DECLINE*********
;
yrloc=[1400,findgen(19)*5.+1904]
valadj=[0.,0.,0.,0.,0.,-0.1,-0.25,-0.3,0.,-0.1,0.3,0.8,1.2,1.7,2.5,2.6,2.6,$
@markcmarino
markcmarino / HARRY_READ_ME.txt
Last active February 20, 2020 23:21
The HARRY_READ_ME file from the so-called Climategate scandal
READ ME for Harry's work on the CRU TS2.1/3.0 datasets, 2006-2009!
1. Two main filesystems relevant to the work:
/cru/dpe1a/f014
/cru/tyn1/f014
Both systems copied in their entirety to /cru/cruts/
Nearly 11,000 files! And about a dozen assorted 'read me' files addressing