This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright: 2009 Elson Liu | |
# License: BSD | |
""" | |
Reproduces Fig. 2 in Moharam, Grann, Pommet, and Gaylord, "Formulation for | |
stable and efficient implementation of the rigorous coupled-wave analysis | |
of binary gratings", J. Opt. Soc. Am. A 12(5), pp. 1068–1076, 1995 | |
(doi:10.1364/JOSAA.12.001068) | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% LaTeX settings for MATLAB code listings | |
% based on Ted Pavlic's settings in http://links.tedpavlic.com/ascii/homework_new_tex.ascii | |
\usepackage{listings} | |
\usepackage[usenames,dvipsnames]{color} | |
% This is the color used for MATLAB comments below | |
\definecolor{MyDarkGreen}{rgb}{0.0,0.4,0.0} | |
% For faster processing, load Matlab syntax for listings | |
\lstloadlanguages{Matlab}% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% LaTeX settings for Subversion keyword substitution | |
\usepackage{svn-multi} | |
\svnidlong | |
{$HeadURL: $} | |
{$LastChangedDate: $} | |
{$LastChangedRevision: $} | |
{$LastChangedBy: $} | |
\svnid{$Id: $} | |
% don't forget to set the Subversion properties: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\NeedsTeXFormat{LaTeX2e}[1994/06/01] | |
\ProvidesClass{constitution}[2009/05/15 v0.0.1 Document class for typesetting a constitution] | |
\LoadClass{report} | |
\RequirePackage[letterpaper,margin=1in]{geometry} | |
\RequirePackage[colorlinks,linkcolor=blue]{hyperref} | |
%\usepackage{hyperref} | |
\RequirePackage{titlesec} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright: 2009 Elson Liu | |
# License: BSD | |
# Requires: urllib2 | |
# Requires: xlrd | |
""" | |
Download enrollment data for the University of Michigan, Ann Arbor campus | |
and apportion seats on the Michigan Student Assembly | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\NeedsTeXFormat{LaTeX2e}[1994/06/01] | |
\ProvidesClass{homework}[2009/05/15 v0.0.1 Document class for typesetting homework] | |
\LoadClass[12pt,letterpaper,answers]{exam} | |
\RequirePackage{xspace} | |
\newcommand{\course}[1]{\def\@course{#1\xspace}} | |
\newcommand{\problemlist}[1]{\begin{center}\large #1 \end{center}} | |
\makeatletter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Harminv < Formula | |
url 'http://ab-initio.mit.edu/harminv/harminv-1.3.1.tar.gz' | |
homepage 'http://ab-initio.mit.edu/wiki/index.php/Harminv' | |
md5 'd3f49f1c90856b3b2e8b77dc4a99c37a' | |
def install | |
ENV.fortran | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Nlopt < Formula | |
url 'http://ab-initio.mit.edu/nlopt/nlopt-2.2.4.tar.gz' | |
homepage 'http://ab-initio.mit.edu/wiki/index.php/NLopt' | |
md5 '9c60c6380a10c6d2a06895f0e8756d4f' | |
def install | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
"--prefix=#{prefix}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Libctl < Formula | |
url 'http://ab-initio.mit.edu/libctl/libctl-3.1.tar.gz' | |
homepage 'http://ab-initio.mit.edu/wiki/index.php/Libctl' | |
md5 '173fdc658b652a4ddfb983efc849e760' | |
depends_on 'guile' | |
def install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class H5utils < Formula | |
url 'http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz' | |
homepage 'http://ab-initio.mit.edu/wiki/index.php/H5utils' | |
md5 '46a6869fee6e6bf87fbba9ab8a99930e' | |
depends_on 'hdf5' | |
def install |
OlderNewer