- Chapter 1 (Introduction): Covers the basics of Computer Science and programming. This appears to be one of the longest chapters, but is actually one of the easiest and shortest. There is a lot of ground to cover, but the pace is very gentle.
- Part A: Explains what a program is and the basic input-processing-output model. Covers basics of values and types, simple math and logic, and interactive evaluation of expressions.
- Part B: Explains variables and assignment statements. Introduces the idea of modules and organizing code with comments and imports. The last bit is about strings and string operations (e.g., slicing). Also covers the idea of errors/exceptions.
- Chapter 2 (Functions): Introduces the idea of functions as "the smallest atomic unit of programming". This chapter is a little harder than the previous, but students usually don't struggle too much.
- Part A: Starts
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
(function(){ | |
const token = "GITHUB_TOKEN"; // replace with your GitHub token | |
const BASE_URL = "https://api.github.com"; | |
const ORG_NAME = "REPLACE_WITH_ORG_NAME"; | |
const REPO_BASE_NAME = "REPLACE_WITH_REPO_STARTER_"; | |
const repos = [ | |
// Put your student names here, as a list of strings. | |
// You can easily get a list of submitted students from the Download->Download Grades button on github classroom. | |
]; |
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
Animal | Animal | The form dealing with animals and animal products. | |
---|---|---|---|
Air | Auram | The form dealing with air, weather, and gases. | |
Body | Corpus | The form dealing with the human body. | |
Mind | Mentem | The form dealing with thoughts, emotions, and mental processes. | |
Fire | Ignem | The form dealing with fire and heat. | |
Water | Aquam | The form dealing with water and liquids. | |
Earth | Terram | The form dealing with earth and minerals. | |
Plant | Herbam | The form dealing with plants and plant products. | |
Metal | Metallum | The form dealing with metals and ores. | |
Spirit | Spiritus | The form dealing with spirits and ethereal entities. |
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
""" | |
This is my milestone 1 submission of Galaga. I only got a few features done, unfortunately. | |
Here is the link to my video: | |
https://www.youtube.com/watch?v=dQw4w9WgXcQ | |
## Galaga Features | |
# Milestone 1 | |
[X] Spaceship exists | |
[X] Spaceship moves |
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
(async function() { | |
function startDialog(title, body) { | |
if ($('#dialog').length == 0) { | |
$(document.body).append('<div title="' + title + | |
'" id="dialog"></div>'); | |
} | |
$("#dialog").dialog({ | |
autoOpen: false, | |
show: "blind", |
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
(async function(){ | |
// https://stackoverflow.com/questions/8735792/how-to-parse-link-header-from-github-api | |
let linkParser = (linkHeader)=>{ | |
let re = /,[\s]*<(.*?)>;[\s]*rel="next"/g; | |
let result = re.exec(linkHeader); | |
if (result == null) { | |
return null; | |
} | |
return result[1]; |
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
## Generally useful built libraries | |
import sys | |
import os | |
import json | |
import math | |
import re | |
import itertools | |
from collections import defaultdict | |
from dataclasses import dataclass | |
from datetime import timedelta, datetime |
Hello hackers! Here are some suggestions for hacking during the Hackathon of cool things to try playing with.
Want to make something with Python? Here are some cool things you might try using:
Want to have Python running directly in the browser? You can use a new system called Pyodide! I found this guide that seemed like it would get you something basic going: https://testdriven.io/blog/build-spa-with-python-part-1/
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 dataclasses import dataclass | |
@dataclass | |
class Teacher: | |
name: str | |
years_teaching: int | |
has_corgi: bool | |
courses: list[str] | |
me = Teacher("Dr. Bart", 6, True, ["CISC108", "CISC320"]) |
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
(async function() { | |
function startDialog(title, body) { | |
if ($('#dialog').length == 0) { | |
$(document.body).append('<div title="' + title + | |
'" id="dialog"></div>'); | |
} | |
$("#dialog").dialog({ | |
autoOpen: false, | |
show: "blind", |
NewerOlder