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
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import locale | |
from bs4 import BeautifulSoup | |
from urllib2 import urlopen | |
This file has been truncated, but you can view the full file.
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
## Output of brew --config | |
crntaylor:opencv crntaylor$ brew --config | |
HOMEBREW_VERSION: 0.9.4 | |
ORIGIN: https://github.com/mxcl/homebrew | |
HEAD: 7be8b458f96da9d37d009c1a96888419f646c7cf | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: quad-core 64-bit sandybridge | |
OS X: 10.7.5-x86_64 |
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
function code = mcode(x) | |
% MCODE Returns a char array containing Matlab code that evaluates to the | |
% object x. That is, the two quantities | |
% | |
% >> x | |
% >> eval(mcode(x)) | |
% | |
% should be identical. | |
% |
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
Given a class representing covariant functors between categories | |
> import Control.Category | |
> class (Category hom, Category hom') => Covariant f hom hom' where | |
> cmap :: hom a b -> hom' (f a) (f b) | |
and a class for adjunctions | |
> class (Covariant f hom hom', Covariant g hom' hom) => Adjunction f g hom hom' where |
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
{-# LANGUAGE NoImplicitPrelude | |
, MultiParamTypeClasses | |
, FlexibleInstances | |
, FunctionalDependencies | |
, UndecidableInstances #-} | |
import Prelude hiding (id, (.)) | |
import qualified Prelude |
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
{-# LANGUAGE FlexibleContexts, UndecidableInstances, RankNTypes, ConstraintKinds #-} | |
module ADT where | |
------------ | |
-- Part 1 -- | |
------------ | |
-- The unit type '1', equivalent to '()' |
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
the | |
be | |
am | |
are | |
is | |
was | |
were | |
been | |
to | |
of |
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
/********************************************************************** | |
* | |
* Customize the values given below to suit your needs. | |
* You can make additional copies of this file with | |
* different customizated settings if you need to load | |
* jsMath with different parameters. | |
* | |
* Load this page via: | |
* | |
* <SCRIPT SRC="path-to-jsMath/easy/load.js"></SCRIPT> |
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
function em(X,theta) | |
% Expectation maximization, P coins | |
% | |
% X is TxN matrix of coin flip results (1 = heads, 0 = tails) | |
% theta is 1xP vector of probabilities (0 < theta < 1) | |
% Convergence criterion (relative difference) | |
tol = 1e-6; | |
% Compute parameters of distribution assigning coins to outputs |
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
State Winner Confidence | |
California DEM 100% | |
Connecticut DEM 100% | |
District of Columbia DEM 100% | |
Massachusetts DEM 100% | |
New York DEM 100% | |
Vermont DEM 100% | |
Maryland DEM 100% | |
Washington DEM 100% | |
Hawaii DEM 100% |