From e8f8739f55c2f7302fc6d5d808997e2059aa0d7b Mon Sep 17 00:00:00 2001 From: git Date: Fri, 18 Sep 2020 10:14:15 -0400 Subject: [PATCH 1/2] correct series notation --- ch01.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch01.asciidoc b/ch01.asciidoc index 22540968..cb11211e 100644 --- a/ch01.asciidoc +++ b/ch01.asciidoc @@ -612,7 +612,7 @@ There are many proofs of this theorem, but perhaps the simplest is using what we ++++ ++++ From 13151122b208be72fe65960dc879736c8d39803e Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Fri, 18 Sep 2020 10:36:41 -0400 Subject: [PATCH 2/2] Force new lines in README.md for clarity Forcing the new lines displays better in gh flavored markdown --- README.md | 59 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index a637b041..974a6e90 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -#[Programming Bitcoin](https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/) +# [Programming Bitcoin](https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/) -###BY[ JIMMY SONG](https://github.com/jimmysong) +### BY[ JIMMY SONG](https://github.com/jimmysong) -#####[O'Reilly Media, Inc.March 2019](https://learning.oreilly.com/library/publisher/oreilly-media-inc/) +##### [O'Reilly Media, Inc.March 2019](https://learning.oreilly.com/library/publisher/oreilly-media-inc/) # LICENSE @@ -11,12 +11,12 @@ Repository for the book to be published by O'Reilly. This book will be licensed under [CC-BY-NC-ND](https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode) once the book is published. -##Setting Up +## Setting Up To get the most out of this book, you’ll want to create an environment where you can run the example code and do the exercises. Here are the steps required to set everything up: -###1. Install Python 3.5 or higher on your machine: +### 1. Install Python 3.5 or higher on your machine: Windows: [https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64.exe @@ -27,51 +27,64 @@ macOS: [https://www.python.org/ftp/python/3.6.2/python-3.6.2-macosx10.6.pkg](https://www.python.org/ftp/python/3.6.2/python-3.6.2-macosx10.6.pkg) Linux -#####See your distro docs (many Linux distributions, like Ubuntu, come with Python 3.5+ preinstalled) +##### See your distro docs (many Linux distributions, like Ubuntu, come with Python 3.5+ preinstalled) -###2. Install pip by downloading this script: [https://bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py). +### 2. Install pip by downloading this script: [https://bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py). -###3. Run this script using Python 3: +### 3. Run this script using Python 3: `$ python3 get-pip.py` -###4. Install Git. The commands for downloading and installing it are at [https://git-scm.com/downloads](https://git-scm.com/downloads). +### 4. Install Git. The commands for downloading and installing it are at [https://git-scm.com/downloads](https://git-scm.com/downloads). -###5. Download the source code for this book: +### 5. Download the source code for this book: + +`$ git clone https://github.com/jimmysong/programmingbitcoin` -`$ git clone https://github.com/jimmysong/programmingbitcoin` `$ cd programmingbitcoin` -###6. Install virtualenv: +### 6. Install virtualenv: `$ pip install virtualenv` -###7. Install the requirements: +### 7. Install the requirements: Linux/macOS -`$ virtualenv -p python3 .venv` +`$ virtualenv -p python3 .venv` + `$ . .venv/bin/activate` + `(.venv) $ pip install -r requirements.txt` Windows -`C:\programmingbitcoin> virtualenv -p` -`C:\PathToYourPythonInstallation\Python.exe .venv` -`C:\programmingbitcoin> .venv\Scripts\activate.bat` -`C:\programmingbitcoin> pip install -r requirements.txt` -###8. Run Jupyter Notebook: +`C:\programmingbitcoin> virtualenv -p` + +`C:\PathToYourPythonInstallation\Python.exe .venv` + +`C:\programmingbitcoin> .venv\Scripts\activate.bat` + +`C:\programmingbitcoin> pip install -r requirements.txt` + +### 8. Run Jupyter Notebook: `(.venv) $ jupyter notebook` + `[I 11:13:23.061 NotebookApp] Serving notebooks from local directory: /home/jimmy/programmingbitcoin` - `[I 11:13:23.061 NotebookApp] The Jupyter Notebook is running at: + +`[I 11:13:23.061 NotebookApp] The Jupyter Notebook is running at: [I 11:13:23.061 NotebookApp] http://localhost:8888/?token= f849627e4d9d07d2158e3fcde93590eff4a9a7a01f65a8e7` - `[I 11:13:23.061 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).` - `[C 11:13:23.065 NotebookApp]` + +`[I 11:13:23.061 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).` + +`[C 11:13:23.065 NotebookApp]` + `Copy/paste this URL into your browser when you connect for` `the first time, to login with a token:` + `http://localhost:8888/?token=f849627e4d9d07d2158e3fcde93590eff4a9a7a01f65a8e7` @@ -79,4 +92,4 @@ You should have a browser open up automatically, as shown in [Figure P-1](https: ![](https://raw.githubusercontent.com/jimmysong/programmingbitcoin/master/images/prbc_0001.png) -MORE INFO AT: [https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/preface01.html#setting_up](https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/preface01.html#setting_up) \ No newline at end of file +MORE INFO AT: [https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/preface01.html#setting_up](https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/preface01.html#setting_up)