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
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" ] [ |
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
# 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 |
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
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': |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.