Skip to content

Instantly share code, notes, and snippets.

View josephgallagher's full-sized avatar

Joseph Gallagher josephgallagher

  • Stony Brook, NY
View GitHub Profile
@josephgallagher
josephgallagher / mct.tex
Created July 9, 2014 20:32
Monotone Convergence Theorem
\documentclass[10pt]{article}
\usepackage{amsmath,amssymb,amscd}
\usepackage{geometry}
\usepackage{setspace}
\usepackage{ulem}
\usepackage[T1]{fontenc}
\usepackage{garamond}
\geometry{letterpaper,tmargin=1in,bmargin=1in,lmargin=1.2in,rmargin=1.2in}
\doublespacing
\title{Monotone Convergence Theorem\\{\small MAT.487: Measure/Integration Theory}}
@josephgallagher
josephgallagher / LatexNode.java
Created July 9, 2014 20:23
LaTeX parser written in Java - stack example
/**
* @author Joseph Gallagher
* This class defines a LaTeX block type node for use in a linked list
*/
public class LatexNode
{
private String block;
private LatexNode nextNode;
@josephgallagher
josephgallagher / BlankNameException.java
Created July 9, 2014 19:44
Simple inventory database written in Java - hashtable example
/**
* @author Joseph Gallagher,joseph.gallagher@stonybrook.edu
*
**/
public class BlankNameException extends Exception
{
public BlankNameException()
{
super("\nERROR:\n*****Blank Name*****\n");
}
@josephgallagher
josephgallagher / Makefile
Created July 9, 2014 19:40
Point in polygon test written in C - boundary degeneracies occur!!
#COMPILER
CC = gcc
#FLAGS AND OPTIONS
CFLAGS = -g -Wall
polygon : polygon.c polygon.h
$(CC) $(CFLAGS) -o polygon polygon.c polygon.h