cs107-lecture-examples

Example codes used during Harvard CS107 lectures
git clone https://git.0xfab.ch/cs107-lecture-examples.git
Log | Files | Refs | README | LICENSE

ModeNameSize
-rw-r--r--LICENSE21L
-rw-r--r--README5L
-rwxr-xr-xlecture03/redirections.sh19L
-rwxr-xr-xlecture03/shell_scripting/file_check.sh24L
-rwxr-xr-xlecture03/shell_scripting/if_conditionals.sh24L
-rwxr-xr-xlecture03/shell_scripting/int_comparison.sh11L
-rwxr-xr-xlecture03/shell_scripting/my_exec11L
-rwxr-xr-xlecture03/shell_scripting/string_comparison.sh10L
-rwxr-xr-xlecture03/this_command_exists_locally6L
-rw-r--r--lecture04/diff/.gitignore1L
-rw-r--r--lecture04/diff/README.md12L
-rw-r--r--lecture04/diff/branch_A/hello.py12L
-rw-r--r--lecture04/diff/branch_B/hello.py12L
-rw-r--r--lecture04/git_interactive_rebase/.gitignore1L
-rwxr-xr-xlecture04/git_interactive_rebase/setup.sh30L
-rw-r--r--lecture04/git_objects/.gitignore1L
-rwxr-xr-xlecture04/git_objects/setup.sh16L
-rw-r--r--lecture05/git_remote/.gitignore1L
-rwxr-xr-xlecture05/git_remote/setup.sh33L
-rw-r--r--lecture06/notebooks/python_1.ipynb1335L
-rw-r--r--lecture06/notebooks/python_1.md499L
-rw-r--r--lecture06/notebooks/python_2.ipynb893L
-rw-r--r--lecture06/notebooks/python_2.md415L
-rw-r--r--lecture07/examples_in_slides/01.py7L
-rw-r--r--lecture07/examples_in_slides/02.py29L
-rw-r--r--lecture07/examples_in_slides/03.py21L
-rw-r--r--lecture07/examples_in_slides/04.py26L
-rw-r--r--lecture07/examples_in_slides/05.py15L
-rw-r--r--lecture07/examples_in_slides/06.py42L
-rw-r--r--lecture07/examples_in_slides/07.py32L
-rw-r--r--lecture07/yapf/.style.yapf2L
-rw-r--r--lecture07/yapf/README.md15L
-rw-r--r--lecture07/yapf/file1.py14L
-rwxr-xr-xlecture07/yapf/maintenance/format_code.sh9L
-rw-r--r--lecture07/yapf/other_code/file2.py14L
-rw-r--r--lecture08/FrenchDeck.py49L
-rw-r--r--lecture08/Thing.py44L
-rw-r--r--lecture09/python_project/.gitignore4L
-rw-r--r--lecture09/python_project/LICENSE21L
-rw-r--r--lecture09/python_project/README.md18L
-rw-r--r--lecture09/python_project/pyproject.toml6L
-rw-r--r--lecture09/python_project/setup.cfg36L
-rw-r--r--lecture09/python_project/src/cs107_package/__init__.py9L
-rw-r--r--lecture09/python_project/src/cs107_package/__main__.py3L
-rw-r--r--lecture09/python_project/src/cs107_package/subpkg_1/__init__.py4L
-rw-r--r--lecture09/python_project/src/cs107_package/subpkg_1/module_1.py5L
-rw-r--r--lecture09/python_project/src/cs107_package/subpkg_1/module_2.py6L
-rw-r--r--lecture09/python_project/src/cs107_package/subpkg_2/__init__.py3L
-rw-r--r--lecture09/python_project/src/cs107_package/subpkg_2/module_3.py2L
-rw-r--r--lecture09/python_project/src/cs107_package/subpkg_2/module_4.py1L
-rw-r--r--lecture09/python_project/src/cs107_package/subpkg_2/module_5.py1L
-rw-r--r--lecture09/pythonpath/README.md22L
-rwxr-xr-xlecture09/pythonpath/setup_pythonpath.sh2L
-rwxr-xr-xlecture11/newtons_method/newton.py38L
-rwxr-xr-xlecture11/newtons_method/newton_fd.py41L
-rw-r--r--lecture11/sympy/jacobian.ipynb127L
-rw-r--r--lecture11/sympy/jacobian.py12L
-rw-r--r--lecture14/CI_tests/.github/workflows/lecture14_intro.yml44L
-rw-r--r--lecture14/CI_tests/.github/workflows/lecture14_tests.yml53L
-rw-r--r--lecture14/CI_tests/.gitignore6L
-rw-r--r--lecture14/CI_tests/LICENSE21L
-rw-r--r--lecture14/CI_tests/README.rst32L
-rw-r--r--lecture14/CI_tests/pyproject.toml21L
-rwxr-xr-xlecture14/CI_tests/script.sh3L
-rw-r--r--lecture14/CI_tests/src/cs107_package/__init__.py4L
-rw-r--r--lecture14/CI_tests/src/cs107_package/__main__.py6L
-rw-r--r--lecture14/CI_tests/src/cs107_package/subpkg_1/__init__.py4L
-rw-r--r--lecture14/CI_tests/src/cs107_package/subpkg_1/module_1.py8L
-rw-r--r--lecture14/CI_tests/src/cs107_package/subpkg_1/module_2.py6L
-rw-r--r--lecture14/CI_tests/src/cs107_package/subpkg_2/__init__.py3L
-rw-r--r--lecture14/CI_tests/src/cs107_package/subpkg_2/module_3.py37L
-rw-r--r--lecture14/CI_tests/src/cs107_package/subpkg_2/module_4.py1L
-rw-r--r--lecture14/CI_tests/src/cs107_package/subpkg_2/module_5.py1L
-rwxr-xr-xlecture14/CI_tests/tests/run_tests.sh37L
-rw-r--r--lecture14/CI_tests/tests/subpkg_1/test_module_1.py42L
-rw-r--r--lecture14/CI_tests/tests/subpkg_1/test_module_2.py42L
-rw-r--r--lecture15/CI_tests/.github/workflows/lecture14_intro.yml44L
-rw-r--r--lecture15/CI_tests/.github/workflows/lecture14_tests.yml53L
-rw-r--r--lecture15/CI_tests/.github/workflows/lecture15_coverage.yml64L
-rw-r--r--lecture15/CI_tests/.gitignore6L
-rw-r--r--lecture15/CI_tests/LICENSE21L
-rw-r--r--lecture15/CI_tests/README.rst38L
-rw-r--r--lecture15/CI_tests/docs/Makefile20L
-rw-r--r--lecture15/CI_tests/docs/conf.py62L
-rw-r--r--lecture15/CI_tests/docs/index.rst23L
-rw-r--r--lecture15/CI_tests/docs/make.bat35L
-rw-r--r--lecture15/CI_tests/docs/source/docstring/cs107_package.rst10L
-rw-r--r--lecture15/CI_tests/pyproject.toml21L
-rwxr-xr-xlecture15/CI_tests/script.sh3L
-rw-r--r--lecture15/CI_tests/src/cs107_package/__init__.py12L
-rw-r--r--lecture15/CI_tests/src/cs107_package/__main__.py6L
-rw-r--r--lecture15/CI_tests/src/cs107_package/example.py136L
-rw-r--r--lecture15/CI_tests/src/cs107_package/subpkg_1/__init__.py4L
-rw-r--r--lecture15/CI_tests/src/cs107_package/subpkg_1/module_1.py8L
-rw-r--r--lecture15/CI_tests/src/cs107_package/subpkg_1/module_2.py6L
-rw-r--r--lecture15/CI_tests/src/cs107_package/subpkg_2/__init__.py3L
-rw-r--r--lecture15/CI_tests/src/cs107_package/subpkg_2/module_3.py37L
-rw-r--r--lecture15/CI_tests/src/cs107_package/subpkg_2/module_4.py1L
-rw-r--r--lecture15/CI_tests/src/cs107_package/subpkg_2/module_5.py1L
-rwxr-xr-xlecture15/CI_tests/tests/check_coverage.sh26L
-rwxr-xr-xlecture15/CI_tests/tests/run_tests.sh37L
-rw-r--r--lecture15/CI_tests/tests/subpkg_1/test_module_1.py42L
-rw-r--r--lecture15/CI_tests/tests/subpkg_1/test_module_2.py42L
-rw-r--r--lecture16/CI_tests/.github/workflows/lecture16.yml56L
-rw-r--r--lecture16/CI_tests/.gitignore6L
-rw-r--r--lecture16/CI_tests/LICENSE21L
-rw-r--r--lecture16/CI_tests/README.rst38L
-rw-r--r--lecture16/CI_tests/docs/Makefile20L
-rw-r--r--lecture16/CI_tests/docs/conf.py62L
-rw-r--r--lecture16/CI_tests/docs/index.rst23L
-rw-r--r--lecture16/CI_tests/docs/make.bat35L
-rw-r--r--lecture16/CI_tests/docs/source/docstring/cs107_package.rst10L
-rw-r--r--lecture16/CI_tests/pyproject.toml21L
-rwxr-xr-xlecture16/CI_tests/script.sh3L
-rw-r--r--lecture16/CI_tests/src/cs107_package/__init__.py12L
-rw-r--r--lecture16/CI_tests/src/cs107_package/__main__.py6L
-rw-r--r--lecture16/CI_tests/src/cs107_package/example.py136L
-rw-r--r--lecture16/CI_tests/src/cs107_package/subpkg_1/__init__.py4L
-rw-r--r--lecture16/CI_tests/src/cs107_package/subpkg_1/module_1.py8L
-rw-r--r--lecture16/CI_tests/src/cs107_package/subpkg_1/module_2.py6L
-rw-r--r--lecture16/CI_tests/src/cs107_package/subpkg_2/__init__.py3L
-rw-r--r--lecture16/CI_tests/src/cs107_package/subpkg_2/module_3.py37L
-rw-r--r--lecture16/CI_tests/src/cs107_package/subpkg_2/module_4.py1L
-rw-r--r--lecture16/CI_tests/src/cs107_package/subpkg_2/module_5.py1L
-rwxr-xr-xlecture16/CI_tests/tests/check_coverage.sh26L
-rwxr-xr-xlecture16/CI_tests/tests/run_tests.sh37L
-rw-r--r--lecture16/CI_tests/tests/subpkg_1/test_module_1.py42L
-rw-r--r--lecture16/CI_tests/tests/subpkg_1/test_module_2.py42L
-rw-r--r--lecture16/docker/Dockerfile35L
-rw-r--r--lecture16/docker/README.md7L
-rwxr-xr-xlecture16/docker/build.sh4L
-rwxr-xr-xlecture16/docker/deploy.sh16L
-rw-r--r--lecture16/docker/local_file1L
-rwxr-xr-xlecture16/docker/remove.sh3L
-rwxr-xr-xlecture16/docker/run.sh3L
-rw-r--r--lecture16/venv/check_venv.py13L
-rw-r--r--lecture17/linked_list.py182L
-rw-r--r--lecture19/coroutine.py32L
-rw-r--r--lecture19/large_data.py194L
-rw-r--r--lecture19/linked_list.py123L
-rw-r--r--lecture20/code_object.py31L
-rw-r--r--lecture20/cpython/3.10.8/ceval.c3045L
-rw-r--r--lecture20/cpython/3.10.8/opcode.h172L
-rw-r--r--lecture20/cpython/3.11.0rc2/ceval.c4232L
-rw-r--r--lecture20/cpython/3.11.0rc2/opcode.h236L
-rw-r--r--lecture20/global_local.py15L
-rw-r--r--lecture20/nonlocal.py55L
-rw-r--r--lecture21/presidential/.gitignore1L
-rw-r--r--lecture21/presidential/candidates.txt18L
-rw-r--r--lecture21/presidential/contributors.txt176L
-rw-r--r--lecture21/presidential/presidential.py153L
-rw-r--r--lecture22/candidates.txt18L
-rw-r--r--lecture22/contributors.txt176L
-rw-r--r--lecture22/lecture22.ipynb681L
l---------lecture23/candidates.txt1L
l---------lecture23/contributors.txt1L
-rw-r--r--lecture23/fig/inner_join.png64309B
-rw-r--r--lecture23/fig/left_join.png63182B
-rwxr-xr-xlecture23/joins.sh57L
-rw-r--r--lecture23/lecture23.ipynb1174L
-rw-r--r--lecture24/cProfile/.gitignore1L
-rw-r--r--lecture24/cProfile/my_module.py17L
-rwxr-xr-xlecture24/cProfile/run_profile.sh3L
-rwxr-xr-xlecture24/cProfile/run_pstats.sh2L
-rw-r--r--lecture24/cProfile_newton/.gitignore2L
-rw-r--r--lecture24/cProfile_newton/newton.py48L
-rw-r--r--lecture24/cProfile_newton/post.py7L
-rw-r--r--lecture24/gdb_factorial/.gitignore2L
-rw-r--r--lecture24/gdb_factorial/Makefile11L
-rw-r--r--lecture24/gdb_factorial/factorial.cpp13L
-rw-r--r--lecture24/gdb_factorial/main.cpp8L
-rw-r--r--lecture24/pdb_factorial/factorial.py15L
-rw-r--r--lecture24/performance/code_object/code_object.py31L
-rw-r--r--lecture24/performance/opcode_oparg/opcode_oparg.py289L