Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
| <script type="text/javascript" | |
| src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | |
| </script> | |
| <script type="text/javascript">MathJax.Hub.Config({tex2jax: {processEscapes: true, | |
| processEnvironments: false, inlineMath: [ ['$','$'] ], | |
| displayMath: [ ['$$','$$'] ] }, | |
| asciimath2jax: {delimiters: [ ['$','$'] ] }, | |
| "HTML-CSS": {minScaleAdjust: 125 } }); | |
| </script> |
| #! /bin/bash | |
| # edit this to install whatever you want that depends on numpy after you | |
| # reinstall numpy | |
| # edit these variables or add to them | |
| npsrc="$HOME/src/numpy/" | |
| spsrc="$HOME/src/scipy/" | |
| pdsrc="$HOME/src/pandas/" | |
| smsrc="$HOME/statsmodels/statsmodels/" |
| # HOMEBREW CONFIG | |
| # Move /usr/local/bin to the front of PATH by subbing it out and prepending | |
| export PATH=/usr/local/bin:${PATH/\/usr\/local\/bin:/} | |
| # add my user bin to PATH | |
| export PATH=$PATH:~/bin | |
| # stop checking for mail | |
| unset MAILCHECK |
| # coding: utf-8 | |
| # An attempt at implementing Bayesian optimization according to | |
| # Brochu, Cora, and de Freitas' tutorial | |
| # http://haikufactory.com/files/bayopt.pdf | |
| from sklearn import gaussian_process | |
| import numpy as np | |
| import scipy.optimize, scipy.stats as st |
| <script type="text/javascript" | |
| src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> |
| # this works just fine w/ multiprocess... | |
| # now with more flushing | |
| import sys | |
| import time | |
| sys.stdout.write("This is running") | |
| sys.stdout.flush() | |
| for i in range(5): | |
| sys.stdout.write(".") |
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
| import numpy as np | |
| from scipy import linalg | |
| def lse(A, b, B, d, cond=None): | |
| """ | |
| Equality-contrained least squares. | |
| The following algorithm minimizes ||Ax - b|| subject to the | |
| constrain Bx = d. | |
| ### MATPLOTLIBRC FORMAT | |
| # This is a sample matplotlib configuration file - you can find a copy | |
| # of it on your system in | |
| # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
| # there, please note that it will be overridden in your next install. | |
| # If you want to keep a permanent local copy that will not be | |
| # over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
| # like systems) and C:\Documents and Settings\yourname\.matplotlib | |
| # (win32 systems). |