Skip to content

Instantly share code, notes, and snippets.

@markcmarino
markcmarino / chineseroom
Created August 23, 2023 23:43
Chinese Room Conundrum
"Chinese Room Conundrum" by ChatGPT
The Chinese Room is a room.
John Searle is a man in the Chinese Room. The description of John Searle is "John looks perplexed. He's surrounded by Chinese symbols and an instruction book titled 'Understanding Chinese'. He doesn't understand a word of it."
A man can be consulted or not consulted.
John Searle is not consulted.
A mysterious black box is in the Chinese Room. The description of the black box is "It's a black box. No one knows what's inside, but it's labeled 'Machine Translation 5000'."
@markcmarino
markcmarino / generations.vlw
Last active March 4, 2020 23:49
An excerpt from Jon Corbett's portrait beading code
For(int x = 1; x <= NumberOfRows; x++){
switch(x % 2){
case 0:
For(currentColumn = NumberOfColumns; currentColumn > 0; currentColumn--){
placeBeadAt(x, currentColumn);
}
break;
default:
For(currentColumn = 1; currentColumn <= NumberOfColumns; currentColumn++){
placeBeadAt(x, currentColumn);
function anagram(text) {
return text.split("").sort(function () {return 0.5-Math.random()}).join("");
}
@markcmarino
markcmarino / anagram_a.js
Created February 26, 2020 18:57
A sample anagram program...
function anagram(text) {
var a = text.split("");
for (var i = 0; i < a.length; i += 1) {
var letter = a[i];
var j = Math.floor(Math.random() * a.length);
a[i] = a[j];
a[j] = letter;
}
return a.join("");
}
@markcmarino
markcmarino / VoteBox.java
Created February 26, 2020 18:23
VoteBox code created by William Marsh, Rice University
/**
* This file is part of VoteBox.
*
* VoteBox is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as published by
* the Free Software Foundation.
*
* You should have received a copy of the GNU General Public License
* along with VoteBox, found in the root of any distribution or
* repository containing all or part of VoteBox.
@markcmarino
markcmarino / index.php
Created February 26, 2020 17:58
The index page for Tapsweni Pathak's "Women on Github" project
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Introducing Lollipop, a sweet new take on Android.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="images/favicon.ico" />
<title>Women on GitHub</title>
@markcmarino
markcmarino / protest
Created February 26, 2020 17:52
Code from an anti-corruption protesters sign in India.
#include <india.h>
#include<jan lokpal bill.h>
#include <students.h>
void main( )
{
do
{
no_of_indians ++;
printf(“Protest
continues.”);
@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
@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 / 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