Skip to content

Instantly share code, notes, and snippets.

@dmberry
dmberry / ELIZA.BAS
Created January 26, 2016 01:14
Eliza in Basic written by Jeff Shrager in 1977
10 REM
20 REM ELIZA/DOCTOR
30 REM CREATED BY JOSEPH WEIZENBAUM
40 REM THIS VERSION BY JEFF SHRAGER
50 REM EDITIED AND MODIFIED FOR MITS 8K BASIC 4.0 BY STEVE NORTH
60 REM CREATIVE COMPUTING PO BOX 789-M MORRISTOWN NJ 07960
70 REM
80 REM -----INITIALIZATION-----
90 DIM C$(72),I$(72),K$(72),F$(72),S$(72),R$(72),P$(72),Z$(72)
100 DIM S(36),R(36),N(36)
@dmberry
dmberry / keybase.md
Last active August 29, 2015 14:17
keybase.md

Keybase proof

I hereby claim:

  • I am dmberry on github.
  • I am davidberry (https://keybase.io/davidberry) on keybase.
  • I have a public key whose fingerprint is 2E51 BED6 9F63 FA46 16B5 1584 288F 4D63 23E5 49DE

To claim this, I am signing this object:

@dmberry
dmberry / DH_graph.csv
Last active December 11, 2015 17:19
Digital Humanities Gephi Amazon Graph (CSV file)
We can't make this file beautiful and searchable because it's too large.
;How We Think: Digital Media and Contemporary Technogenesis;Electronic Literature: New Horizons for the Literary (Ward-Phillips Lectures in English Language & Literature);How We Became Posthuman: Virtual Bodies in Cybernetics Literature and Informatics;Understanding Digital Humanities;Debates in the Digital Humanities;The Interface Effect;Alien Phenomenology or What it"s Like to be a Thing (Posthumanities);Reading Machines: Toward an Algorithmic Criticism (Topics in the Digital Humanities);The Neuro-Image: A Deleuzian Film-philosophy of Digital Screen Culture (Cultural Memory in the Present);Gramophone Film Typewriter (Writing Science);What is Media Archaeology?;Cybertext: Perspectives on Ergodic Literature;Hamlet on the Holodeck: The Future of Narrative in Cyberspace;Half-Real: Video Games Between Real Rules and Fictional Worlds;Reality is Broken: Why Games Make Us Better and How They Can Change the World;Theory of Fun for Game Design;Writing Machines (Mediaworks Pamphlet);Cybertext Poetics: The Cr
@dmberry
dmberry / shakespeare 2.rb
Created February 20, 2012 11:21
Shakespeare Insult Generator 2.1
# ------------------------------------------------------
#
# Shakespeare Insult Generator 2.1
#
# The program generates a random Shakespearean insult.
# Based on the original Perl code by Stephen Ramsay
#
# Written by David M. Berry
# 09 February 2012
#
@dmberry
dmberry / ITERATED ITERATED.rb
Created February 18, 2012 11:42
Iteration of Mark C. Marino's iteration of the original Iteracy Zajal code
# ----------------------------------------------
# CRITICAL CODE STUDIES: WEEK 2 LITERACIES
#
# David M. Berry Feb 2012
# modified slightly by Mark C Marino Feb 2012 a bit later
# iterated by David M. Berry 18 Feb 2012
#
# now uses nice truetype fonts for better visual image
# layout more carefully
#
@dmberry
dmberry / montfort-esque.rb
Created February 11, 2012 20:27
ZAJAL version of Nick Montfort's '10 PRINT CHR$(205.5+RND(1)); : GOTO 10' example
# ------------------------------------------------------
#
# ZAJAL version of Nick Montfort's '10 PRINT CHR$(205.5+RND(1)); : GOTO 10' example
#
# The program generates a random number and an array to generate the screen layout.
# It uses a mouse_pressed event to refresh the screen and recalculate the layout.
#
# The program doesn't quite capture the specific way the C64 prints to the screen
# and scrolls up, in fact that would require extra code to essentially emulate the
# C64 way of printing characters. In this version I preferred to reinterpret the
@dmberry
dmberry / vee.rb
Created February 11, 2012 18:57 — forked from dmberry/vee.rb
Reimplemented Annette Vee's 'This is good code' example
# ------------------------------------------------------
#
# Reimplementation of Annette Vee's 'This is good code' example
#
# The program generates a random positioned text line.
# Based on the original LOGO code by Annette Vee
#
# Written by David M. Berry
# 11 February 2012
#
@dmberry
dmberry / vee.rb
Created February 11, 2012 18:51
Reimplemented Annette Vee's 'This is good code' example
# ------------------------------------------------------
#
# Reimplementation of Annette Vee's 'This is good code' example
#
# The program generates a random positioned text line.
# Based on the original LOGO code by Annette Vee
#
# Written by David M. Berry
# 11 February 2012
#
@dmberry
dmberry / Shakespeare.rb
Created February 9, 2012 19:41
Shakespeare Insult Generator 2.0
# ------------------------------------------------------
#
# Shakespeare Insult Generator 2.0
#
# The program generates a random Shakespearean insult.
# Based on the original Perl code by Stephen Ramsay
#
# Written by David M. Berry
# 09 February 2012
#