Skip to content

Instantly share code, notes, and snippets.

View andyinabox's full-sized avatar

Andy Dayton andyinabox

View GitHub Profile
@andyinabox
andyinabox / README.md
Last active November 9, 2015 19:15 — forked from timyates/README.md
Generating terminal gifs on OS X the free way

Didn't work any of this out, I just stuck things together that I found on the web

First, install the things:

brew install imagemagick
brew install ffmpeg

Then, I have a small (600px wide) iTerm window with a big font. Load Quicktime, and record screen (just the area of the terminal)

Trim and save the mov somewhere (lets say ~/Documents/term.mov)

Clouds to Circuits / Filesystems, Git, IDEs

Networks!

There are networks everywhere! Here are some kinds.

Centralized

centralized panopticon

@andyinabox
andyinabox / word_count.py
Created October 18, 2015 17:40
Word count example
import sys
# set our count variable as an empty dict
count = {}
# iterate through lines of input
for line in sys.stdin:
# strip whitespace and line breaks
line = line.strip()
# break into a list of words (break apart at spaces)
@andyinabox
andyinabox / serial_communication.ino
Created October 16, 2015 19:38
Serial Communication
Arduino code for serial communication
// set our sensor pin
int sensorPin = A1;
// set our sensor value
int sensorVal;
void setup() {
pinMode(sensorPin, INPUT);
Serial.begin(9600);
@andyinabox
andyinabox / quiz_answers.md
Last active October 16, 2015 13:25
Some answers for quizzes for the first half of class

List two examples of a "programme" that Gerstner lists in your reading.

In Karl's words:

  • "Programme as Logic"
  • "Programme as morphology"
  • "Programme as grid"
  • "Programme as commercial design"
  • "Programme as computer graphics"
  • "Programme as movement"
@andyinabox
andyinabox / board.svg
Last active October 7, 2015 15:48
test1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyinabox
andyinabox / exercise_b.py
Last active October 6, 2015 02:06 — forked from aparrish/exercise_b.py
RWET Programming Exercise B
#
# RWET Programming Exercise B
#
# This worksheet is also a Python program. Your task is to read the
# task descriptions below and then write one or more Python statements to
# carry out the tasks. There's a Python "print" statement before each
# task that will display the expected output for that task; you can use
# this to ensure that your statements are correct.
#
@andyinabox
andyinabox / exercise_c.py
Created October 6, 2015 01:47 — forked from aparrish/exercise_c.py
Programming Exercise C for RWET (dictionaries, sets, list comprehensions)
#
# Worksheet #3
#
# This worksheet is also a Python program. Your task is to read the
# task descriptions below and then write one or more Python statements to
# carry out the tasks. There's a Python "print" statement before each
# task that will display the expected output for that task; you can use
# this to ensure that your statements are correct.
#
# In this worksheet, some of the tasks will throw an error that causes
@andyinabox
andyinabox / brainfuck-pi
Created September 30, 2015 01:44
Pi in Brainfuck
>
+++++
+++++
+++++
+++++
+++++
+++++
+++++
+++++
+++++
@andyinabox
andyinabox / exercise_a.txt
Last active September 29, 2015 03:13 — forked from aparrish/exercise_a.txt
Programming Exercise A for RWET
RWET Programming Exercise A
Text processing on the UNIX command line
---
Step 1. Write the command to download the text file with the following URL to
your computer with the filename "frost.txt". (Hint: You'll need to use the
"curl" command, and possibly redirection with ">").
Here's the URL:
http://rwet.decontextualize.com/texts/frost.txt