Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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("");
}
function anagram(text) {
return text.split("").sort(function () {return 0.5-Math.random()}).join("");
}
@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);
@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'."