Programming
Python to Houdini Python to Houdini

This class will open a port in Houdini an emulate a terminal with the ability to send and receive commands.

Author: eharetea
Date Modified: 10/03/10

Imagemagick Imagemagick

Imagemagick is a command line tool that you can use to manipulate images.

Author: eharetea
Date Modified: 05/10/10

Convolution Convolution

This java class emulates a signal that can be convolved with other signals in discrete time.

Author: eharetea
Date Modified: 04/27/10

Powersets Powersets

Creating the set of all possible subsets, the powerset of a set with Scheme.

Author: eharetea
Date Modified: 04/13/10

Redirecting IO stream Redirecting IO stream

Redirecting the input output stream using the << symbol in the c or bash shell. This is useful when you wish to run another program that is initialized in the shell through a command.

Author: eharetea
Date Modified: 01/19/10

Environment Diagrams Environment Diagrams

Example environment diagrams in Scheme.

Author: eharetea
Date Modified: 01/19/10

Message Passing vs Tagged Data Message Passing vs Tagged Data

Message passing is the underlying theme of object oriented programming. Data directed programming uses tagged-data.

Author: eharetea
Date Modified: 01/19/10

Y-combinator Y-combinator

Y-combinator is a way of defining a function that can call itself without the define function.

Author: eharetea
Date Modified: 01/19/10

Perfect Numbers Perfect Numbers

This demonstrates a mathematical concept of a perfect number in a computational abstraction utilizing scheme.

Author: eharetea
Date Modified: 01/19/10

Simple Tree Recursion Simple Tree Recursion

Implementing tree recursion with Scheme.

Author: eharetea
Date Modified: 01/19/10

run program run program

Run a program with applescript.

Author: eharetea
Date Modified: 11/11/09

bash if bash if

If statement in bash using the test statement.

Author: eharetea
Date Modified: 03/13/09

n-Dimensional Fit Function n-Dimensional Fit Function

This python program fits n-Dimensional data.

Author: eharetea
Date Modified: 02/23/09

Aligning LaTeX images Aligning LaTeX images

This bash script helps to align images, or define boundaries for external postscript files within a tex file that uses pstricks.

Author: eharetea
Date Modified: 02/22/09

Unit Vectors PStricks Unit Vectors PStricks

This generates the LaTeX code for creating vectors on a unit circle.

Author: eharetea
Date Modified: 02/21/09

Generate LaTeX Matrices Generate LaTeX Matrices

This PHP script generates LaTeX code for a matrix.

Author: eharetea
Date Modified: 02/21/09

LaTeX PStricks Stem Plots LaTeX PStricks Stem Plots

This PHP script generates Stem Plots in LaTeX using PStricks.

Author: eharetea
Date Modified: 02/21/09

BASH script for LaTeX generation BASH script for LaTeX generation

A simple BASH script for LaTeX rendering.

Author: eharetea
Date Modified: 02/20/09

Delete Whitespace Delete Whitespace

This script deletes whitespace in PHP.

Author: eharetea
Date Modified: 02/16/09

Dependent Files Dependent Files

This bash script creates README files within a php folder hierarchy and determines all functions, their arguments, and which php files use them.

Author: eharetea
Date Modified: 12/25/08

cs61a Review cs61a Review

Cs61a review material.

Author: eharetea
Date Modified: 12/18/08

Dynamic Arrays Dynamic Arrays

Create an arbitrarily sized array in a for loop.

Author: eharetea
Date Modified: 12/01/08

Distinguishable and Indistinguishable Distinguishable and Indistinguishable

Distinguishable and Indistinguishable boxes and objects. Combinations and permutations. Placing objects into boxes.

Author: eharetea
Date Modified: 11/05/08

Pseudocode in LaTeX Pseudocode in LaTeX

Using LaTeX to generate pseudocode-type display for algorithms.

Author: eharetea
Date Modified: 11/01/08

Scheme mathematics Scheme mathematics

Using scheme to compute derivatives and integrals.

Author: eharetea
Date Modified: 10/31/08

Sort Function Sort Function

A sorting function in C++ that uses a bubble sort algorithm.

Author: eharetea
Date Modified: 10/27/08

Vector Bubble Sort Vector Bubble Sort

Bubble sort a vector in scheme.

Author: eharetea
Date Modified: 10/26/08

Vector Filter Vector Filter

Creating a vector-filter function without the use of lists as an intermediate value.

Author: eharetea
Date Modified: 10/26/08

Vector Append Vector Append

How to create a vector append procedure in Scheme.

Author: eharetea
Date Modified: 10/26/08

Mapping Trees Mapping Trees

Applying functions to trees recursively.

Author: eharetea
Date Modified: 10/14/08

Return Path in Tree Return Path in Tree

Return the path of a given element within a tree.

Author: eharetea
Date Modified: 10/14/08

Environments Environments

Utilizing environments to make classes and objects.

Author: eharetea
Date Modified: 10/14/08

Binary Trees Binary Trees

Binary trees, binary search trees, and algorithms for searching these trees.

Author: eharetea
Date Modified: 10/10/08

Records Records

A record system using get and put within scheme.

Author: eharetea
Date Modified: 10/05/08

Filter procedure Filter procedure

Filters a sequence based on a predicate.

Author: eharetea
Date Modified: 10/03/08

Convert tree to list Convert tree to list

Convert a tree to a list.

Author: eharetea
Date Modified: 10/03/08

Deep Recursion Deep Recursion

Deep recursion in Scheme.

Author: eharetea
Date Modified: 10/03/08

Reversing lists Reversing lists

Reversing a list in scheme using iterative and recursive processes.

Author: eharetea
Date Modified: 10/03/08

Euclidean Algorithm Euclidean Algorithm

The Euclidean Algorithm is used to find the Greatest Common Divisor. Written in Scheme.

Author: eharetea
Date Modified: 09/28/08

Base Expansion Base Expansion

How to compute a base b expansion of a number n.

Author: eharetea
Date Modified: 09/28/08

Modular Exponentiation Modular Exponentiation

Modular Exponentiation is an important algorithm in cryptography and computer science.

Author: eharetea
Date Modified: 09/28/08

Substitute words in lists Substitute words in lists

Recursive string substitutions in lists in Scheme.

Author: eharetea
Date Modified: 09/16/08

Reading and writing files Reading and writing files

Writing and opening files in Scheme.

Author: eharetea
Date Modified: 09/14/08

Extracting Data Extracting Data

Extract data using regular expressions.

Author: eharetea
Date Modified: 08/03/08

Generate Wav Files Generate Wav Files

Generate audio files with Python for programming music!

Author: eharetea
Date Modified: 08/03/08

Music Intelligence Music Intelligence

Python music! Scales, keys, music, beats, and Python!

Author: eharetea
Date Modified: 08/03/08

Read File Data Read File Data

Using fscanf() to read characters from a file into a multi-dimensional character array.

Author: eharetea
Date Modified: 08/03/08

Struct Struct

Using the struct statement in C.

Author: eharetea
Date Modified: 08/03/08

Character Arrays Character Arrays

String functions in C involving arrays of characters.

Author: eharetea
Date Modified: 08/03/08

Passing arguments Passing arguments

How to pass arguments into a C program with the command line.

Author: eharetea
Date Modified: 08/03/08

Generate  ABC Generate ABC

Generate the open-source ABC format in C for MIDI music.

Author: eharetea
Date Modified: 08/03/08

Multidimensional Arrays Multidimensional Arrays

Using malloc() within Multi-dimensional Arrays in C.

Author: eharetea
Date Modified: 08/03/08

Create RIB Files Create RIB Files

Generation of RIB files with C.

Author: eharetea
Date Modified: 08/03/08

Game of Craps Game of Craps

A simulation of the game craps in C.

Author: eharetea
Date Modified: 08/03/08

Sort Array Sort Array

This program contains functions that sort arrays, and opens and reads files. Written in C.

Author: eharetea
Date Modified: 08/03/08

Comparison Operators Comparison Operators

Comparison operators, <, <=, >, >=, ==, etc.

Author: eharetea
Date Modified: 08/03/08

Random Numbers Random Numbers

Introduction to srand() function in C and having a maximum and minimum specified as a range for random numbers.

Author: eharetea
Date Modified: 08/03/08

Getchar Getchar

Two methods of using getchar() function in C to input characters and echo them to the textport.

Author: eharetea
Date Modified: 08/03/08

Division Division

Dividing floats with true division as opposed to floor division.

Author: eharetea
Date Modified: 08/02/08

Concatenating Concatenating

Create a string by concatenating a character and an integer.

Author: eharetea
Date Modified: 08/02/08

Get Subfolders Get Subfolders

Get all subfolders in a MySQL table using PHP.

Author: eharetea
Date Modified: 08/02/08

Factorial Factorial

Factorials using python.

Author: eharetea
Date Modified: 08/02/08

Print Stars Print Stars

How to create a modular function in C to print stars.

Author: eharetea
Date Modified: 08/02/08

Scanf inside a function Scanf inside a function

How to use the scanf statement within a function by using pointers.

Author: eharetea
Date Modified: 08/02/08

Add Fractions Add Fractions

Adds two fractions, and reduces them using the modulus function.

Author: eharetea
Date Modified: 08/02/08

Intervals and inversions Intervals and inversions

This code will determine the musical relationship between different notes based on a tonic. Includes inversions.

Author: eharetea
Date Modified: 08/02/08

Music Intervals Music Intervals

Combining programming and music through intervals.

Author: eharetea
Date Modified: 08/02/08

Return Character Array Return Character Array

Returning character arrays from a function in C.

Author: eharetea
Date Modified: 08/02/08

Arpeggio Arpeggio

Generation of arpeggio for .chan output.

Author: eharetea
Date Modified: 08/02/08

Notes in a Scale Notes in a Scale

Mathematically moves any notes into a scale.

Author: eharetea
Date Modified: 08/02/08

Frequency Frequency

Mathematics, music theory, and programming to create a table of the 88 keys of a grand piano.

Author: eharetea
Date Modified: 08/02/08

Count Time Count Time

Enter the number of seconds and return Hours, Minutes, Seconds.

Author: eharetea
Date Modified: 08/02/08

Count Money Count Money

Counting the number of pennies and converting to other change in C.

Author: eharetea
Date Modified: 08/02/08

Piano Frequency Piano Frequency

Mathematically generate all of the frequencies of the 88 keyboard piano.

Author: eharetea
Date Modified: 08/02/08

System Command System Command

The system command in C allows programmers to communicate with the computer's operating system.

Author: eharetea
Date Modified: 08/02/08

Generate New C File Generate New C File

A program that generates a blank C file with the specified filename, then opens the file in a vi editor in the terminal.

Author: eharetea
Date Modified: 08/02/08

Write File Write File

Write data to a file in C.

Author: eharetea
Date Modified: 08/02/08

Concatenate Concatenate

Concatenate two strings in C.

Author: eharetea
Date Modified: 08/02/08

Help Help

How to use the help function when you need assistance.

Author: eharetea
Date Modified: 08/02/08

Dir Function Dir Function

The dir function returns all the functions inside of a module.

Author: eharetea
Date Modified: 08/02/08

Reconstruct URL Reconstruct URL

Reconstruct a URL with PHP.

Author: eharetea
Date Modified: 08/01/08

noise noise

An attempt to re-create the noise() expression.

Author: eharetea
Date Modified: 08/01/08

User Input User Input

User input using pointers in C.

Author: eharetea
Date Modified: 08/01/08

Environment Variables Environment Variables

Emulate the setenv command and retrieve all environment variables.

Author: eharetea
Date Modified: 08/01/08

URL Openers URL Openers

Open up a url and send commands using Python.

Author: eharetea
Date Modified: 08/01/08

UNIX commands UNIX commands

Use the commands module for unix commands.

Author: eharetea
Date Modified: 08/01/08

Writing Files Writing Files

Writing to a file.

Author: eharetea
Date Modified: 08/01/08

Passing Arguments Passing Arguments

Methods for handling argument passing.

Author: eharetea
Date Modified: 08/01/08

User Input User Input

Get user input.

Author: eharetea
Date Modified: 08/01/08

Reading Files Reading Files

Methods for reading files and lines of files.

Author: eharetea
Date Modified: 08/01/08

Loops Loops

Basic for loop with an embedded if statement.

Author: eharetea
Date Modified: 08/01/08

Importing Importing

Using the import function to import modules.

Author: eharetea
Date Modified: 08/01/08

String Formating String Formating

Methods for string formatting in Python.

Author: eharetea
Date Modified: 08/01/08

Dictionary Methods Dictionary Methods

Basic dictionary methods.

Author: eharetea
Date Modified: 08/01/08

List Methods List Methods

Basic operations for lists.

Author: eharetea
Date Modified: 08/01/08

String Methods String Methods

Some string methods along with string replace, find, and where.

Author: eharetea
Date Modified: 08/01/08

For and While Loop For and While Loop

The very basics of for and while loops in Python.

Author: eharetea
Date Modified: 08/01/08

Functions Functions

Creating a basic function in Python.

Author: eharetea
Date Modified: 08/01/08

List Directories List Directories

Different methods for listing folders in a directory.

Author: eharetea
Date Modified: 08/01/08

Classes in C++ Classes in C++

Classes in C++.

Author: eharetea
Date Modified: 07/31/08

Pass in arguments Pass in arguments

Passing arguments in C++.

Author: eharetea
Date Modified: 07/31/08

Begin a Rails Project Begin a Rails Project

Setting up a Ruby on Rails (RoR) website.

Author: eharetea
Date Modified: 07/31/08

Pointers and Arrays Pointers and Arrays

Pointers and arrays in C++.

Author: eharetea
Date Modified: 07/31/08

More Pointers More Pointers

More pointers in C++.

Author: eharetea
Date Modified: 07/30/08

Pointers Pointers

A primer for pointers in C++.

Author: eharetea
Date Modified: 07/30/08

Redirect input output stream Redirect input output stream

This creates a dictionary from two lists, and redirects the input output stream to a file.

Author: eharetea
Date Modified: 07/30/08

More Basics More Basics

More Python basics.

Author: eharetea
Date Modified: 07/30/08

Print Print

Printing in C++.

Author: eharetea
Date Modified: 07/30/08

Floats Floats

A look at floats in C++.

Author: eharetea
Date Modified: 07/30/08

Guess Random Number Guess Random Number

C++ Program to guess a random number.

Author: eharetea
Date Modified: 07/30/08

Basic Function Basic Function

A basic function in C++.

Author: eharetea
Date Modified: 07/30/08

User Input User Input

User input using pointers.

Author: eharetea
Date Modified: 07/30/08

sed sed

A brief, yet in depth overview of the string replacing capabilities of the sed command. sed Unix Matrix

Author: eharetea
Date Modified: 07/30/08

User input with Gets User input with Gets

Use gets() to get user input.

Author: eharetea
Date Modified: 07/30/08

Generate Script Generate Script

Generating render scripts.

Author: eharetea
Date Modified: 07/30/08

icomposite icomposite

Compositing images... command line style.

Author: eharetea
Date Modified: 07/30/08

Basic PHP Basic PHP

PHP primer.

Author: eharetea
Date Modified: 07/30/08

Arrays Arrays

Arrays in C++.

Author: eharetea
Date Modified: 07/30/08

mysqldump mysqldump

Dump a mysql database to a .sql file.

Author: eharetea
Date Modified: 07/30/08

Python basics Python basics

Some basic operations in Python.

Author: eharetea
Date Modified: 07/30/08

Basic Perl Basic Perl

A basic overview of some perl one-liners.

Author: eharetea
Date Modified: 07/30/08

play sound play sound

Play sound command on an apple computer.

Author: eharetea
Date Modified: 07/30/08

vi text editor vi text editor

Tips for the vim and vi editors.

Author: eharetea
Date Modified: 07/30/08

General BASH tips General BASH tips

This includes some terminal key commands, bracing, basic math, and creating variables.

Author: eharetea
Date Modified: 07/30/08

rename rename

Renaming directories based on the parent directory.

Author: eharetea
Date Modified: 07/30/08

man tip man tip

Output a manual page to a file.

Author: eharetea
Date Modified: 07/30/08

head tail head tail

A trick using head and tail commands to pull out a line of a file.

Author: eharetea
Date Modified: 07/30/08

grep grep

The grep command comes in handy for parsing files.

Author: eharetea
Date Modified: 07/30/08

find find

Using the find command for various tasks in bash.

Author: eharetea
Date Modified: 07/30/08

du du

Lists folder size, in bash and freebsd.

Author: eharetea
Date Modified: 07/30/08

awk awk

A brief overview of the awk command.

Author: eharetea
Date Modified: 07/30/08