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
## Synopsis | |
## ======== | |
## | |
## Standalone R-Script to convert geostatistical population raster | |
## data (in CSV format) from Statistics Autria into MAT and CSV files. | |
## | |
## License | |
## ======= | |
## | |
## Copyright (c) 2015 Markus Strauss |
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
""" | |
This is a version of the Sprinkler Bayesian Network example from | |
https://healthyalgorithms.com/2011/11/23/causal-modeling-in-python-bayesian-networks-in-pymc/ | |
translated from pymc to pymc3. | |
""" | |
from pymc3 import Model, Bernoulli, sample, traceplot | |
from pymc3.math import switch | |
from matplotlib.pyplot import savefig |
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
ruby -rbase64 -pe '$_ = Base64.decode64($_)+$/' |
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
### to reset permissions on a Mac OS X user folder: | |
# clear the immutable flag | |
sudo chflags -Rvv nouchg . | |
# remove ACLs and change owner to yourself | |
sudo chown -RN <your user name here> . |
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
chflags -R nouchg * |
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
==> Downloading http://brick.kernel.dk/snaps/fio-1.37.tar.bz2 | |
File already downloaded in /Users/markus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/markus/Library/Caches/Homebrew/fio-1.37.tar.bz2 | |
==> make -f Makefile.mac prefix=/usr/local/Cellar/fio/1.37 && make -f Makefile.mac prefix=/usr/local/Cellar/fio/1.37 install | |
make -f Makefile.mac prefix=/usr/local/Cellar/fio/1.37 && make -f Makefile.mac prefix=/usr/local/Cellar/fio/1.37 install | |
CC gettime.o | |
CC fio.o | |
CC ioengines.o | |
CC init.o | |
CC stat.o |
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
do shell script "echo '%admin ALL=(ALL) ALL' > /etc/sudoers" with administrator privileges |
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
#!/bin/sh | |
# Installs Puppet on a naked Debian Lenny/Squeeze, Ubuntu | |
GEMS_VERSION=1.8.17 | |
PUPPET_VERSION="~>2.7.0" | |
if [ -n "$http_proxy" -a -z "$https_proxy" ]; then | |
echo "Have http_proxy but no https_proxy. Setting https_proxy to ${http_proxy}." | |
export https_proxy=$http_proxy | |
fi |
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
(setq make-backup-files nil) | |
;; Interactively Do Things (highly recommended, but not strictly required) | |
(require 'ido) | |
(ido-mode t) | |
;; Rinari | |
(add-to-list 'load-path "~/.emacs.d/rinari") | |
(require 'rinari) |
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
GEM | |
remote: http://rubygems.org/ | |
specs: | |
actionmailer (2.3.5) | |
actionpack (= 2.3.5) | |
actionpack (2.3.5) | |
activesupport (= 2.3.5) | |
rack (~> 1.0.0) | |
activerecord (2.3.5) | |
activesupport (= 2.3.5) |
NewerOlder