We must warn the reader about another semantic confusion which has caused error and controversy in probability theory for many decades. It would be quite wrong and misleading to call
g(f)the ‘posterior distribution off’, because that verbiage would imply to the unwary that f itself is varying and is ‘distributed’ in some way. This would be another form of the mind projection fallacy, confusing reality with a state of knowledge about reality. In the problem we are discussing,fis simply an unknown constant parameter; what is ‘distributed’ is not the parameter, but the probability. Use of the terminology ‘probability distribution forf’ will be followed, in order to emphasize this constantly.Of course, nothing in probability theory forbids us to consider the possibility that
fmight vary with time or with circumstance; indeed, probability theory enables us to analyze that case fully, as we shall see later. But then we should recognize that we are considering a different problem than the one
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| module SidekiqThreadSafetyDemo | |
| class Threadsafe | |
| include Sidekiq::Worker | |
| include Sidetiq::Schedulable | |
| sidekiq_options :queue => :default | |
| recurrence{ secondly } | |
| SAFETY = Mutex.new | |
| @@count = 0 |
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 | |
| """ | |
| Check all existing Docker containers for their mapped paths, and then purge any | |
| zombie directories in docker's volumes directory which don't correspond to an | |
| existing container. | |
| Taken from: https://github.com/docker/docker/issues/6354 | |
| """ | |
| import logging | |
| import os |
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
| module Change where | |
| data Coin a = Penny a | Nickel a | Dime a | Quarter a deriving (Eq, Ord, Show) | |
| type Coins = [Coin Int] | |
| denominations = [1, 5, 10, 25] | |
| coinCount :: Int -> Int -> Coin Int | |
| coinCount amount denomination |
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 bash | |
| # BASH TIPS - | |
| # http://kvz.io/blog/2013/11/21/bash-best-practices/ | |
| set -o errexit | |
| set -o nounset | |
| set -o xtrace | |
| # TMUX CONFIG |
I hereby claim:
- I am jared-prime on github.
- I am 1ijk (https://keybase.io/1ijk) on keybase.
- I have a public key ASBCiwiAriRMub7tHOVk2ofaXDdmZUIuezlPSBsFSKlFaQo
To claim this, I am signing this object:
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
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "math" | |
| ) | |
| // constants and inverse error function | |
| // found from http://libit.sourceforge.net/math_8c.html |
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
| server { | |
| listen 8443 ssl http2; | |
| listen [::]:8443 ssl http2; | |
| ssl_certificate /some/place/server.crt; | |
| ssl_certificate_key /some/place/server.key; | |
| } | |
| location /internal { | |
| proxy_http_version 2.0; | |
| proxy_pass http://$some_ip:50051; |
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
| FROM nvidia/cuda:9.0-base-ubuntu16.04 | |
| LABEL maintainer="Jared Davis <[email protected]>" | |
| # Pick up some TF dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| cuda-command-line-tools-9-0 \ | |
| cuda-cublas-9-0 \ | |
| cuda-cufft-9-0 \ |