start new:
tmux
start new with session name:
tmux new -s myname
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
| # Step 1: Import the random module | |
| import random | |
| # Step 2: Define a class for cards | |
| class Card: | |
| def __init__(self, rank, suit): | |
| self.rank = rank # an integer from 3 to 15 (3 is lowest and 15 is highest) | |
| self.suit = suit.lower() # a string from "spades", "clubs", "diamonds", or "hearts" | |
| def __str__(self): |