Skip to content

Instantly share code, notes, and snippets.

View cowpig's full-sized avatar

Max cowpig

View GitHub Profile
ul [ class "nav navbar-nav main-nav" ] [
li [ class "sup", attribute "data-what" "" ] [
a [ href "", title "Home" ] [
i [ class "fa fa-house" ] [],
text " Home "
]
],
li [ class "spacer" ] [ text "|" ],
li [] [
a [ attribute "data-hotload" "", href "sdfsdfsfsf", title "Tables" ] [
@cowpig
cowpig / install-tensorflow.sh
Last active January 26, 2016 14:10 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
sudo apt-get install git
git clone git@github.com:cowpig/dotfiles.git
@cowpig
cowpig / tictactoe.py
Created November 3, 2015 00:23
A simple Tic-Tac-Toe for the terminal
class TicTacToe(object):
def __init__(self):
self.board = [" "] * 9
self.current_player = 'x'
def __repr__(self):
return " {} | {} | {} \n ----------- \n {} | {} | {} \n ----------- \n {} | {} | {} ".format(*self.board)
def switch_players(self):
if self.current_player == 'x':
@cowpig
cowpig / a_b_test.ipynb
Created November 1, 2015 20:10
Binomial A/B Test Simulation with the PyMC library
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.