This file contains 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
1 | |
2 | |
3 | |
4 |
This file contains 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
\documentclass[10pt]{article} | |
\usepackage{labels} | |
\usepackage{url} | |
\newcommand{\brk}{$\cdot$ } | |
%\LabelGridtrue % Enable this to | |
\LabelCols=2% Number of columns of labels per page | |
\LabelRows=6% Number of rows of labels per page | |
\begin{document} | |
\numberoflabels=12 |
This file contains 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
@echo off | |
rem MSSDK71OPTS.BAT | |
rem | |
rem Compile and link options used for building MEX-files | |
rem using the Microsoft Windows Software Development Kit. | |
rem | |
rem $Revision: 1.1.6.2 $ $Date: 2011/03/09 05:35:27 $ | |
rem Copyright 2010 The MathWorks, Inc. | |
rem | |
rem StorageVersion: 1.0 |
This file contains 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
\documentclass{article} | |
\usepackage{booktabs} | |
\usepackage{geometry} | |
\usepackage{tabularx} | |
\geometry{lmargin=72pt,tmargin=72pt,textwidth=350pt,marginparwidth=144pt} | |
\usepackage{tufte-sidenotes} | |
\begin{document} | |
Here is demo of the \verb#tufte-sidenotes# style. |
This file contains 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
/** | |
* @file exact_modularity.cc | |
* Find the cluster of largest modularity in a small graph by exhaustive | |
* enumeration. | |
* @author David F. Gleich | |
*/ | |
/** | |
* History | |
* ------- |
This file contains 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
#if defined(_WIN32) || defined(_WIN64) | |
#pragma warning(disable:4996) | |
#include <random> | |
#define tr1ns std::tr1 | |
#elif defined __GNUC__ | |
#define GCC_VERSION (__GNUC__ * 10000 \ | |
+ __GNUC_MINOR__ * 100 \ | |
+ __GNUC_PATCHLEVEL__) | |
#if GCC_VERSION < 40300 | |
#include <tr1/random> |
This file contains 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 | |
import sys | |
import array | |
import itertools | |
import random | |
def test(memsize): | |
print "allocating" | |
a = array.array('d') |
This file contains 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 | |
""" | |
tweets.py | |
========= | |
Implement a cached tweet database with all the rate limiting | |
and message filting. | |
Usage |
This file contains 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 -*- | |
""" | |
Google Translate API code | |
Based on http://code.activestate.com/recipes/576890/ but heavily modified. | |
""" | |
__author__ = 'David F. Gleich' | |
__version__ = 1 |
This file contains 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
# Two groups? | |
data[,3] <- as.factor(weekdays(data[,1])) | |
plot(data[,3],data[,2],main='Live Births by Day of Week') | |
png('dob-dayofweek.png',width=700) | |
plot(data[,3],data[,2],main='Live Births by Day of Week') | |
dev.off() # write it | |