Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gitignore #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
.DS_Store
_site
.jekyll-cache
2 changes: 1 addition & 1 deletion Week01/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
5 changes: 5 additions & 0 deletions Week01/environment_setup.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion Week13/lesson.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -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;
}