From 5ecf648cd54e49b05ae96d5886f18b2308faceb7 Mon Sep 17 00:00:00 2001 From: Jeremy Boggs Date: Wed, 9 Feb 2022 14:56:44 -0500 Subject: [PATCH 1/5] Adds new CSS. --- assets/css/style.scss | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 assets/css/style.scss diff --git a/assets/css/style.scss b/assets/css/style.scss new file mode 100644 index 0000000..db4d55c --- /dev/null +++ b/assets/css/style.scss @@ -0,0 +1,20 @@ +--- +--- + +@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;500;700&display=swap'); + +html,body { + margin:0; + padding:0; +} + +html { + background-color: rgb(47, 62, 70); + font: 20px/1.625em Quicksand, sans-serif; +} + +body { + max-width: 800px; + margin: 2rem auto; +} + From c961ed49c81966638d956657b84413f8f3f45612 Mon Sep 17 00:00:00 2001 From: shane-et-al Date: Wed, 30 Mar 2022 12:20:14 -0400 Subject: [PATCH 2/5] clarify algorithms --- Week01/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week01/README.md b/Week01/README.md index eec59eb..74d0213 100644 --- a/Week01/README.md +++ b/Week01/README.md @@ -22,7 +22,7 @@ This first week is mostly going to be a lot of setting up your computer so you c ## New Terms (Also see: [Command Line Glossary](https://github.com/scholarslab/CodeLab/blob/master/Week01/commandline.md#glossary) -* **Algorithm**: An unambiguous and well-defined set of instructions. A computer program is an algorithm, but so is a cookbook recipe. +* **Algorithm**: An unambiguous and well-defined set of instructions. A computer program is an algorithm, but so is a cookbook recipe. There's really nothing special about algorithms, nothing inherently mysterious or sinister. The algorithm is a simple idea, but computers have allowed them to grow to incomprehensible levels of complexity. * **Programming Language**: A particular kind of computer code in which programs are written. There are other kinds of computer languages (such as markup languages like HTML that are used to describe a document); programming languages instruct a computer to ingest input, produce output, manipulate data, calculate equations, and the such. Many thousands of programming languages exist, often tailored for specialized applications or types of computers. * **Python**: One popular programming language originally released in 1991. Python is extremely common in digital humanities and adjacent fields like data science because it is easy for non-programmers to learn and has a large library (both built-in and third-party) to perform common tasks. Python 3 is the current major version, which is not completely backward-compatible with the long-running previous version, Python 2. From 7e66b0ed1533c4739bdacf25a346ebba1bb5d811 Mon Sep 17 00:00:00 2001 From: shane-et-al Date: Wed, 22 Jun 2022 16:00:20 -0400 Subject: [PATCH 3/5] notes for env setup 2022 --- Week01/environment_setup.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Week01/environment_setup.md b/Week01/environment_setup.md index 1aae50f..5c8f807 100644 --- a/Week01/environment_setup.md +++ b/Week01/environment_setup.md @@ -1,6 +1,11 @@ ## SHANE TODO 2022 Github started requiring personal access tokens in August 2021. For the next Praxis session, it's probably a good idea to see if there's one good way to set that up. VS Code's github module seems to package a turnkey git credential manager, but for WSL users, they may need to [set something up like this](https://github.com/microsoft/Git-Credential-Manager-Core) (Note to future Shane: this is moderately annoying to do). +Pipenv venv in projects with `export PIPENV_VENV_IN_PROJECT=1` + +Linter in MacOS? + + # Code Lab Week 1: Environment Setup If you're using a Mac, you're most of the way there already. You almost certainly have the shell that we'll be using already (more on what that means later). Python, the programming language we'll be using is already built into your computer. But we'll want to set it up so it works just like we want it to. From 008881caa9fd366205edab0d443c0f982da29275 Mon Sep 17 00:00:00 2001 From: shane-et-al Date: Wed, 22 Jun 2022 16:59:40 -0400 Subject: [PATCH 4/5] Syntax error in find_all --- Week13/lesson.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Week13/lesson.md b/Week13/lesson.md index b7e8970..ee9b2f4 100644 --- a/Week13/lesson.md +++ b/Week13/lesson.md @@ -210,9 +210,11 @@ We can see that the outer div tag has an attribute, `class="blog-meta__author"`, ```python ... -print(soup.find_all("div",class="blog-meta__author")) +print(soup.find_all("div",class_="blog-meta__author")) ``` +(We use the standard convention of appending an underscore after "class" to distinguish the html notion of class from the built-in Python concept of class.) + This bit of code results in a Python list containing 4 Tag objects representing the authors of the 4 most recent blog posts. We can drill down into each of these Tags to get at their contents. For example, we can get the name for each author by getting the text of the `a` tags. The `find()` method is like `find_all()`, but just returns the first result (so it's equivalent to `find_all()[0]`). ```python From 7b42bd49d9efda36bafbc24298496fb08d440e20 Mon Sep 17 00:00:00 2001 From: Jeremy Boggs Date: Thu, 25 Jan 2024 10:13:16 -0500 Subject: [PATCH 5/5] Adds jekyll-related things to gitignore. --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 496ee2c..633618c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.DS_Store \ No newline at end of file +.DS_Store +_site +.jekyll-cache