Package Control: Install Package
Anaconda (damnwidget.github.io/anaconda/)
Theme - Soda (http://buymeasoda.github.io/soda-theme)
sudo apt install git
Install GitKraken.
Save the following text into a new configuration file using gedit ~/.gitconfig
:
$ apt install pandoc
$ cd git/dotapatch
$ pandoc --from=markdown --to=rst --output=PyPIREADME.rst README.md
Test here
TL;DR __repr__
should help us recreate an object even if it has random behaviour or if it changes itself during runtime. Check the final Deck Class.
>>> deck1 = Deck(5) # Unseeded Deck 1 without extra behaviour
[0, 3, 4, 2, 1]
>>> deck2 = Deck(5) # Unseeded Deck 2 without extra behaviour, different from Deck 1
[3, 4, 1, 2, 0]
>>> repr(deck1) # Deck 1's current state
Deck(5, 777611, 0)
>>> repr(deck2) # Deck 2's current state
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
from bs4 import BeautifulSoup | |
from requests import get as req_get | |
# Stating the bot's identification | |
headers = {'user-agent': 'topsongs:v0.1.0 by me@mail.com'} | |
url = 'http://www.billboard.com/charts/billboard-200' | |
request = req_get(url, headers=headers) | |
request.raise_for_status() # in case something goes wrong |
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
import numpy as np | |
from sys import argv | |
def relu(input_value): | |
output_value = max(0, input_value) | |
return output_value | |
children = int(argv[1]) | |
accounts = int(argv[2]) |
OlderNewer