Skip to content

Instantly share code, notes, and snippets.

@atduskgreg
atduskgreg / rotation_around_a_point.pde
Created December 24, 2011 05:22
Controlling the center of rotation in Processing
// Rotation Around a Point
// ***********************
// To acheive rotation around a given point
// - translate to that point
// - rotate
// - then translate back
// (note: in Processing this last step is implicit
// since draw() resets all transformations
// each time it runs.)
@koo5
koo5 / source.txt
Created November 22, 2012 02:59
"The Amazing Interactive Turing Machine" by "J.D. Clemens"
"The Amazing Interactive Turing Machine" by "J.D. Clemens"
Section 1 - Bibliographic Data
The story headline is "An Interactive Waste of Time".
The story genre is "Other".
The story description is "You have almost reached the end of your shift. All that remains is to clean one final room, the control room for that weird contraption being built by the scientists here. Carrying your usual equipment, you open the door and step into... The Amazing Interactive Turing Machine!"
Release along with source text and a website.
@JonnieCache
JonnieCache / spacewar.lst
Created December 11, 2012 12:11
Spacewar PDP1 Source Code
-/macro fio-dec system, june 1963
007652 640500 szm=sza sma-szf
007652 650500 spq=szm i
007652 761200 clc=cma+cla-opr
- define senseswitch A
- repeat 3, A=A+A
- szs A
- term
- define init A,B
- law B
@quchen
quchen / trolling_haskell
Last active February 24, 2024 01:30
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@zmaril
zmaril / softwarehelpskill.md
Last active August 3, 2021 04:52
I want to write software that helps kill people.

I want to write software that helps kill people.

Please, before you call the police and get my github account put on lockdown, allow me a moment to explain. What I really want to do is work on projects that advance the human condition and improve people's lives. I've been in a mad dash to learn how to program for the past four or five years exactly because I realized how much good I could do for the world with a computer.

@philipcristiano
philipcristiano / faces_example.py
Created June 18, 2013 14:10
Resize and crop an image based on OpenCV detected faces
import sys
from PIL import Image, ImageDraw
try:
import cv
except ImportError:
print 'Could not import cv, trying opencv'
import opencv.cv as cv
@osnr
osnr / ascent.dot
Created October 11, 2013 04:11
As Stu Card remembers it, “There was this thread of ideas that led from Vannevar Bush through J. C. R. Licklider, Doug Engelbart, Ted Nelson, and Alan Kay–a thread in the Ascent of Man. It was like the Holy Grail. We would rationalize our mission according to what Xerox needed, and so on. But whenever we could phrase an idea so that it fell on t…
digraph {
"Vannevar Bush" -> "Claude Shannon";
"Claude Shannon" -> "Ivan Sutherland";
subgraph ailab {
rank = same;
edge[dir=none];
"Seymour Papert" -> "Marvin Minsky";
@ijp
ijp / origami.v
Last active December 25, 2015 15:29
Origami Programming in Coq
(* Working Through Jeremy Gibbons' article Origami Programming in Coq *)
Require Import Coq.Logic.FunctionalExtensionality.
Require Import Coq.Program.Basics.
Open Scope program_scope. (* for ∘ composition operator *)
Inductive list (X:Type) : Type :=
| nil : list X
| cons : X -> list X -> list X.
Definition is_nil (X:Type) (l:list X) : bool :=
@catseye
catseye / The Swallows of Summer.markdown
Created November 3, 2013 19:08
The first four chapters of my second novel for NaNoGenMo. It is a sequel to the first novel. It's three years later, and Alice and Bob live in a much bigger house now, and own more things.

The Swallows of Summer

Chapter 1.

The day was overcast and humid. Alice was in the dining room. Alice saw the golden falcon. Bob was in Bob's bedroom. Alice picked up the golden falcon. Bob went to the upstairs hall. Alice hid the golden falcon in the cabinet. Alice went to the kitchen. Bob went to the front hall. Alice examined the cupboards carefully. Alice went to the front hall. Alice saw Bob. 'Hello, Bob,' said Alice. 'Hello, Alice,' replied Bob. Alice went to the kitchen. Bob went to the kitchen. Bob saw Alice. 'Hello, Alice,' said Bob. 'Hello, Bob,' replied Alice. 'Lovely weather we're having, isn't it?' asked Alice. 'Perhaps, Alice,' replied Bob.

'Oh, I know, I know,' said Alice. Bob nodded. Alice went to the front hall. It was so nice being in the front hall again! Bob examined the cupboards carefully. Bob went to the dining room. Alice went to the living room. Bob went to the kitchen. Alice went to the front hall. Bob went to the d