├── cs61a ├── ants │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── ants.cpython-36.pyc │ │ ├── ants.cpython-39.pyc │ │ ├── state.cpython-36.pyc │ │ ├── ucb.cpython-36.pyc │ │ ├── ucb.cpython-39.pyc │ │ ├── utils.cpython-36.pyc │ │ └── utils.cpython-39.pyc │ ├── ants.py │ ├── ants_gui.py │ ├── assets │ │ ├── animate.css │ │ ├── app.css │ │ ├── app.js │ │ ├── enchant.js │ │ ├── insects │ │ │ ├── ant_bodyguard.gif │ │ │ ├── ant_fire.gif │ │ │ ├── ant_harvester.gif │ │ │ ├── ant_hungry.gif │ │ │ ├── ant_longthrower.gif │ │ │ ├── ant_ninja.gif │ │ │ ├── ant_queen.gif │ │ │ ├── ant_scuba.gif │ │ │ ├── ant_shortthrower.gif │ │ │ ├── ant_slow.gif │ │ │ ├── ant_stun.gif │ │ │ ├── ant_tank.gif │ │ │ ├── ant_thrower.gif │ │ │ ├── ant_wall.gif │ │ │ ├── bee.gif │ │ │ └── remove.png │ │ ├── logo.png │ │ ├── main-background.png │ │ ├── new-ants-gui.png │ │ ├── splash.png │ │ ├── sweetalert.css │ │ ├── sweetalert.min.js │ │ ├── swirl_pattern.png │ │ └── tiles │ │ │ ├── ground │ │ │ ├── 1.png │ │ │ ├── 2.png │ │ │ ├── 3.png │ │ │ └── water.png │ │ │ └── sky │ │ │ ├── 1.png │ │ │ ├── 2.png │ │ │ └── 3.png │ ├── graphics.py │ ├── gui.html │ ├── gui.py │ ├── img │ │ ├── ant_fire.gif │ │ ├── ant_freeze.gif │ │ ├── ant_harvester.gif │ │ ├── ant_hungry.gif │ │ ├── ant_laser.gif │ │ ├── ant_longthrower.gif │ │ ├── ant_ninja.gif │ │ ├── ant_queen.gif │ │ ├── ant_scuba.gif │ │ ├── ant_shortthrower.gif │ │ ├── ant_stun.gif │ │ ├── ant_thrower.gif │ │ ├── ant_wall.gif │ │ ├── ant_weeds.gif │ │ ├── ants_vs_bees.png │ │ ├── bee.gif │ │ ├── boss.gif │ │ ├── collab-demo.png │ │ ├── custom_test.png │ │ ├── gui_explanation.png │ │ ├── hornet.gif │ │ ├── new_ants_gui.png │ │ ├── ninjabee.gif │ │ ├── remover.gif │ │ ├── tunnel.gif │ │ └── wasp.gif │ ├── mytests.rst │ ├── ok │ ├── proj03.ok │ ├── state.py │ ├── tests │ │ ├── 00.py │ │ ├── 01.py │ │ ├── 02.py │ │ ├── 03.py │ │ ├── 04.py │ │ ├── 05.py │ │ ├── 06.py │ │ ├── 07.py │ │ ├── 08.py │ │ ├── 09.py │ │ ├── 10.py │ │ ├── 11.py │ │ ├── 12.py │ │ ├── 13.py │ │ ├── EC.py │ │ ├── __init__.py │ │ └── __pycache__ │ │ │ ├── 00.cpython-36.pyc │ │ │ ├── 01.cpython-36.pyc │ │ │ ├── 02.cpython-36.pyc │ │ │ ├── 03.cpython-36.pyc │ │ │ ├── 04.cpython-36.pyc │ │ │ ├── 05.cpython-36.pyc │ │ │ ├── 06.cpython-36.pyc │ │ │ ├── 07.cpython-36.pyc │ │ │ ├── 08.cpython-36.pyc │ │ │ ├── 09.cpython-36.pyc │ │ │ ├── 10.cpython-36.pyc │ │ │ ├── 11.cpython-36.pyc │ │ │ ├── 12.cpython-36.pyc │ │ │ ├── 13.cpython-36.pyc │ │ │ ├── EC.cpython-36.pyc │ │ │ └── __init__.cpython-36.pyc │ ├── ucb.py │ └── utils.py ├── hog │ ├── __pycache__ │ │ ├── dice.cpython-36.pyc │ │ ├── dice.cpython-39.pyc │ │ ├── hog.cpython-36.pyc │ │ ├── hog.cpython-39.pyc │ │ ├── ucb.cpython-36.pyc │ │ └── ucb.cpython-39.pyc │ ├── calc.py │ ├── dice.py │ ├── hog.py │ ├── hog_gui.py │ ├── images │ │ ├── die1.gif │ │ ├── die2.gif │ │ ├── die3.gif │ │ ├── die4.gif │ │ ├── die5.gif │ │ └── die6.gif │ ├── ok │ ├── proj01.ok │ ├── tests │ │ ├── 00.py │ │ ├── 01.py │ │ ├── 02.py │ │ ├── 03.py │ │ ├── 04.py │ │ ├── 05.py │ │ ├── 06.py │ │ ├── 07.py │ │ ├── 08.py │ │ ├── 09.py │ │ ├── 10.py │ │ ├── 11.py │ │ ├── 12.py │ │ ├── __init__.py │ │ ├── check_strategy.py │ │ ├── play.sol │ │ └── play_utils.py │ └── ucb.py ├── hw01 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ └── hw01.cpython-39.pyc │ ├── hw01.ok │ ├── hw01.py │ └── ok ├── hw02 │ ├── __pycache__ │ │ └── construct_check.cpython-39.pyc │ ├── construct_check.py │ ├── hw02.ok │ ├── hw02.py │ └── ok ├── hw03 │ ├── construct_check.py │ ├── hw03.ok │ ├── hw03.py │ └── ok ├── hw04 │ ├── __pycache__ │ │ └── construct_check.cpython-39.pyc │ ├── construct_check.py │ ├── hw04.ok │ ├── hw04.py │ └── ok ├── hw05 │ ├── .ok_history │ ├── __pycache__ │ │ └── hw05.cpython-36.pyc │ ├── hw05.ok │ ├── hw05.py │ ├── ok │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── __init__.cpython-36.pyc │ │ ├── check_par.cpython-35.pyc │ │ ├── check_par.cpython-36.pyc │ │ ├── div_interval.cpython-35.pyc │ │ ├── div_interval.cpython-36.pyc │ │ ├── interval.cpython-35.pyc │ │ ├── interval.cpython-36.pyc │ │ ├── mul_interval.cpython-35.pyc │ │ ├── mul_interval.cpython-36.pyc │ │ ├── polynomial.cpython-35.pyc │ │ ├── polynomial.cpython-36.pyc │ │ ├── quadratic.cpython-35.pyc │ │ ├── quadratic.cpython-36.pyc │ │ ├── sub_interval.cpython-35.pyc │ │ └── sub_interval.cpython-36.pyc │ │ ├── check_par.py │ │ ├── div_interval.py │ │ ├── interval.py │ │ ├── mul_interval.py │ │ ├── polynomial.py │ │ ├── quadratic.py │ │ └── sub_interval.py ├── hw06 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ └── hw06.cpython-36.pyc │ ├── hw06.ok │ ├── hw06.py │ ├── lab08 │ │ ├── lab08.ok │ │ ├── lab08.py │ │ ├── lab08_extra.py │ │ ├── ok │ │ └── tests │ │ │ ├── __init__.py │ │ │ ├── attributes.py │ │ │ ├── boom.py │ │ │ ├── foobar.py │ │ │ ├── growth.py │ │ │ └── zap.py │ └── ok ├── hw07 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── hw07.cpython-36.pyc │ │ └── hw07.cpython-39.pyc │ ├── hw07.ok │ ├── hw07.py │ └── ok ├── hw08 │ ├── .ok_history │ ├── .ok_storage.db │ ├── hw08.ok │ ├── hw08.scm │ ├── ok │ ├── scheme │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── __init__.cpython-36.pyc │ │ ├── add.cpython-35.pyc │ │ ├── add.cpython-36.pyc │ │ ├── cadr-caddr.cpython-35.pyc │ │ ├── cadr-caddr.cpython-36.pyc │ │ ├── contains.cpython-35.pyc │ │ ├── contains.cpython-36.pyc │ │ ├── intersect.cpython-35.pyc │ │ ├── intersect.cpython-36.pyc │ │ ├── nodots.cpython-35.pyc │ │ ├── nodots.cpython-36.pyc │ │ ├── ordered.cpython-35.pyc │ │ ├── ordered.cpython-36.pyc │ │ ├── pow.cpython-35.pyc │ │ ├── pow.cpython-36.pyc │ │ ├── sign.cpython-35.pyc │ │ ├── sign.cpython-36.pyc │ │ ├── union.cpython-35.pyc │ │ └── union.cpython-36.pyc │ │ ├── add.py │ │ ├── cadr-caddr.py │ │ ├── contains.py │ │ ├── intersect.py │ │ ├── nodots.py │ │ ├── ordered.py │ │ ├── pow.py │ │ ├── sign.py │ │ └── union.py ├── hw09 │ ├── .ok_history │ ├── .ok_storage.db │ ├── hw09.ok │ ├── hw09.scm │ ├── ok │ ├── scheme │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── __init__.cpython-36.pyc │ │ ├── derive-exp.cpython-35.pyc │ │ ├── derive-exp.cpython-36.pyc │ │ ├── derive-product.cpython-35.pyc │ │ ├── derive-product.cpython-36.pyc │ │ ├── derive-sum.cpython-35.pyc │ │ ├── derive-sum.cpython-36.pyc │ │ ├── how-many-dots.cpython-35.pyc │ │ ├── how-many-dots.cpython-36.pyc │ │ ├── make-exp.cpython-35.pyc │ │ └── make-exp.cpython-36.pyc │ │ ├── derive-exp.py │ │ ├── derive-product.py │ │ ├── derive-sum.py │ │ ├── how-many-dots.py │ │ └── make-exp.py ├── hw10 │ ├── .ok_history │ ├── .ok_storage.db │ ├── hw10.ok │ ├── hw10.scm │ ├── ok │ ├── scheme │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── __init__.cpython-36.pyc │ │ ├── accumulate-tail.cpython-35.pyc │ │ ├── accumulate-tail.cpython-36.pyc │ │ ├── accumulate.cpython-35.pyc │ │ ├── accumulate.cpython-36.pyc │ │ ├── list-comp.cpython-35.pyc │ │ └── list-comp.cpython-36.pyc │ │ ├── accumulate-tail.py │ │ ├── accumulate.py │ │ └── list-comp.py ├── hw11 │ ├── .ok_history │ ├── .ok_storage.db │ ├── hw11.ok │ ├── hw11.scm │ ├── ok │ ├── scheme │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── __init__.cpython-36.pyc │ │ ├── find.cpython-35.pyc │ │ ├── find.cpython-36.pyc │ │ ├── has-cycle-constant.cpython-35.pyc │ │ ├── has-cycle-constant.cpython-36.pyc │ │ ├── has-cycle.cpython-35.pyc │ │ ├── has-cycle.cpython-36.pyc │ │ ├── scale-stream.cpython-35.pyc │ │ └── scale-stream.cpython-36.pyc │ │ ├── find.py │ │ ├── has-cycle-constant.py │ │ ├── has-cycle.py │ │ └── scale-stream.py ├── hw12 │ ├── .ok_history │ ├── .ok_storage │ ├── hw12.ok │ ├── hw12.sql │ ├── ok │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── parent-height.cpython-35.pyc │ │ ├── parent-height.cpython-39.pyc │ │ ├── size-siblings.cpython-35.pyc │ │ ├── size-siblings.cpython-39.pyc │ │ ├── small.cpython-35.pyc │ │ ├── small.cpython-39.pyc │ │ ├── stack.cpython-35.pyc │ │ └── stack.cpython-39.pyc │ │ ├── parent-height.py │ │ ├── size-siblings.py │ │ ├── small.py │ │ └── stack.py ├── lab01 │ ├── .ok_history │ ├── .ok_storage │ ├── __pycache__ │ │ ├── lab01.cpython-39.pyc │ │ └── lab01_extra.cpython-39.pyc │ ├── guessing_game_graph.py │ ├── lab01.ok │ ├── lab01.py │ ├── lab01_extra.py │ ├── ok │ └── tests │ │ ├── .ok_guidance │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── loops.cpython-35.pyc │ │ ├── loops.cpython-39.pyc │ │ ├── short_circuiting.cpython-35.pyc │ │ ├── short_circuiting.cpython-39.pyc │ │ ├── truthiness.cpython-35.pyc │ │ ├── truthiness.cpython-39.pyc │ │ ├── what_if.cpython-35.pyc │ │ └── what_if.cpython-39.pyc │ │ ├── loops.py │ │ ├── short_circuiting.py │ │ ├── truthiness.py │ │ └── what_if.py ├── lab02 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── lab02.cpython-36.pyc │ │ ├── lab02.cpython-39.pyc │ │ ├── lab02_extra.cpython-36.pyc │ │ └── lab02_extra.cpython-39.pyc │ ├── lab02.ok │ ├── lab02.py │ ├── lab02_extra.py │ ├── ok │ └── tests │ │ ├── .ok_guidance │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── __init__.cpython-36.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── hof.cpython-35.pyc │ │ ├── hof.cpython-36.pyc │ │ ├── hof.cpython-39.pyc │ │ ├── lambda.cpython-35.pyc │ │ ├── lambda.cpython-36.pyc │ │ └── lambda.cpython-39.pyc │ │ ├── hof.py │ │ └── lambda.py ├── lab03 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── lab03.cpython-36.pyc │ │ ├── lab03.cpython-39.pyc │ │ ├── lab03_extra.cpython-36.pyc │ │ └── lab03_extra.cpython-39.pyc │ ├── lab03.ok │ ├── lab03.py │ ├── lab03_extra.py │ ├── ok │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── call_expressions.cpython-36.pyc │ │ ├── call_expressions.cpython-39.pyc │ │ ├── skip_mul_ok.cpython-36.pyc │ │ └── skip_mul_ok.cpython-39.pyc │ │ ├── call_expressions.py │ │ ├── count_up_ok.py │ │ ├── factorial_ok.py │ │ ├── lambda.py │ │ └── skip_mul_ok.py ├── lab04 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── lab04.cpython-36.pyc │ │ └── lab04_extra.cpython-36.pyc │ ├── lab04.ok │ ├── lab04.py │ ├── lab04_extra.py │ ├── ok │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ ├── indexing.cpython-36.pyc │ │ └── lists.cpython-36.pyc │ │ ├── indexing.py │ │ └── lists.py ├── lab05 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── lab05.cpython-36.pyc │ │ └── lab05_extra.cpython-36.pyc │ ├── lab05.ok │ ├── lab05.py │ ├── lab05_extra.py │ ├── ok │ └── tests │ │ ├── .ok_guidance │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ └── dicts.cpython-36.pyc │ │ ├── dicts.py │ │ ├── height_depth.py │ │ └── structure.py ├── lab06 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── classes.cpython-36.pyc │ │ ├── classes.cpython-39.pyc │ │ ├── data.cpython-36.pyc │ │ ├── lab06_extra.cpython-36.pyc │ │ └── lab06_extra.cpython-39.pyc │ ├── adventure.py │ ├── car.py │ ├── car.pyc │ ├── classes.py │ ├── data.py │ ├── lab06.ok │ ├── lab06_extra.py │ ├── ok │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── car.cpython-36.pyc │ │ ├── car.cpython-39.pyc │ │ ├── food_truck.cpython-36.pyc │ │ ├── food_truck.cpython-39.pyc │ │ ├── me.cpython-36.pyc │ │ └── me.cpython-39.pyc │ │ ├── car.py │ │ ├── food_truck.py │ │ └── me.py ├── lab07 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── lab07.cpython-36.pyc │ │ └── lab07_extra.cpython-36.pyc │ ├── lab07.ok │ ├── lab07.py │ ├── lab07_extra.py │ ├── ok │ ├── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-36.pyc │ │ │ ├── link.cpython-36.pyc │ │ │ └── trees.cpython-36.pyc │ │ ├── link.py │ │ └── trees.py │ └── timing.py ├── lab08 │ ├── .ok_history │ ├── .ok_storage │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── lab08.cpython-36.pyc │ │ ├── lab08.cpython-39.pyc │ │ ├── lab08_extra.cpython-36.pyc │ │ └── lab08_extra.cpython-39.pyc │ ├── lab08.ok │ ├── lab08.py │ ├── lab08_extra.py │ ├── ok │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── attributes.cpython-36.pyc │ │ ├── attributes.cpython-39.pyc │ │ ├── boom.cpython-36.pyc │ │ ├── boom.cpython-39.pyc │ │ ├── foobar.cpython-36.pyc │ │ ├── foobar.cpython-39.pyc │ │ ├── growth.cpython-36.pyc │ │ ├── growth.cpython-39.pyc │ │ ├── zap.cpython-36.pyc │ │ └── zap.cpython-39.pyc │ │ ├── attributes.py │ │ ├── boom.py │ │ ├── foobar.py │ │ ├── growth.py │ │ └── zap.py ├── lab09 │ ├── .ok_history │ ├── .ok_storage.db │ ├── lab09.ok │ ├── lab09.scm │ ├── lab09_extra.scm │ ├── ok │ ├── scheme │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── composed.cpython-36.pyc │ │ ├── composed.cpython-39.pyc │ │ ├── filter.cpython-36.pyc │ │ ├── filter.cpython-39.pyc │ │ ├── gcd.cpython-36.pyc │ │ ├── gcd.cpython-39.pyc │ │ ├── make-adder.cpython-36.pyc │ │ ├── make-adder.cpython-39.pyc │ │ ├── make-list.cpython-36.pyc │ │ ├── make-list.cpython-39.pyc │ │ ├── no-repeats.cpython-36.pyc │ │ ├── no-repeats.cpython-39.pyc │ │ ├── over-or-under.cpython-36.pyc │ │ ├── over-or-under.cpython-39.pyc │ │ ├── remove.cpython-36.pyc │ │ ├── remove.cpython-39.pyc │ │ ├── sub-all.cpython-36.pyc │ │ ├── sub-all.cpython-39.pyc │ │ ├── substitute.cpython-36.pyc │ │ ├── substitute.cpython-39.pyc │ │ ├── wwsd-lists.cpython-36.pyc │ │ └── wwsd-lists.cpython-39.pyc │ │ ├── add.py │ │ ├── composed.py │ │ ├── does_it_work.py │ │ ├── filter.py │ │ ├── gcd.py │ │ ├── link.py │ │ ├── make-adder.py │ │ ├── make-list.py │ │ ├── no-repeats.py │ │ ├── odds_evens.py │ │ ├── ok_guidance │ │ ├── over-or-under.py │ │ ├── remove.py │ │ ├── restart.py │ │ ├── reversed.py │ │ ├── split-at.py │ │ ├── str.py │ │ ├── sub-all.py │ │ ├── substitute.py │ │ └── wwsd-lists.py ├── lab10 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── buffer.cpython-36.pyc │ │ ├── expr.cpython-36.pyc │ │ ├── reader.cpython-36.pyc │ │ └── utils.cpython-36.pyc │ ├── buffer.py │ ├── editor │ │ ├── __main__.py │ │ ├── __pycache__ │ │ │ ├── __main__.cpython-36.pyc │ │ │ ├── arithmetic.cpython-36.pyc │ │ │ ├── console.cpython-36.pyc │ │ │ ├── css_colors.cpython-36.pyc │ │ │ ├── datamodel.cpython-36.pyc │ │ │ ├── documentation.cpython-36.pyc │ │ │ ├── environment.cpython-36.pyc │ │ │ ├── evaluate_apply.cpython-36.pyc │ │ │ ├── execution.cpython-36.pyc │ │ │ ├── execution_parser.cpython-36.pyc │ │ │ ├── file_manager.cpython-36.pyc │ │ │ ├── format_parser.cpython-36.pyc │ │ │ ├── formatter.cpython-36.pyc │ │ │ ├── graphics.cpython-36.pyc │ │ │ ├── helper.cpython-36.pyc │ │ │ ├── lexer.cpython-36.pyc │ │ │ ├── lists.cpython-36.pyc │ │ │ ├── local_server.cpython-36.pyc │ │ │ ├── log.cpython-36.pyc │ │ │ ├── log_utils.cpython-36.pyc │ │ │ ├── ok_interface.cpython-36.pyc │ │ │ ├── persistence.cpython-36.pyc │ │ │ ├── primitives.cpython-36.pyc │ │ │ ├── runtime_limiter.cpython-36.pyc │ │ │ ├── scheme_exceptions.cpython-36.pyc │ │ │ ├── special_forms.cpython-36.pyc │ │ │ ├── type_checking.cpython-36.pyc │ │ │ └── visualizing.cpython-36.pyc │ │ ├── arithmetic.py │ │ ├── builtins.scm │ │ ├── console.py │ │ ├── css_colors.py │ │ ├── database.py │ │ ├── datamodel.py │ │ ├── documentation.py │ │ ├── environment.py │ │ ├── evaluate_apply.py │ │ ├── execution.py │ │ ├── execution_parser.py │ │ ├── file_manager.py │ │ ├── format_parser.py │ │ ├── formatter.py │ │ ├── graphics.py │ │ ├── helper.py │ │ ├── lexer.py │ │ ├── libraries │ │ │ ├── __pycache__ │ │ │ │ └── mistune.cpython-36.pyc │ │ │ └── mistune.py │ │ ├── lists.py │ │ ├── local_server.py │ │ ├── log.py │ │ ├── log_utils.py │ │ ├── ok_interface.py │ │ ├── persistence.py │ │ ├── primitives.py │ │ ├── runtime_limiter.py │ │ ├── scheme_documentation.md │ │ ├── scheme_exceptions.py │ │ ├── special_forms.py │ │ ├── static │ │ │ ├── ace.min.js │ │ │ ├── ace │ │ │ │ └── src-min-noconflict │ │ │ │ │ ├── ace.js │ │ │ │ │ ├── ext-beautify.js │ │ │ │ │ ├── ext-elastic_tabstops_lite.js │ │ │ │ │ ├── ext-emmet.js │ │ │ │ │ ├── ext-error_marker.js │ │ │ │ │ ├── ext-keybinding_menu.js │ │ │ │ │ ├── ext-language_tools.js │ │ │ │ │ ├── ext-linking.js │ │ │ │ │ ├── ext-modelist.js │ │ │ │ │ ├── ext-options.js │ │ │ │ │ ├── ext-rtl.js │ │ │ │ │ ├── ext-searchbox.js │ │ │ │ │ ├── ext-settings_menu.js │ │ │ │ │ ├── ext-spellcheck.js │ │ │ │ │ ├── ext-split.js │ │ │ │ │ ├── ext-static_highlight.js │ │ │ │ │ ├── ext-statusbar.js │ │ │ │ │ ├── ext-textarea.js │ │ │ │ │ ├── ext-themelist.js │ │ │ │ │ ├── ext-whitespace.js │ │ │ │ │ ├── keybinding-emacs.js │ │ │ │ │ ├── keybinding-vim.js │ │ │ │ │ ├── mode-abap.js │ │ │ │ │ ├── mode-abc.js │ │ │ │ │ ├── mode-actionscript.js │ │ │ │ │ ├── mode-ada.js │ │ │ │ │ ├── mode-apache_conf.js │ │ │ │ │ ├── mode-applescript.js │ │ │ │ │ ├── mode-asciidoc.js │ │ │ │ │ ├── mode-asl.js │ │ │ │ │ ├── mode-assembly_x86.js │ │ │ │ │ ├── mode-autohotkey.js │ │ │ │ │ ├── mode-batchfile.js │ │ │ │ │ ├── mode-bro.js │ │ │ │ │ ├── mode-c9search.js │ │ │ │ │ ├── mode-c_cpp.js │ │ │ │ │ ├── mode-cirru.js │ │ │ │ │ ├── mode-clojure.js │ │ │ │ │ ├── mode-cobol.js │ │ │ │ │ ├── mode-coffee.js │ │ │ │ │ ├── mode-coldfusion.js │ │ │ │ │ ├── mode-csharp.js │ │ │ │ │ ├── mode-csound_document.js │ │ │ │ │ ├── mode-csound_orchestra.js │ │ │ │ │ ├── mode-csound_score.js │ │ │ │ │ ├── mode-csp.js │ │ │ │ │ ├── mode-css.js │ │ │ │ │ ├── mode-curly.js │ │ │ │ │ ├── mode-d.js │ │ │ │ │ ├── mode-dart.js │ │ │ │ │ ├── mode-diff.js │ │ │ │ │ ├── mode-django.js │ │ │ │ │ ├── mode-dockerfile.js │ │ │ │ │ ├── mode-dot.js │ │ │ │ │ ├── mode-drools.js │ │ │ │ │ ├── mode-edifact.js │ │ │ │ │ ├── mode-eiffel.js │ │ │ │ │ ├── mode-ejs.js │ │ │ │ │ ├── mode-elixir.js │ │ │ │ │ ├── mode-elm.js │ │ │ │ │ ├── mode-erlang.js │ │ │ │ │ ├── mode-forth.js │ │ │ │ │ ├── mode-fortran.js │ │ │ │ │ ├── mode-fsharp.js │ │ │ │ │ ├── mode-ftl.js │ │ │ │ │ ├── mode-gcode.js │ │ │ │ │ ├── mode-gherkin.js │ │ │ │ │ ├── mode-gitignore.js │ │ │ │ │ ├── mode-glsl.js │ │ │ │ │ ├── mode-gobstones.js │ │ │ │ │ ├── mode-golang.js │ │ │ │ │ ├── mode-graphqlschema.js │ │ │ │ │ ├── mode-groovy.js │ │ │ │ │ ├── mode-haml.js │ │ │ │ │ ├── mode-handlebars.js │ │ │ │ │ ├── mode-haskell.js │ │ │ │ │ ├── mode-haskell_cabal.js │ │ │ │ │ ├── mode-haxe.js │ │ │ │ │ ├── mode-hjson.js │ │ │ │ │ ├── mode-html.js │ │ │ │ │ ├── mode-html_elixir.js │ │ │ │ │ ├── mode-html_ruby.js │ │ │ │ │ ├── mode-ini.js │ │ │ │ │ ├── mode-io.js │ │ │ │ │ ├── mode-jack.js │ │ │ │ │ ├── mode-jade.js │ │ │ │ │ ├── mode-java.js │ │ │ │ │ ├── mode-javascript.js │ │ │ │ │ ├── mode-json.js │ │ │ │ │ ├── mode-jsoniq.js │ │ │ │ │ ├── mode-jsp.js │ │ │ │ │ ├── mode-jssm.js │ │ │ │ │ ├── mode-jsx.js │ │ │ │ │ ├── mode-julia.js │ │ │ │ │ ├── mode-kotlin.js │ │ │ │ │ ├── mode-latex.js │ │ │ │ │ ├── mode-less.js │ │ │ │ │ ├── mode-liquid.js │ │ │ │ │ ├── mode-lisp.js │ │ │ │ │ ├── mode-livescript.js │ │ │ │ │ ├── mode-logiql.js │ │ │ │ │ ├── mode-lsl.js │ │ │ │ │ ├── mode-lua.js │ │ │ │ │ ├── mode-luapage.js │ │ │ │ │ ├── mode-lucene.js │ │ │ │ │ ├── mode-makefile.js │ │ │ │ │ ├── mode-markdown.js │ │ │ │ │ ├── mode-mask.js │ │ │ │ │ ├── mode-matlab.js │ │ │ │ │ ├── mode-maze.js │ │ │ │ │ ├── mode-mel.js │ │ │ │ │ ├── mode-mixal.js │ │ │ │ │ ├── mode-mushcode.js │ │ │ │ │ ├── mode-mysql.js │ │ │ │ │ ├── mode-nix.js │ │ │ │ │ ├── mode-nsis.js │ │ │ │ │ ├── mode-objectivec.js │ │ │ │ │ ├── mode-ocaml.js │ │ │ │ │ ├── mode-pascal.js │ │ │ │ │ ├── mode-perl.js │ │ │ │ │ ├── mode-pgsql.js │ │ │ │ │ ├── mode-php.js │ │ │ │ │ ├── mode-php_laravel_blade.js │ │ │ │ │ ├── mode-pig.js │ │ │ │ │ ├── mode-plain_text.js │ │ │ │ │ ├── mode-powershell.js │ │ │ │ │ ├── mode-praat.js │ │ │ │ │ ├── mode-prolog.js │ │ │ │ │ ├── mode-properties.js │ │ │ │ │ ├── mode-protobuf.js │ │ │ │ │ ├── mode-puppet.js │ │ │ │ │ ├── mode-python.js │ │ │ │ │ ├── mode-r.js │ │ │ │ │ ├── mode-razor.js │ │ │ │ │ ├── mode-rdoc.js │ │ │ │ │ ├── mode-red.js │ │ │ │ │ ├── mode-redshift.js │ │ │ │ │ ├── mode-rhtml.js │ │ │ │ │ ├── mode-rst.js │ │ │ │ │ ├── mode-ruby.js │ │ │ │ │ ├── mode-rust.js │ │ │ │ │ ├── mode-sass.js │ │ │ │ │ ├── mode-scad.js │ │ │ │ │ ├── mode-scala.js │ │ │ │ │ ├── mode-scheme.js │ │ │ │ │ ├── mode-scss.js │ │ │ │ │ ├── mode-sh.js │ │ │ │ │ ├── mode-sjs.js │ │ │ │ │ ├── mode-slim.js │ │ │ │ │ ├── mode-smarty.js │ │ │ │ │ ├── mode-snippets.js │ │ │ │ │ ├── mode-soy_template.js │ │ │ │ │ ├── mode-space.js │ │ │ │ │ ├── mode-sparql.js │ │ │ │ │ ├── mode-sql.js │ │ │ │ │ ├── mode-sqlserver.js │ │ │ │ │ ├── mode-stylus.js │ │ │ │ │ ├── mode-svg.js │ │ │ │ │ ├── mode-swift.js │ │ │ │ │ ├── mode-tcl.js │ │ │ │ │ ├── mode-terraform.js │ │ │ │ │ ├── mode-tex.js │ │ │ │ │ ├── mode-text.js │ │ │ │ │ ├── mode-textile.js │ │ │ │ │ ├── mode-toml.js │ │ │ │ │ ├── mode-tsx.js │ │ │ │ │ ├── mode-turtle.js │ │ │ │ │ ├── mode-twig.js │ │ │ │ │ ├── mode-typescript.js │ │ │ │ │ ├── mode-vala.js │ │ │ │ │ ├── mode-vbscript.js │ │ │ │ │ ├── mode-velocity.js │ │ │ │ │ ├── mode-verilog.js │ │ │ │ │ ├── mode-vhdl.js │ │ │ │ │ ├── mode-wollok.js │ │ │ │ │ ├── mode-xml.js │ │ │ │ │ ├── mode-xquery.js │ │ │ │ │ ├── mode-yaml.js │ │ │ │ │ ├── theme-ambiance.js │ │ │ │ │ ├── theme-chaos.js │ │ │ │ │ ├── theme-chrome.js │ │ │ │ │ ├── theme-clouds.js │ │ │ │ │ ├── theme-clouds_midnight.js │ │ │ │ │ ├── theme-cobalt.js │ │ │ │ │ ├── theme-crimson_editor.js │ │ │ │ │ ├── theme-dawn.js │ │ │ │ │ ├── theme-dracula.js │ │ │ │ │ ├── theme-dreamweaver.js │ │ │ │ │ ├── theme-eclipse.js │ │ │ │ │ ├── theme-github.js │ │ │ │ │ ├── theme-gob.js │ │ │ │ │ ├── theme-gruvbox.js │ │ │ │ │ ├── theme-idle_fingers.js │ │ │ │ │ ├── theme-iplastic.js │ │ │ │ │ ├── theme-katzenmilch.js │ │ │ │ │ ├── theme-kr_theme.js │ │ │ │ │ ├── theme-kuroir.js │ │ │ │ │ ├── theme-merbivore.js │ │ │ │ │ ├── theme-merbivore_soft.js │ │ │ │ │ ├── theme-mono_industrial.js │ │ │ │ │ ├── theme-monokai.js │ │ │ │ │ ├── theme-pastel_on_dark.js │ │ │ │ │ ├── theme-solarized_dark.js │ │ │ │ │ ├── theme-solarized_light.js │ │ │ │ │ ├── theme-sqlserver.js │ │ │ │ │ ├── theme-terminal.js │ │ │ │ │ ├── theme-textmate.js │ │ │ │ │ ├── theme-tomorrow.js │ │ │ │ │ ├── theme-tomorrow_night.js │ │ │ │ │ ├── theme-tomorrow_night_blue.js │ │ │ │ │ ├── theme-tomorrow_night_bright.js │ │ │ │ │ ├── theme-tomorrow_night_eighties.js │ │ │ │ │ ├── theme-twilight.js │ │ │ │ │ ├── theme-vibrant_ink.js │ │ │ │ │ ├── theme-xcode.js │ │ │ │ │ ├── worker-coffee.js │ │ │ │ │ ├── worker-css.js │ │ │ │ │ ├── worker-html.js │ │ │ │ │ ├── worker-javascript.js │ │ │ │ │ ├── worker-json.js │ │ │ │ │ ├── worker-lua.js │ │ │ │ │ ├── worker-php.js │ │ │ │ │ ├── worker-xml.js │ │ │ │ │ └── worker-xquery.js │ │ │ ├── bootstrap.min.css │ │ │ ├── bootstrap.min.js │ │ │ ├── favicon.ico │ │ │ ├── font-awesome.min.css │ │ │ ├── goldenlayout-base.css │ │ │ ├── goldenlayout-light-theme.css │ │ │ ├── goldenlayout.js │ │ │ ├── index.html │ │ │ ├── jquery.js │ │ │ ├── popper.min.js │ │ │ ├── scripts │ │ │ │ ├── canceller.js │ │ │ │ ├── documentation.js │ │ │ │ ├── editor.js │ │ │ │ ├── env_diagram.js │ │ │ │ ├── env_diagram_worker.js │ │ │ │ ├── event_handler.js │ │ │ │ ├── file_opening.js │ │ │ │ ├── keyboard_shortcuts.js │ │ │ │ ├── layout.js │ │ │ │ ├── main.js │ │ │ │ ├── measure.js │ │ │ │ ├── navigation.js │ │ │ │ ├── output.js │ │ │ │ ├── settings.js │ │ │ │ ├── state_handler.js │ │ │ │ ├── substitution_tree.js │ │ │ │ ├── substitution_tree_worker.js │ │ │ │ ├── test_results.js │ │ │ │ ├── turtle_graphics.js │ │ │ │ └── turtle_graphics_worker.js │ │ │ ├── starter-template.css │ │ │ ├── svg-pan-zoom.js │ │ │ └── svg.js │ │ ├── type_checking.py │ │ ├── visualizing.py │ │ ├── web_server.py │ │ └── words.txt │ ├── expr.py │ ├── lab10.ok │ ├── lab10.scm │ ├── ok │ ├── reader.py │ ├── repl.py │ ├── scheme │ ├── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-36.pyc │ │ │ ├── prologue_expr.cpython-36.pyc │ │ │ ├── prologue_reader.cpython-36.pyc │ │ │ └── repeatedly-cube.cpython-36.pyc │ │ ├── prologue_expr.py │ │ ├── prologue_reader.py │ │ └── repeatedly-cube.py │ └── utils.py ├── lab11 │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ │ ├── lab11.cpython-36.pyc │ │ └── lab11_extra.cpython-36.pyc │ ├── lab11.ok │ ├── lab11.py │ ├── lab11_extra.py │ ├── ok │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ ├── generators.cpython-36.pyc │ │ └── iterators.cpython-36.pyc │ │ ├── generators.py │ │ └── iterators.py ├── lab12 │ ├── .ok_history │ ├── .ok_storage │ ├── .ok_storage.db │ ├── fa17data.sql │ ├── lab12.ok │ ├── lab12.sql │ ├── lab12_extra.sql │ ├── ok │ ├── sp18data.sql │ └── tests │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── greatstudents.cpython-36.pyc │ │ ├── greatstudents.cpython-39.pyc │ │ ├── lets-count.cpython-36.pyc │ │ ├── lets-count.cpython-39.pyc │ │ ├── matchmaker.cpython-36.pyc │ │ ├── matchmaker.cpython-39.pyc │ │ ├── obedience.cpython-36.pyc │ │ ├── obedience.cpython-39.pyc │ │ ├── sevens.cpython-36.pyc │ │ ├── sevens.cpython-39.pyc │ │ ├── smallest-int-count.cpython-36.pyc │ │ ├── smallest-int-count.cpython-39.pyc │ │ ├── smallest-int.cpython-36.pyc │ │ └── smallest-int.cpython-39.pyc │ │ ├── greatstudents.py │ │ ├── lets-count.py │ │ ├── matchmaker.py │ │ ├── obedience.py │ │ ├── sevens.py │ │ ├── smallest-int-count.py │ │ └── smallest-int.py ├── lab13 │ ├── .ok_history │ ├── .ok_storage │ ├── __pycache__ │ │ ├── lab13.cpython-36.pyc │ │ ├── lab13.cpython-39.pyc │ │ ├── lab13_extra.cpython-36.pyc │ │ └── lab13_extra.cpython-39.pyc │ ├── lab13.ok │ ├── lab13.py │ ├── lab13.scm │ ├── lab13_extra.py │ ├── lab13_extra.scm │ ├── ok │ ├── scheme │ └── tests │ │ ├── __pycache__ │ │ ├── compose-all.cpython-39.pyc │ │ ├── deep-map.cpython-39.pyc │ │ ├── insert.cpython-39.pyc │ │ ├── rle.cpython-39.pyc │ │ ├── tail-replicate.cpython-39.pyc │ │ └── tally.cpython-39.pyc │ │ ├── compose-all.py │ │ ├── deep-map.py │ │ ├── insert.py │ │ ├── rle.py │ │ ├── tail-replicate.py │ │ └── tally.py ├── maps │ ├── .DS_Store │ ├── __pycache__ │ │ ├── abstractions.cpython-36.pyc │ │ ├── abstractions.cpython-39.pyc │ │ ├── ucb.cpython-36.pyc │ │ ├── ucb.cpython-39.pyc │ │ ├── utils.cpython-36.pyc │ │ └── utils.cpython-39.pyc │ ├── abstractions.py │ ├── assets │ │ └── least_squares.gif │ ├── data │ │ ├── __init__.py │ │ ├── __pycache__ │ │ │ ├── __init__.cpython-36.pyc │ │ │ ├── __init__.cpython-39.pyc │ │ │ ├── jsonl.cpython-36.pyc │ │ │ └── jsonl.cpython-39.pyc │ │ ├── jsonl.py │ │ ├── restaurants.json │ │ ├── reviews.json │ │ └── users.json │ ├── ok │ ├── proj02.ok │ ├── recommend.py │ ├── tests │ │ ├── 00.py │ │ ├── 01.py │ │ ├── 02.py │ │ ├── 03.py │ │ ├── 04.py │ │ ├── 05.py │ │ ├── 06.py │ │ ├── 07.py │ │ ├── 08.py │ │ ├── 09.py │ │ ├── 10.py │ │ ├── __init__.py │ │ └── test_functions.py │ ├── ucb.py │ ├── users │ │ ├── likes_everything.dat │ │ ├── likes_expensive.dat │ │ ├── likes_southside.dat │ │ ├── one_cluster.dat │ │ └── test_user.dat │ ├── utils.py │ └── visualize │ │ ├── __init__.py │ │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ └── __init__.cpython-39.pyc │ │ ├── d3.js │ │ ├── voronoi.html │ │ ├── voronoi.js │ │ ├── voronoi.json │ │ └── voronoi.png └── scheme │ ├── .ok_history │ ├── .ok_storage.db │ ├── __pycache__ │ ├── buffer.cpython-36.pyc │ ├── buffer.cpython-39.pyc │ ├── scheme.cpython-36.pyc │ ├── scheme.cpython-39.pyc │ ├── scheme_primitives.cpython-36.pyc │ ├── scheme_primitives.cpython-39.pyc │ ├── scheme_reader.cpython-36.pyc │ ├── scheme_reader.cpython-39.pyc │ ├── scheme_tokens.cpython-36.pyc │ ├── scheme_tokens.cpython-39.pyc │ ├── ucb.cpython-36.pyc │ └── ucb.cpython-39.pyc │ ├── buffer.py │ ├── images │ ├── custom_test.png │ ├── h1.png │ ├── hax.png │ ├── lambda.png │ ├── let.png │ ├── money_tree.png │ └── tree.png │ ├── mytests.rst │ ├── ok │ ├── proj04.ok │ ├── questions.scm │ ├── scheme.py │ ├── scheme_primitives.py │ ├── scheme_reader.py │ ├── scheme_tokens.py │ ├── tests.scm │ ├── tests │ ├── 00.py │ ├── 01.py │ ├── 02.py │ ├── 03.py │ ├── 04.py │ ├── 05.py │ ├── 06.py │ ├── 07.py │ ├── 08.py │ ├── 09.py │ ├── 10.py │ ├── 11.py │ ├── 12.py │ ├── 13.py │ ├── 14.py │ ├── 15.py │ ├── 16.py │ ├── 17.py │ ├── 18.py │ ├── 19.py │ ├── 20.py │ ├── 21.py │ ├── __init__.py │ ├── __pycache__ │ │ ├── 01.cpython-36.pyc │ │ ├── 01.cpython-39.pyc │ │ ├── 02.cpython-36.pyc │ │ ├── 02.cpython-39.pyc │ │ ├── 03.cpython-36.pyc │ │ ├── 03.cpython-39.pyc │ │ ├── 04.cpython-36.pyc │ │ ├── 04.cpython-39.pyc │ │ ├── 05.cpython-36.pyc │ │ ├── 05.cpython-39.pyc │ │ ├── 06.cpython-36.pyc │ │ ├── 06.cpython-39.pyc │ │ ├── 07.cpython-36.pyc │ │ ├── 07.cpython-39.pyc │ │ ├── 08.cpython-36.pyc │ │ ├── 08.cpython-39.pyc │ │ ├── 09.cpython-36.pyc │ │ ├── 09.cpython-39.pyc │ │ ├── 10.cpython-36.pyc │ │ ├── 10.cpython-39.pyc │ │ ├── 11.cpython-36.pyc │ │ ├── 11.cpython-39.pyc │ │ ├── 12.cpython-36.pyc │ │ ├── 12.cpython-39.pyc │ │ ├── 13.cpython-36.pyc │ │ ├── 13.cpython-39.pyc │ │ ├── 14.cpython-36.pyc │ │ ├── 14.cpython-39.pyc │ │ ├── 15.cpython-36.pyc │ │ ├── 15.cpython-39.pyc │ │ ├── 16.cpython-36.pyc │ │ ├── 16.cpython-39.pyc │ │ ├── 17.cpython-36.pyc │ │ ├── 17.cpython-39.pyc │ │ ├── 18.cpython-36.pyc │ │ ├── 18.cpython-39.pyc │ │ ├── 19.cpython-36.pyc │ │ ├── 19.cpython-39.pyc │ │ ├── 20.cpython-36.pyc │ │ ├── 20.cpython-39.pyc │ │ ├── 21.cpython-36.pyc │ │ ├── 21.cpython-39.pyc │ │ ├── __init__.cpython-36.pyc │ │ ├── __init__.cpython-39.pyc │ │ ├── eval_apply.cpython-36.pyc │ │ └── eval_apply.cpython-39.pyc │ └── eval_apply.py │ └── ucb.py └── readme.md /cs61a/ants/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/.ok_history -------------------------------------------------------------------------------- /cs61a/ants/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/ants/__pycache__/ants.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/__pycache__/ants.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/__pycache__/ants.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/__pycache__/ants.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/ants/__pycache__/state.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/__pycache__/state.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/__pycache__/ucb.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/__pycache__/ucb.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/__pycache__/ucb.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/__pycache__/ucb.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/ants/__pycache__/utils.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/__pycache__/utils.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/__pycache__/utils.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/__pycache__/utils.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_bodyguard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_bodyguard.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_fire.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_fire.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_harvester.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_harvester.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_hungry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_hungry.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_longthrower.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_longthrower.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_ninja.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_ninja.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_queen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_queen.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_scuba.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_scuba.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_shortthrower.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_shortthrower.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_slow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_slow.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_stun.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_stun.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_tank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_tank.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_thrower.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_thrower.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/ant_wall.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/ant_wall.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/bee.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/bee.gif -------------------------------------------------------------------------------- /cs61a/ants/assets/insects/remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/insects/remove.png -------------------------------------------------------------------------------- /cs61a/ants/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/logo.png -------------------------------------------------------------------------------- /cs61a/ants/assets/main-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/main-background.png -------------------------------------------------------------------------------- /cs61a/ants/assets/new-ants-gui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/new-ants-gui.png -------------------------------------------------------------------------------- /cs61a/ants/assets/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/splash.png -------------------------------------------------------------------------------- /cs61a/ants/assets/swirl_pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/swirl_pattern.png -------------------------------------------------------------------------------- /cs61a/ants/assets/tiles/ground/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/tiles/ground/1.png -------------------------------------------------------------------------------- /cs61a/ants/assets/tiles/ground/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/tiles/ground/2.png -------------------------------------------------------------------------------- /cs61a/ants/assets/tiles/ground/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/tiles/ground/3.png -------------------------------------------------------------------------------- /cs61a/ants/assets/tiles/ground/water.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/tiles/ground/water.png -------------------------------------------------------------------------------- /cs61a/ants/assets/tiles/sky/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/tiles/sky/1.png -------------------------------------------------------------------------------- /cs61a/ants/assets/tiles/sky/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/tiles/sky/2.png -------------------------------------------------------------------------------- /cs61a/ants/assets/tiles/sky/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/assets/tiles/sky/3.png -------------------------------------------------------------------------------- /cs61a/ants/img/ant_fire.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_fire.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_freeze.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_freeze.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_harvester.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_harvester.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_hungry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_hungry.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_laser.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_laser.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_longthrower.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_longthrower.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_ninja.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_ninja.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_queen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_queen.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_scuba.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_scuba.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_shortthrower.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_shortthrower.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_stun.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_stun.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_thrower.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_thrower.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_wall.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_wall.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ant_weeds.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ant_weeds.gif -------------------------------------------------------------------------------- /cs61a/ants/img/ants_vs_bees.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ants_vs_bees.png -------------------------------------------------------------------------------- /cs61a/ants/img/bee.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/bee.gif -------------------------------------------------------------------------------- /cs61a/ants/img/boss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/boss.gif -------------------------------------------------------------------------------- /cs61a/ants/img/collab-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/collab-demo.png -------------------------------------------------------------------------------- /cs61a/ants/img/custom_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/custom_test.png -------------------------------------------------------------------------------- /cs61a/ants/img/gui_explanation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/gui_explanation.png -------------------------------------------------------------------------------- /cs61a/ants/img/hornet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/hornet.gif -------------------------------------------------------------------------------- /cs61a/ants/img/new_ants_gui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/new_ants_gui.png -------------------------------------------------------------------------------- /cs61a/ants/img/ninjabee.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/ninjabee.gif -------------------------------------------------------------------------------- /cs61a/ants/img/remover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/remover.gif -------------------------------------------------------------------------------- /cs61a/ants/img/tunnel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/tunnel.gif -------------------------------------------------------------------------------- /cs61a/ants/img/wasp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/img/wasp.gif -------------------------------------------------------------------------------- /cs61a/ants/mytests.rst: -------------------------------------------------------------------------------- 1 | This file holds the tests that you create. Remember to import the python file(s) 2 | you wish to test, along with any other modules you may need. 3 | Run your tests with "python3 ok -t --suite SUITE_NAME --case CASE_NAME -v" 4 | -------------------------------------------------------------------------------- 5 | 6 | Suite 1 7 | 8 | >>> from ants import * 9 | 10 | Case Example 11 | >>> x = 5 12 | >>> x 13 | 5 14 | 15 | -------------------------------------------------------------------------------- /cs61a/ants/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/ok -------------------------------------------------------------------------------- /cs61a/ants/proj03.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Project 3: Ants Vs. SomeBees", 3 | "endpoint": "cal/cs61a/sp18/proj03", 4 | "src": [ 5 | "ants.py", 6 | "mytests.rst" 7 | ], 8 | "tests": { 9 | "tests/0[0-9].py": "ok_test", 10 | "tests/1[0-3].py": "ok_test", 11 | "tests/EC.py": "ok_test" 12 | }, 13 | "default_tests": [ 14 | "00", 15 | "01", 16 | "02", 17 | "03", 18 | "04", 19 | "05", 20 | "06", 21 | "07", 22 | "08", 23 | "09", 24 | "10", 25 | "11", 26 | "12", 27 | "13" 28 | ], 29 | "protocols": [ 30 | "restore", 31 | "file_contents", 32 | "unlock", 33 | "grading", 34 | "analytics", 35 | "collaborate", 36 | "backup" 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /cs61a/ants/state.py: -------------------------------------------------------------------------------- 1 | class State: 2 | """A State holds a current game state and all of its attributes""" 3 | 4 | def __init__(self): 5 | """Create a new gamestate""" 6 | self.gs = {} 7 | 8 | 9 | def getState(self, key=None): 10 | if key: 11 | return self.gs[key] 12 | return self.gs 13 | 14 | def updateState(self, key, val): 15 | self.gs[key] = val 16 | 17 | 18 | -------------------------------------------------------------------------------- /cs61a/ants/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/00.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/00.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/01.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/01.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/02.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/02.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/03.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/03.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/04.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/04.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/05.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/05.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/06.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/06.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/07.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/07.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/08.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/08.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/09.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/09.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/10.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/10.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/11.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/11.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/12.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/12.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/13.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/13.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/EC.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/EC.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/ants/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/ants/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hog/__pycache__/dice.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/__pycache__/dice.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hog/__pycache__/dice.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/__pycache__/dice.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hog/__pycache__/hog.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/__pycache__/hog.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hog/__pycache__/hog.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/__pycache__/hog.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hog/__pycache__/ucb.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/__pycache__/ucb.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hog/__pycache__/ucb.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/__pycache__/ucb.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hog/images/die1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/images/die1.gif -------------------------------------------------------------------------------- /cs61a/hog/images/die2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/images/die2.gif -------------------------------------------------------------------------------- /cs61a/hog/images/die3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/images/die3.gif -------------------------------------------------------------------------------- /cs61a/hog/images/die4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/images/die4.gif -------------------------------------------------------------------------------- /cs61a/hog/images/die5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/images/die5.gif -------------------------------------------------------------------------------- /cs61a/hog/images/die6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/images/die6.gif -------------------------------------------------------------------------------- /cs61a/hog/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/ok -------------------------------------------------------------------------------- /cs61a/hog/proj01.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Project 1: Hog", 3 | "endpoint": "cal/cs61a/sp18/proj01", 4 | "src": [ 5 | "hog.py" 6 | ], 7 | "tests": { 8 | "tests/00.py": "ok_test", 9 | "tests/01.py": "ok_test", 10 | "tests/02.py": "ok_test", 11 | "tests/03.py": "ok_test", 12 | "tests/04.py": "ok_test", 13 | "tests/05.py": "ok_test", 14 | "tests/06.py": "ok_test", 15 | "tests/07.py": "ok_test", 16 | "tests/08.py": "ok_test", 17 | "tests/09.py": "ok_test", 18 | "tests/10.py": "ok_test", 19 | "tests/11.py": "ok_test", 20 | "tests/12.py": "ok_test" 21 | }, 22 | "protocols": [ 23 | "file_contents", 24 | "unlock", 25 | "grading", 26 | "analytics", 27 | "collaborate", 28 | "backup" 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /cs61a/hog/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hog/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/hw01/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw01/.ok_history -------------------------------------------------------------------------------- /cs61a/hw01/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw01/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/hw01/__pycache__/hw01.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw01/__pycache__/hw01.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw01/hw01.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 1", 3 | "endpoint": "cal/cs61a/sp18/hw01", 4 | "src": [ 5 | "hw01.py" 6 | ], 7 | "tests": { 8 | "hw01.py:a_plus_abs_b": "doctest", 9 | "hw01.py:two_of_three": "doctest", 10 | "hw01.py:largest_factor": "doctest", 11 | "hw01.py:hailstone": "doctest" 12 | }, 13 | "protocols": [ 14 | "file_contents", 15 | "grading", 16 | "analytics", 17 | "backup" 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /cs61a/hw01/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw01/ok -------------------------------------------------------------------------------- /cs61a/hw02/__pycache__/construct_check.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw02/__pycache__/construct_check.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw02/hw02.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 2", 3 | "endpoint": "cal/cs61a/sp18/hw02", 4 | "src": [ 5 | "hw02.py" 6 | ], 7 | "tests": { 8 | "hw02.py": "doctest" 9 | }, 10 | "default_tests": [ 11 | "product", 12 | "factorial", 13 | "make_adder" 14 | ], 15 | "protocols": [ 16 | "restore", 17 | "file_contents", 18 | "grading", 19 | "analytics", 20 | "backup" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /cs61a/hw02/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw02/ok -------------------------------------------------------------------------------- /cs61a/hw03/hw03.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 3", 3 | "endpoint": "cal/cs61a/sp18/hw03", 4 | "src": [ 5 | "hw03.py" 6 | ], 7 | "tests": { 8 | "hw03.py": "doctest" 9 | }, 10 | "default_tests": [ 11 | "has_seven", 12 | "summation", 13 | "accumulate", 14 | "summation_using_accumulate", 15 | "product_using_accumulate", 16 | "filtered_accumulate", 17 | "make_repeater" 18 | ], 19 | "protocols": [ 20 | "restore", 21 | "file_contents", 22 | "grading", 23 | "analytics", 24 | "backup" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /cs61a/hw03/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw03/ok -------------------------------------------------------------------------------- /cs61a/hw04/__pycache__/construct_check.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw04/__pycache__/construct_check.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw04/hw04.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 4", 3 | "endpoint": "cal/cs61a/sp18/hw04", 4 | "src": [ 5 | "hw04.py" 6 | ], 7 | "tests": { 8 | "hw04.py": "doctest" 9 | }, 10 | "default_tests": [ 11 | "taxicab", 12 | "squares", 13 | "g", 14 | "g_iter", 15 | "pingpong", 16 | "count_change" 17 | ], 18 | "protocols": [ 19 | "restore", 20 | "file_contents", 21 | "grading", 22 | "analytics", 23 | "backup" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /cs61a/hw04/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw04/ok -------------------------------------------------------------------------------- /cs61a/hw05/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/.ok_history -------------------------------------------------------------------------------- /cs61a/hw05/__pycache__/hw05.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/__pycache__/hw05.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw05/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/ok -------------------------------------------------------------------------------- /cs61a/hw05/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/check_par.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/check_par.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/check_par.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/check_par.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/div_interval.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/div_interval.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/div_interval.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/div_interval.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/interval.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/interval.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/interval.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/interval.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/mul_interval.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/mul_interval.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/mul_interval.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/mul_interval.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/polynomial.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/polynomial.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/polynomial.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/polynomial.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/quadratic.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/quadratic.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/quadratic.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/quadratic.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/sub_interval.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/sub_interval.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw05/tests/__pycache__/sub_interval.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw05/tests/__pycache__/sub_interval.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw06/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw06/.ok_history -------------------------------------------------------------------------------- /cs61a/hw06/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw06/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/hw06/__pycache__/hw06.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw06/__pycache__/hw06.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw06/hw06.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 6", 3 | "endpoint": "cal/cs61a/sp18/hw06", 4 | "src": [ 5 | "hw06.py" 6 | ], 7 | "tests": { 8 | "hw06.py": "doctest" 9 | }, 10 | "default_tests": [ 11 | "survey", 12 | "Fib", 13 | "VendingMachine" 14 | ], 15 | "protocols": [ 16 | "restore", 17 | "file_contents", 18 | "unlock", 19 | "grading", 20 | "analytics", 21 | "backup" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /cs61a/hw06/lab08/lab08.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 8", 3 | "endpoint": "cal/cs61a/sp18/lab08", 4 | "src": [ 5 | "lab08.py" 6 | ], 7 | "tests": { 8 | "lab08.py:deep_len": "doctest", 9 | "lab08_extra.py": "doctest", 10 | "tests/growth.py": "ok_test", 11 | "tests/foobar.py": "ok_test", 12 | "tests/attributes.py": "ok_test", 13 | "tests/boom.py": "ok_test", 14 | "tests/zap.py": "ok_test" 15 | }, 16 | "default_tests": [ 17 | "deep_len", 18 | "growth" 19 | ], 20 | "protocols": [ 21 | "restore", 22 | "file_contents", 23 | "unlock", 24 | "grading", 25 | "analytics", 26 | "backup" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /cs61a/hw06/lab08/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw06/lab08/ok -------------------------------------------------------------------------------- /cs61a/hw06/lab08/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw06/lab08/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/hw06/lab08/tests/boom.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'Boom', 3 | 'points': 0, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'answer': '6df5154157f2b5691f58df9227647660', 9 | 'choices': [ 10 | '1', 11 | 'n', 12 | 'log(n)', 13 | 'n^2', 14 | 'n^3', 15 | 'n^4', 16 | 'exponential' 17 | ], 18 | 'hidden': False, 19 | 'locked': True, 20 | 'question': 'What is the order of growth in runtime for boom?' 21 | } 22 | ], 23 | 'scored': False, 24 | 'type': 'concept' 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /cs61a/hw06/lab08/tests/zap.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'Zap', 3 | 'points': 0, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'answer': '00adc8b182314743ab954fb68174526a', 9 | 'choices': [ 10 | '1', 11 | 'n', 12 | 'log(n)', 13 | 'n^2', 14 | 'n^3', 15 | 'n^4', 16 | 'exponential' 17 | ], 18 | 'hidden': False, 19 | 'locked': True, 20 | 'question': 'What is the order of growth in runtime for zap?' 21 | } 22 | ], 23 | 'scored': False, 24 | 'type': 'concept' 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /cs61a/hw06/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw06/ok -------------------------------------------------------------------------------- /cs61a/hw07/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw07/.ok_history -------------------------------------------------------------------------------- /cs61a/hw07/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw07/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/hw07/__pycache__/hw07.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw07/__pycache__/hw07.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw07/__pycache__/hw07.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw07/__pycache__/hw07.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw07/hw07.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 7", 3 | "endpoint": "cal/cs61a/sp18/hw07", 4 | "src": [ 5 | "hw07.py" 6 | ], 7 | "tests": { 8 | "hw07.py": "doctest" 9 | }, 10 | "default_tests": [ 11 | "digits", 12 | "MissManners" 13 | ], 14 | "protocols": [ 15 | "restore", 16 | "file_contents", 17 | "unlock", 18 | "grading", 19 | "analytics", 20 | "backup" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /cs61a/hw07/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw07/ok -------------------------------------------------------------------------------- /cs61a/hw08/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/.ok_history -------------------------------------------------------------------------------- /cs61a/hw08/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/hw08/hw08.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 8", 3 | "endpoint": "cal/cs61a/sp18/hw08", 4 | "src": [ 5 | "hw08.scm" 6 | ], 7 | "tests": { 8 | "tests/cadr-caddr.py": "ok_test", 9 | "tests/sign.py": "ok_test", 10 | "tests/pow.py": "ok_test", 11 | "tests/ordered.py": "ok_test", 12 | "tests/nodots.py": "ok_test", 13 | "tests/contains.py": "ok_test", 14 | "tests/add.py": "ok_test", 15 | "tests/intersect.py": "ok_test", 16 | "tests/union.py": "ok_test", 17 | "tests/in.py": "ok_test", 18 | "tests/as-list.py": "ok_test", 19 | "tests/survey.py": "ok_test" 20 | }, 21 | "protocols": [ 22 | "restore", 23 | "file_contents", 24 | "grading", 25 | "analytics", 26 | "unlock", 27 | "backup" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /cs61a/hw08/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/ok -------------------------------------------------------------------------------- /cs61a/hw08/scheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/scheme -------------------------------------------------------------------------------- /cs61a/hw08/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/add.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/add.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/add.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/add.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/cadr-caddr.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/cadr-caddr.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/cadr-caddr.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/cadr-caddr.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/contains.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/contains.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/contains.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/contains.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/intersect.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/intersect.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/intersect.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/intersect.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/nodots.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/nodots.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/nodots.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/nodots.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/ordered.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/ordered.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/ordered.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/ordered.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/pow.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/pow.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/pow.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/pow.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/sign.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/sign.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/sign.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/sign.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/union.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/union.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/__pycache__/union.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw08/tests/__pycache__/union.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw08/tests/cadr-caddr.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'cadr-caddr', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (cddr '(1 2 3 4)) 10 | (3 4) 11 | """, 12 | 'hidden': False, 13 | 'locked': False 14 | }, 15 | { 16 | 'code': r""" 17 | scm> (cadr '(1 2 3 4)) 18 | 2 19 | """, 20 | 'hidden': False, 21 | 'locked': False 22 | }, 23 | { 24 | 'code': r""" 25 | scm> (caddr '(1 2 3 4)) 26 | 3 27 | """, 28 | 'hidden': False, 29 | 'locked': False 30 | } 31 | ], 32 | 'scored': True, 33 | 'setup': r""" 34 | scm> (load 'hw08) 35 | """, 36 | 'teardown': '', 37 | 'type': 'scheme' 38 | } 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /cs61a/hw08/tests/pow.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'pow', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (pow 2 5) 10 | 32 11 | """, 12 | 'hidden': False, 13 | 'locked': False 14 | }, 15 | { 16 | 'code': r""" 17 | scm> (pow 10 3) 18 | 1000 19 | """, 20 | 'hidden': False, 21 | 'locked': False 22 | }, 23 | { 24 | 'code': r""" 25 | scm> (pow 3 3) 26 | 27 27 | """, 28 | 'hidden': False, 29 | 'locked': False 30 | } 31 | ], 32 | 'scored': True, 33 | 'setup': r""" 34 | scm> (load 'hw08) 35 | """, 36 | 'teardown': '', 37 | 'type': 'scheme' 38 | } 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /cs61a/hw09/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/.ok_history -------------------------------------------------------------------------------- /cs61a/hw09/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/hw09/hw09.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 9", 3 | "endpoint": "cal/cs61a/sp18/hw09", 4 | "src": [ 5 | "hw09.scm" 6 | ], 7 | "tests": { 8 | "tests/how-many-dots.py": "ok_test", 9 | "tests/derive-sum.py": "ok_test", 10 | "tests/derive-product.py": "ok_test", 11 | "tests/make-exp.py": "ok_test", 12 | "tests/derive-exp.py": "ok_test" 13 | }, 14 | "protocols": [ 15 | "restore", 16 | "file_contents", 17 | "unlock", 18 | "grading", 19 | "analytics", 20 | "backup" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /cs61a/hw09/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/ok -------------------------------------------------------------------------------- /cs61a/hw09/scheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/scheme -------------------------------------------------------------------------------- /cs61a/hw09/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/derive-exp.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/derive-exp.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/derive-exp.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/derive-exp.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/derive-product.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/derive-product.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/derive-product.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/derive-product.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/derive-sum.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/derive-sum.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/derive-sum.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/derive-sum.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/how-many-dots.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/how-many-dots.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/how-many-dots.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/how-many-dots.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/make-exp.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/make-exp.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/__pycache__/make-exp.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw09/tests/__pycache__/make-exp.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw09/tests/how-many-dots.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'how-many-dots', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (how-many-dots '(1 2 3)) 10 | 0 11 | scm> (how-many-dots '(1 2 . 3)) 12 | 1 13 | scm> (how-many-dots '((1 . 2) 3 . 4)) 14 | 2 15 | scm> (how-many-dots '((((((1 . 2) . 3) . 4) . 5) . 6) . 7)) 16 | 6 17 | scm> (how-many-dots '(1 . (2 . (3 . (4 . (5 . (6 . (7)))))))) 18 | 0 19 | """, 20 | 'hidden': False, 21 | 'locked': False 22 | } 23 | ], 24 | 'scored': True, 25 | 'setup': r""" 26 | scm> (load 'hw09) 27 | """, 28 | 'teardown': '', 29 | 'type': 'scheme' 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /cs61a/hw10/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/.ok_history -------------------------------------------------------------------------------- /cs61a/hw10/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/hw10/hw10.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 10", 3 | "endpoint": "cal/cs61a/sp18/hw10", 4 | "src": [ 5 | "hw10.scm" 6 | ], 7 | "tests": { 8 | "tests/accumulate.py": "ok_test", 9 | "tests/accumulate-tail.py": "ok_test", 10 | "tests/list-comp.py": "ok_test" 11 | }, 12 | "protocols": [ 13 | "restore", 14 | "file_contents", 15 | "unlock", 16 | "grading", 17 | "analytics", 18 | "backup" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /cs61a/hw10/hw10.scm: -------------------------------------------------------------------------------- 1 | (define (accumulate combiner start n term) 2 | (if (= n 0) 3 | start 4 | (combiner 5 | (term n) 6 | (accumulate combiner start (- n 1) term) 7 | ) 8 | ) 9 | ) 10 | 11 | (define (accumulate-tail combiner start n term) 12 | ;(define (acc-helper combiner acc n term) 13 | (if (= n 0) 14 | start 15 | (accumulate-tail combiner (combiner (term n) start) (- n 1) term) 16 | ) 17 | ;) 18 | ;(acc-helper combiner start n term) 19 | ) 20 | 21 | (define-macro (list-of expr for var in seq if filter-fn) 22 | ;`(map (lambda (,var) ,expr) (filter (lambda (,var) ,filter-fn) ,seq)) 23 | (list 'map (list 'lambda (list var) expr) (list 'filter (list 'lambda (list var) filter-fn) seq)) 24 | ) -------------------------------------------------------------------------------- /cs61a/hw10/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/ok -------------------------------------------------------------------------------- /cs61a/hw10/scheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/scheme -------------------------------------------------------------------------------- /cs61a/hw10/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/hw10/tests/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw10/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw10/tests/__pycache__/accumulate-tail.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__pycache__/accumulate-tail.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw10/tests/__pycache__/accumulate-tail.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__pycache__/accumulate-tail.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw10/tests/__pycache__/accumulate.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__pycache__/accumulate.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw10/tests/__pycache__/accumulate.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__pycache__/accumulate.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw10/tests/__pycache__/list-comp.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__pycache__/list-comp.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw10/tests/__pycache__/list-comp.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw10/tests/__pycache__/list-comp.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw10/tests/accumulate.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'accumulate', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (define (identity x) x) 10 | identity 11 | scm> (accumulate * 1 5 identity) 12 | 120 13 | """, 14 | 'hidden': False, 15 | 'locked': False 16 | }, 17 | { 18 | 'code': r""" 19 | scm> (define (square x) (* x x)) 20 | square 21 | scm> (accumulate + 0 5 square) 22 | 55 23 | """, 24 | 'hidden': False, 25 | 'locked': False 26 | } 27 | ], 28 | 'scored': True, 29 | 'setup': r""" 30 | scm> (load 'hw10) 31 | """, 32 | 'teardown': '', 33 | 'type': 'scheme' 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /cs61a/hw11/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/.ok_history -------------------------------------------------------------------------------- /cs61a/hw11/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/hw11/hw11.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 11", 3 | "endpoint": "cal/cs61a/sp18/hw11", 4 | "src": [ 5 | "hw11.scm" 6 | ], 7 | "tests": { 8 | "tests/find.py": "ok_test", 9 | "tests/scale-stream.py": "ok_test", 10 | "tests/has-cycle.py": "ok_test", 11 | "tests/has-cycle-constant.py": "ok_test" 12 | }, 13 | "default_tests": [ 14 | "find", 15 | "scale-stream", 16 | "has-cycle" 17 | ], 18 | "protocols": [ 19 | "restore", 20 | "file_contents", 21 | "unlock", 22 | "grading", 23 | "analytics", 24 | "backup" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /cs61a/hw11/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/ok -------------------------------------------------------------------------------- /cs61a/hw11/scheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/scheme -------------------------------------------------------------------------------- /cs61a/hw11/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/find.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/find.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/find.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/find.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/has-cycle-constant.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/has-cycle-constant.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/has-cycle-constant.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/has-cycle-constant.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/has-cycle.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/has-cycle.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/has-cycle.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/has-cycle.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/scale-stream.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/scale-stream.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/__pycache__/scale-stream.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw11/tests/__pycache__/scale-stream.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/hw11/tests/find.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'find', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (find m even?) 10 | 2 11 | scm> (find m (lambda (x) (= x 3))) 12 | #f 13 | scm> (find m (lambda (x) (= x 1))) 14 | 1 15 | """, 16 | 'hidden': False, 17 | 'locked': False 18 | } 19 | ], 20 | 'scored': True, 21 | 'setup': r""" 22 | scm> (load 'hw11) 23 | scm> (define m (cons-stream 1 (cons-stream 2 nil))) 24 | """, 25 | 'teardown': '', 26 | 'type': 'scheme' 27 | } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /cs61a/hw11/tests/has-cycle.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'has-cycle', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (has-cycle s) 10 | #f 11 | scm> (has-cycle cycle) 12 | #t 13 | scm> (has-cycle cycle-within) 14 | #t 15 | """, 16 | 'hidden': False, 17 | 'locked': False 18 | } 19 | ], 20 | 'scored': True, 21 | 'setup': r""" 22 | scm> (load 'hw11) 23 | scm> (define s (cons-stream 1 (cons-stream 2 nil))) 24 | scm> (define cycle (cons-stream 1 (cons-stream 1 cycle))) 25 | scm> (define cycle-within (cons-stream 1 (cons-stream 2 cycle))) 26 | """, 27 | 'teardown': '', 28 | 'type': 'scheme' 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /cs61a/hw12/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/.ok_history -------------------------------------------------------------------------------- /cs61a/hw12/.ok_storage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/.ok_storage -------------------------------------------------------------------------------- /cs61a/hw12/hw12.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Homework 12", 3 | "endpoint": "cal/cs61a/sp18/hw12", 4 | "src": [ 5 | "hw12.sql" 6 | ], 7 | "tests": { 8 | "tests/small.py": "ok_test", 9 | "tests/parent-height.py": "ok_test", 10 | "tests/size-siblings.py": "ok_test", 11 | "tests/stack.py": "ok_test" 12 | }, 13 | "default_tests": [ 14 | "small", 15 | "parent-height", 16 | "size-siblings", 17 | "stack" 18 | ], 19 | "protocols": [ 20 | "restore", 21 | "file_contents", 22 | "unlock", 23 | "grading", 24 | "analytics", 25 | "backup" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /cs61a/hw12/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/ok -------------------------------------------------------------------------------- /cs61a/hw12/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/parent-height.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/parent-height.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/parent-height.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/parent-height.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/size-siblings.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/size-siblings.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/size-siblings.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/size-siblings.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/small.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/small.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/small.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/small.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/stack.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/stack.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/__pycache__/stack.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/hw12/tests/__pycache__/stack.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/hw12/tests/parent-height.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'parent', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | sqlite> SELECT * FROM by_height; 10 | herbert 11 | fillmore 12 | abraham 13 | delano 14 | grover 15 | barack 16 | clinton 17 | """, 18 | 'hidden': False, 19 | 'locked': False 20 | } 21 | ], 22 | 'ordered': True, 23 | 'scored': True, 24 | 'setup': r""" 25 | sqlite> .read hw12.sql 26 | """, 27 | 'teardown': '', 28 | 'type': 'sqlite' 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /cs61a/hw12/tests/size-siblings.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'size', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | sqlite> SELECT * FROM sentences; 10 | barack and clinton are standard siblings 11 | abraham and grover are toy siblings 12 | """, 13 | 'hidden': False, 14 | 'locked': False 15 | } 16 | ], 17 | 'ordered': False, 18 | 'scored': True, 19 | 'setup': r""" 20 | sqlite> .read hw12.sql 21 | """, 22 | 'teardown': '', 23 | 'type': 'sqlite' 24 | } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /cs61a/hw12/tests/small.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'small', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | sqlite> SELECT name FROM size_of_dogs WHERE size="toy" OR size="mini"; 10 | abraham 11 | eisenhower 12 | fillmore 13 | grover 14 | herbert 15 | """, 16 | 'hidden': False, 17 | 'locked': False 18 | } 19 | ], 20 | 'ordered': False, 21 | 'scored': True, 22 | 'setup': r""" 23 | sqlite> .read hw12.sql 24 | """, 25 | 'teardown': '', 26 | 'type': 'sqlite' 27 | } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /cs61a/hw12/tests/stack.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'stack', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | sqlite> SELECT * FROM stacks; 10 | abraham, delano, clinton, barack|171 11 | grover, delano, clinton, barack|173 12 | herbert, delano, clinton, barack|176 13 | fillmore, delano, clinton, barack|177 14 | eisenhower, delano, clinton, barack|180 15 | """, 16 | 'hidden': False, 17 | 'locked': False 18 | } 19 | ], 20 | 'ordered': True, 21 | 'scored': True, 22 | 'setup': r""" 23 | sqlite> .read hw12.sql 24 | """, 25 | 'teardown': '', 26 | 'type': 'sqlite' 27 | } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /cs61a/lab01/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/.ok_history -------------------------------------------------------------------------------- /cs61a/lab01/.ok_storage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/.ok_storage -------------------------------------------------------------------------------- /cs61a/lab01/__pycache__/lab01.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/__pycache__/lab01.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab01/__pycache__/lab01_extra.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/__pycache__/lab01_extra.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab01/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/ok -------------------------------------------------------------------------------- /cs61a/lab01/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/loops.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/loops.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/loops.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/loops.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/short_circuiting.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/short_circuiting.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/short_circuiting.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/short_circuiting.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/truthiness.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/truthiness.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/truthiness.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/truthiness.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/what_if.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/what_if.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/lab01/tests/__pycache__/what_if.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab01/tests/__pycache__/what_if.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab02/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/.ok_history -------------------------------------------------------------------------------- /cs61a/lab02/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab02/__pycache__/lab02.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/__pycache__/lab02.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab02/__pycache__/lab02.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/__pycache__/lab02.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab02/__pycache__/lab02_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/__pycache__/lab02_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab02/__pycache__/lab02_extra.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/__pycache__/lab02_extra.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab02/lab02.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 2", 3 | "endpoint": "cal/cs61a/sp18/lab02", 4 | "src": [ 5 | "tests/lambda.py", 6 | "tests/hof.py", 7 | "lab02.py", 8 | "lab02_extra.py" 9 | ], 10 | "tests": { 11 | "tests/lambda.py": "ok_test", 12 | "tests/hof.py": "ok_test", 13 | "lab02.py:lambda_curry2": "doctest", 14 | "lab02_extra.py:composite_identity": "doctest", 15 | "lab02_extra.py:count_cond": "doctest", 16 | "lab02_extra.py:cycle": "doctest" 17 | }, 18 | "default_tests": [ 19 | "lambda", 20 | "hof", 21 | "lambda_curry2" 22 | ], 23 | "protocols": [ 24 | "restore", 25 | "file_contents", 26 | "analytics", 27 | "unlock", 28 | "grading", 29 | "backup" 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /cs61a/lab02/lab02.py: -------------------------------------------------------------------------------- 1 | """Lab 2: Lambda Expressions and Higher Order Functions""" 2 | 3 | # Lambda Functions 4 | 5 | def lambda_curry2(func): 6 | """ 7 | Returns a Curried version of a two-argument function FUNC. 8 | >>> from operator import add 9 | >>> curried_add = lambda_curry2(add) 10 | >>> add_three = curried_add(3) 11 | >>> add_three(5) 12 | 8 13 | """ 14 | "*** YOUR CODE HERE ***" 15 | return lambda x: lambda y: func(x, y) 16 | -------------------------------------------------------------------------------- /cs61a/lab02/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/ok -------------------------------------------------------------------------------- /cs61a/lab02/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/__init__.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/__init__.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/hof.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/hof.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/hof.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/hof.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/hof.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/hof.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/lambda.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/lambda.cpython-35.pyc -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/lambda.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/lambda.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab02/tests/__pycache__/lambda.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab02/tests/__pycache__/lambda.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab03/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/.ok_history -------------------------------------------------------------------------------- /cs61a/lab03/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab03/__pycache__/lab03.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/__pycache__/lab03.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab03/__pycache__/lab03.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/__pycache__/lab03.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab03/__pycache__/lab03_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/__pycache__/lab03_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab03/__pycache__/lab03_extra.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/__pycache__/lab03_extra.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab03/lab03.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 3", 3 | "endpoint": "cal/cs61a/sp18/lab03", 4 | "src": [ 5 | "lab03.py", 6 | "lab03_extra.py", 7 | "tests/call_expressions.py", 8 | "tests/skip_mul_ok.py" 9 | ], 10 | "tests": { 11 | "lab03.py": "doctest", 12 | "lab03_extra.py": "doctest", 13 | "tests/call_expressions.py": "ok_test", 14 | "tests/skip_mul_ok.py": "ok_test" 15 | }, 16 | "default_tests": [ 17 | "gcd", 18 | "hailstone" 19 | ], 20 | "protocols": [ 21 | "restore", 22 | "file_contents", 23 | "analytics", 24 | "unlock", 25 | "grading", 26 | "backup" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /cs61a/lab03/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/ok -------------------------------------------------------------------------------- /cs61a/lab03/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab03/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab03/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab03/tests/__pycache__/call_expressions.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/tests/__pycache__/call_expressions.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab03/tests/__pycache__/call_expressions.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/tests/__pycache__/call_expressions.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab03/tests/__pycache__/skip_mul_ok.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/tests/__pycache__/skip_mul_ok.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab03/tests/__pycache__/skip_mul_ok.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab03/tests/__pycache__/skip_mul_ok.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab04/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/.ok_history -------------------------------------------------------------------------------- /cs61a/lab04/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab04/__pycache__/lab04.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/__pycache__/lab04.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab04/__pycache__/lab04_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/__pycache__/lab04_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab04/lab04.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 4", 3 | "endpoint": "cal/cs61a/sp18/lab04", 4 | "src": [ 5 | "lab04.py", 6 | "lab04_extra.py" 7 | ], 8 | "tests": { 9 | "lab04.py": "doctest", 10 | "lab04_extra.py": "doctest", 11 | "tests/lists.py": "ok_test", 12 | "tests/indexing.py": "ok_test" 13 | }, 14 | "default_tests": [ 15 | "lists", 16 | "indexing", 17 | "if_this_not_that", 18 | "distance", 19 | "closer_city" 20 | ], 21 | "protocols": [ 22 | "restore", 23 | "file_contents", 24 | "analytics", 25 | "unlock", 26 | "grading", 27 | "backup" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /cs61a/lab04/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/ok -------------------------------------------------------------------------------- /cs61a/lab04/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab04/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab04/tests/__pycache__/indexing.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/tests/__pycache__/indexing.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab04/tests/__pycache__/lists.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab04/tests/__pycache__/lists.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab05/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab05/.ok_history -------------------------------------------------------------------------------- /cs61a/lab05/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab05/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab05/__pycache__/lab05.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab05/__pycache__/lab05.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab05/__pycache__/lab05_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab05/__pycache__/lab05_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab05/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab05/ok -------------------------------------------------------------------------------- /cs61a/lab05/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab05/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab05/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab05/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab05/tests/__pycache__/dicts.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab05/tests/__pycache__/dicts.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab06/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/.ok_history -------------------------------------------------------------------------------- /cs61a/lab06/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab06/__pycache__/classes.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/__pycache__/classes.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab06/__pycache__/classes.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/__pycache__/classes.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab06/__pycache__/data.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/__pycache__/data.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab06/__pycache__/lab06_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/__pycache__/lab06_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab06/__pycache__/lab06_extra.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/__pycache__/lab06_extra.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab06/car.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/car.pyc -------------------------------------------------------------------------------- /cs61a/lab06/lab06.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 6", 3 | "endpoint": "cal/cs61a/sp18/lab06", 4 | "src": [ 5 | "classes.py", 6 | "data.py" 7 | ], 8 | "tests": { 9 | "tests/car.py": "ok_test", 10 | "tests/food_truck.py": "ok_test", 11 | "tests/me.py": "ok_test", 12 | "classes.py:Player.go_to": "doctest", 13 | "classes.py:Player.talk_to": "doctest", 14 | "classes.py:Player.take": "doctest", 15 | "classes.py:Player.unlock": "doctest", 16 | "lab06_extra.py": "doctest" 17 | }, 18 | "default_tests": [ 19 | "car", 20 | "food_truck", 21 | "me", 22 | "Player.go_to" 23 | ], 24 | "protocols": [ 25 | "restore", 26 | "file_contents", 27 | "unlock", 28 | "grading", 29 | "analytics", 30 | "backup" 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /cs61a/lab06/lab06_extra.py: -------------------------------------------------------------------------------- 1 | """ Optional problems for Lab 6 """ 2 | 3 | ## Nonlocal practice 4 | def vending_machine(snacks): 5 | """Cycles through sequence of snacks. 6 | 7 | >>> vender = vending_machine(('chips', 'chocolate', 'popcorn')) 8 | >>> vender() 9 | 'chips' 10 | >>> vender() 11 | 'chocolate' 12 | >>> vender() 13 | 'popcorn' 14 | >>> vender() 15 | 'chips' 16 | >>> other = vending_machine(('brownie',)) 17 | >>> other() 18 | 'brownie' 19 | >>> vender() 20 | 'chocolate' 21 | """ 22 | "*** YOUR CODE HERE ***" 23 | i = 0 24 | def func(): 25 | nonlocal i 26 | ret = snacks[i] 27 | i = (i + 1) % len(snacks) 28 | return ret 29 | return func 30 | -------------------------------------------------------------------------------- /cs61a/lab06/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/ok -------------------------------------------------------------------------------- /cs61a/lab06/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab06/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab06/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab06/tests/__pycache__/car.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__pycache__/car.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab06/tests/__pycache__/car.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__pycache__/car.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab06/tests/__pycache__/food_truck.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__pycache__/food_truck.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab06/tests/__pycache__/food_truck.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__pycache__/food_truck.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab06/tests/__pycache__/me.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__pycache__/me.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab06/tests/__pycache__/me.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab06/tests/__pycache__/me.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab06/tests/me.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'Me', 3 | 'points': 0, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | >>> from data import * 10 | >>> type(me.name) == str 11 | True 12 | >>> me.place is sather_gate 13 | True 14 | """, 15 | 'hidden': False, 16 | 'locked': False 17 | } 18 | ], 19 | 'scored': True, 20 | 'setup': '', 21 | 'teardown': '', 22 | 'type': 'doctest' 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /cs61a/lab07/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/.ok_history -------------------------------------------------------------------------------- /cs61a/lab07/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab07/__pycache__/lab07.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/__pycache__/lab07.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab07/__pycache__/lab07_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/__pycache__/lab07_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab07/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/ok -------------------------------------------------------------------------------- /cs61a/lab07/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab07/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab07/tests/__pycache__/link.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/tests/__pycache__/link.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab07/tests/__pycache__/trees.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab07/tests/__pycache__/trees.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/.ok_history -------------------------------------------------------------------------------- /cs61a/lab08/.ok_storage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/.ok_storage -------------------------------------------------------------------------------- /cs61a/lab08/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab08/__pycache__/lab08.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/__pycache__/lab08.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/__pycache__/lab08.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/__pycache__/lab08.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab08/__pycache__/lab08_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/__pycache__/lab08_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/__pycache__/lab08_extra.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/__pycache__/lab08_extra.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab08/lab08.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 8", 3 | "endpoint": "cal/cs61a/sp18/lab08", 4 | "src": [ 5 | "lab08.py" 6 | ], 7 | "tests": { 8 | "lab08.py:deep_len": "doctest", 9 | "lab08_extra.py": "doctest", 10 | "tests/growth.py": "ok_test", 11 | "tests/foobar.py": "ok_test", 12 | "tests/attributes.py": "ok_test", 13 | "tests/boom.py": "ok_test", 14 | "tests/zap.py": "ok_test" 15 | }, 16 | "default_tests": [ 17 | "deep_len", 18 | "growth" 19 | ], 20 | "protocols": [ 21 | "restore", 22 | "file_contents", 23 | "unlock", 24 | "grading", 25 | "analytics", 26 | "backup" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /cs61a/lab08/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/ok -------------------------------------------------------------------------------- /cs61a/lab08/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/attributes.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/attributes.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/attributes.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/attributes.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/boom.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/boom.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/boom.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/boom.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/foobar.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/foobar.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/foobar.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/foobar.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/growth.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/growth.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/growth.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/growth.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/zap.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/zap.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/__pycache__/zap.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab08/tests/__pycache__/zap.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab08/tests/boom.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'Boom', 3 | 'points': 0, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'answer': 'n^4', 9 | 'choices': [ 10 | '1', 11 | 'n', 12 | 'log(n)', 13 | 'n^2', 14 | 'n^3', 15 | 'n^4', 16 | 'exponential' 17 | ], 18 | 'hidden': False, 19 | 'locked': False, 20 | 'question': 'What is the order of growth in runtime for boom?' 21 | } 22 | ], 23 | 'scored': False, 24 | 'type': 'concept' 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /cs61a/lab08/tests/zap.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'Zap', 3 | 'points': 0, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'answer': 'log(n)', 9 | 'choices': [ 10 | '1', 11 | 'n', 12 | 'log(n)', 13 | 'n^2', 14 | 'n^3', 15 | 'n^4', 16 | 'exponential' 17 | ], 18 | 'hidden': False, 19 | 'locked': False, 20 | 'question': 'What is the order of growth in runtime for zap?' 21 | } 22 | ], 23 | 'scored': False, 24 | 'type': 'concept' 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /cs61a/lab09/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/.ok_history -------------------------------------------------------------------------------- /cs61a/lab09/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab09/lab09.scm: -------------------------------------------------------------------------------- 1 | ;; Scheme ;; 2 | 3 | ; Q2 4 | (define (over-or-under x y) 5 | (cond 6 | ((> x y) 1) 7 | ((< x y) -1) 8 | (else 0) 9 | ) 10 | ) 11 | 12 | ;;; Tests 13 | (over-or-under 1 2) 14 | ; expect -1 15 | (over-or-under 2 1) 16 | ; expect 1 17 | (over-or-under 1 1) 18 | ; expect 0 19 | 20 | ; Q3 21 | (define (filter f lst) 22 | ( 23 | if (null? lst) nil 24 | (if (f (car lst)) (cons (car lst) (filter f (cdr lst))) 25 | (filter f (cdr lst)) 26 | ) 27 | ) 28 | ) 29 | 30 | ;;; Tests 31 | (define (even? x) 32 | (= (modulo x 2) 0)) 33 | (filter even? '(0 1 1 2 3 5 8)) 34 | ; expect (0 2 8) 35 | 36 | ; Q4 37 | (define (make-adder num) 38 | (lambda (x) (+ x num)) 39 | ) 40 | 41 | ;;; Tests 42 | (define adder (make-adder 5)) 43 | (adder 8) 44 | ; expect 13 -------------------------------------------------------------------------------- /cs61a/lab09/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/ok -------------------------------------------------------------------------------- /cs61a/lab09/scheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/scheme -------------------------------------------------------------------------------- /cs61a/lab09/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/composed.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/composed.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/composed.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/composed.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/filter.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/filter.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/filter.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/filter.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/gcd.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/gcd.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/gcd.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/gcd.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/make-adder.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/make-adder.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/make-adder.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/make-adder.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/make-list.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/make-list.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/make-list.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/make-list.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/no-repeats.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/no-repeats.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/no-repeats.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/no-repeats.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/over-or-under.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/over-or-under.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/over-or-under.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/over-or-under.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/remove.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/remove.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/remove.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/remove.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/sub-all.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/sub-all.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/sub-all.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/sub-all.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/substitute.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/substitute.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/substitute.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/substitute.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/wwsd-lists.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/wwsd-lists.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/__pycache__/wwsd-lists.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab09/tests/__pycache__/wwsd-lists.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab09/tests/add.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'Add', 3 | 'points': 0, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | >>> from lab09_extra import * 10 | >>> Link(1, Link(2)) + Link(3, Link(4, Link(5))) 11 | Link(1, Link(2, Link(3, Link(4, Link(5))))) 12 | >>> Link(1, Link(2)) + Link.empty 13 | Link(1, Link(2)) 14 | """, 15 | 'hidden': False, 16 | 'locked': False 17 | } 18 | ], 19 | 'scored': True, 20 | 'setup': '', 21 | 'teardown': '', 22 | 'type': 'doctest' 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /cs61a/lab09/tests/reversed.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'Reversed', 3 | 'points': 0, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | >>> from lab09_extra import * 10 | >>> reversed(Link(3, Link(4, Link(5)))) 11 | Link(5, Link(4, Link(3))) 12 | """, 13 | 'hidden': False, 14 | 'locked': False 15 | } 16 | ], 17 | 'scored': True, 18 | 'setup': '', 19 | 'teardown': '', 20 | 'type': 'doctest' 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /cs61a/lab09/tests/str.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'Add', 3 | 'points': 0, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | >>> from lab09_extra import * 10 | >>> s = Link(1, Link(2, Link(3, Link(4)))) 11 | >>> str(s) 12 | '<1, 2, 3, 4>' 13 | >>> print(Link(1)) 14 | <1> 15 | >>> str(Link.empty) # empty tuple 16 | '()' 17 | """, 18 | 'hidden': False, 19 | 'locked': False 20 | } 21 | ], 22 | 'scored': True, 23 | 'setup': '', 24 | 'teardown': '', 25 | 'type': 'doctest' 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /cs61a/lab10/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/.ok_history -------------------------------------------------------------------------------- /cs61a/lab10/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab10/__pycache__/buffer.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/__pycache__/buffer.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/__pycache__/expr.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/__pycache__/expr.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/__pycache__/reader.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/__pycache__/reader.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/__pycache__/utils.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/__pycache__/utils.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/__main__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/__main__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/arithmetic.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/arithmetic.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/console.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/console.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/css_colors.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/css_colors.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/datamodel.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/datamodel.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/documentation.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/documentation.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/environment.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/environment.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/evaluate_apply.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/evaluate_apply.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/execution.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/execution.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/execution_parser.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/execution_parser.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/file_manager.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/file_manager.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/format_parser.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/format_parser.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/formatter.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/formatter.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/graphics.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/graphics.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/helper.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/helper.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/lexer.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/lexer.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/lists.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/lists.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/local_server.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/local_server.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/log.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/log.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/log_utils.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/log_utils.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/ok_interface.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/ok_interface.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/persistence.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/persistence.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/primitives.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/primitives.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/runtime_limiter.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/runtime_limiter.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/scheme_exceptions.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/scheme_exceptions.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/special_forms.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/special_forms.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/type_checking.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/type_checking.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/__pycache__/visualizing.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/__pycache__/visualizing.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/builtins.scm: -------------------------------------------------------------------------------- 1 | (define (map func lst) 2 | (if (null? lst) 3 | nil 4 | (cons (func (car lst)) 5 | (map func (cdr lst))))) 6 | 7 | (define (filter func lst) 8 | (cond ((null? lst) nil) 9 | ((func (car lst)) 10 | (cons (car lst) 11 | (filter func (cdr lst)))) 12 | (else (filter func (cdr lst))))) 13 | 14 | (define (reduce func lst) 15 | (cond ((null? lst) nil) 16 | ((null? (cdr lst)) (car lst)) 17 | (else 18 | (reduce func 19 | (cons (func (car lst) (car (cdr lst))) 20 | (cdr (cdr lst))))))) 21 | 22 | ; (define-macro (cons-stream first rest) 23 | ; `(cons ,first (delay ,rest))) 24 | 25 | (define (cdr-stream stream) 26 | (force (cdr stream))) 27 | -------------------------------------------------------------------------------- /cs61a/lab10/editor/file_manager.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | 4 | def get_scm_files(): 5 | files = filter(lambda x: x.lower().endswith(".scm"), os.listdir(os.curdir)) 6 | return sorted(files) 7 | 8 | 9 | def save(code, filename): 10 | with open(filename, "w+") as file: 11 | file.truncate(0) 12 | file.seek(0) 13 | file.write("\n".join(code)) 14 | file.flush() 15 | 16 | 17 | def read_file(filename): 18 | with open(filename, "r") as file: 19 | return "".join([x for x in file]) 20 | 21 | 22 | def new_file(filename): 23 | if filename + ".scm" in get_scm_files(): 24 | return False 25 | open(filename + ".scm", "w") 26 | return True 27 | -------------------------------------------------------------------------------- /cs61a/lab10/editor/libraries/__pycache__/mistune.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/libraries/__pycache__/mistune.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/editor/log_utils.py: -------------------------------------------------------------------------------- 1 | counter = 0 2 | 3 | 4 | def get_id(): 5 | global counter 6 | counter += 1 7 | return str(counter) 8 | -------------------------------------------------------------------------------- /cs61a/lab10/editor/persistence.py: -------------------------------------------------------------------------------- 1 | import json 2 | import os 3 | from pathlib import Path 4 | 5 | home = str(Path.home()) 6 | config_path = home + "/.scheme_editor" 7 | 8 | 9 | def save_config(key, content): 10 | os.makedirs(config_path, exist_ok=True) 11 | with open(config_path + "/" + key + ".config", "w+") as f: 12 | f.write(json.dumps(content)) 13 | 14 | 15 | def load_config(key): 16 | with open(config_path + "/" + key + ".config", "r") as f: 17 | return json.loads(f.read()) 18 | -------------------------------------------------------------------------------- /cs61a/lab10/editor/static/ace/src-min-noconflict/ext-error_marker.js: -------------------------------------------------------------------------------- 1 | ; 2 | (function() { 3 | ace.require(["ace/ext/error_marker"], function(m) { 4 | if (typeof module == "object" && typeof exports == "object" && module) { 5 | module.exports = m; 6 | } 7 | }); 8 | })(); 9 | -------------------------------------------------------------------------------- /cs61a/lab10/editor/static/ace/src-min-noconflict/mode-plain_text.js: -------------------------------------------------------------------------------- 1 | ace.define("ace/mode/plain_text",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules","ace/mode/behaviour"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./text_highlight_rules").TextHighlightRules,o=e("./behaviour").Behaviour,u=function(){this.HighlightRules=s,this.$behaviour=new o};r.inherits(u,i),function(){this.type="text",this.getNextLineIndent=function(e,t,n){return""},this.$id="ace/mode/plain_text"}.call(u.prototype),t.Mode=u}); 2 | (function() { 3 | ace.require(["ace/mode/plain_text"], function(m) { 4 | if (typeof module == "object" && typeof exports == "object" && module) { 5 | module.exports = m; 6 | } 7 | }); 8 | })(); 9 | -------------------------------------------------------------------------------- /cs61a/lab10/editor/static/ace/src-min-noconflict/mode-text.js: -------------------------------------------------------------------------------- 1 | ; 2 | (function() { 3 | ace.require(["ace/mode/text"], function(m) { 4 | if (typeof module == "object" && typeof exports == "object" && module) { 5 | module.exports = m; 6 | } 7 | }); 8 | })(); 9 | -------------------------------------------------------------------------------- /cs61a/lab10/editor/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/editor/static/favicon.ico -------------------------------------------------------------------------------- /cs61a/lab10/editor/static/scripts/keyboard_shortcuts.js: -------------------------------------------------------------------------------- 1 | export {init}; 2 | 3 | 4 | function init() { 5 | // no-op 6 | } -------------------------------------------------------------------------------- /cs61a/lab10/editor/static/scripts/main.js: -------------------------------------------------------------------------------- 1 | import * as navigation from "./navigation"; 2 | import * as layout from "./layout"; 3 | import * as file_opening from "./file_opening"; 4 | import * as settings from "./settings"; 5 | import * as documentation from "./documentation"; 6 | import * as keyboard_shortcuts from "./keyboard_shortcuts"; 7 | import {loadState} from "./state_handler"; 8 | import {end_slow, request_update} from "./event_handler"; 9 | 10 | $(window).on("load", async function () { 11 | await loadState(); 12 | 13 | navigation.init_events(); 14 | layout.init(); 15 | file_opening.init(); 16 | settings.init(); 17 | documentation.init(); 18 | keyboard_shortcuts.init(); 19 | 20 | $(document).ajaxError(() => { 21 | end_slow(); 22 | $("#disconnectedModal").modal("show"); 23 | }); 24 | 25 | request_update(); 26 | }); -------------------------------------------------------------------------------- /cs61a/lab10/editor/static/scripts/measure.js: -------------------------------------------------------------------------------- 1 | export { charHeight, charWidth }; 2 | 3 | function getDims(parentElement) { 4 | parentElement = parentElement || document.body; 5 | let div = document.createElement('div'); 6 | $(div).css("position", "absolute"); 7 | $(div).css("white-space", "pre-line"); 8 | $(div).css("font-family", "Monaco, monospace"); 9 | $(div).css("font-size", "14px"); 10 | 11 | div.innerHTML = "x".repeat(999) + "x\n".repeat(1000); 12 | parentElement.appendChild(div); 13 | let w = div.offsetWidth / 1000; 14 | let h = div.offsetHeight / 1001; 15 | parentElement.removeChild(div); 16 | return [w, h]; 17 | } 18 | 19 | let charHeight = getDims()[1]; 20 | let charWidth = getDims()[0]; -------------------------------------------------------------------------------- /cs61a/lab10/editor/static/scripts/turtle_graphics_worker.js: -------------------------------------------------------------------------------- 1 | export {draw}; 2 | 3 | function draw(svg, rawSVG, data) { 4 | $(rawSVG).css("background-color", data["bgColor"]); 5 | for (let move of data["path"]) { 6 | svg.path(move["seq"]) 7 | .fill(move["fill"]) 8 | .stroke({color: move["stroke"], width: 1, linecap: 'round', linejoin: 'round'}); 9 | } 10 | 11 | if (data["showTurtle"]) { 12 | svg.polygon('0,0 -10,5 -10,-5') 13 | .dx(data["turtleX"]).dy(data["turtleY"]) 14 | .rotate(data["turtleRot"], data["turtleX"], data["turtleY"]); 15 | } 16 | } -------------------------------------------------------------------------------- /cs61a/lab10/lab10.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 10", 3 | "endpoint": "cal/cs61a/sp19/lab10", 4 | "src": [ 5 | "expr.py", 6 | "repl.py", 7 | "lab10.scm" 8 | ], 9 | "tests": { 10 | "expr.py:Name.eval": "doctest", 11 | "expr.py:CallExpr.eval": "doctest", 12 | "expr.py:LambdaFunction.apply": "doctest", 13 | "tests/prologue_expr.py": "ok_test", 14 | "tests/prologue_reader.py": "ok_test", 15 | "tests/repeatedly-cube.py": "ok_test" 16 | }, 17 | "default_tests": [ 18 | "repeatedly-cube", 19 | "Name.eval", 20 | "CallExpr.eval" 21 | ], 22 | "protocols": [ 23 | "restore", 24 | "file_contents", 25 | "analytics", 26 | "unlock", 27 | "grading", 28 | "backup" 29 | ] 30 | } -------------------------------------------------------------------------------- /cs61a/lab10/lab10.scm: -------------------------------------------------------------------------------- 1 | ;; Scheme ;; 2 | 3 | (define (repeatedly-cube n x) 4 | (if (zero? n) 5 | x 6 | (let 7 | (_________________________) 8 | (* y y y)))) -------------------------------------------------------------------------------- /cs61a/lab10/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/ok -------------------------------------------------------------------------------- /cs61a/lab10/scheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/scheme -------------------------------------------------------------------------------- /cs61a/lab10/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab10/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/tests/__pycache__/prologue_expr.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/tests/__pycache__/prologue_expr.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/tests/__pycache__/prologue_reader.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/tests/__pycache__/prologue_reader.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/tests/__pycache__/repeatedly-cube.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab10/tests/__pycache__/repeatedly-cube.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab10/tests/repeatedly-cube.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'repeatedly-cube', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (repeatedly-cube 100 1) 10 | 1 11 | scm> (repeatedly-cube 2 2) 12 | 512 13 | scm> (repeatedly-cube 3 2) 14 | 134217728 15 | """, 16 | 'hidden': False, 17 | 'locked': False 18 | } 19 | ], 20 | 'scored': True, 21 | 'setup': r""" 22 | scm> (load 'lab10) 23 | """, 24 | 'teardown': '', 25 | 'type': 'scheme' 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /cs61a/lab10/utils.py: -------------------------------------------------------------------------------- 1 | def comma_separated(xs): 2 | """Convert each value in the sequence xs to a string, and separate them 3 | with commas. 4 | 5 | >>> comma_separated(['spam', 5, False]) 6 | 'spam, 5, False' 7 | >>> comma_separated([5]) 8 | '5' 9 | >>> comma_separated([]) 10 | '' 11 | """ 12 | return ', '.join([str(x) for x in xs]) -------------------------------------------------------------------------------- /cs61a/lab11/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/.ok_history -------------------------------------------------------------------------------- /cs61a/lab11/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab11/__pycache__/lab11.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/__pycache__/lab11.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab11/__pycache__/lab11_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/__pycache__/lab11_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab11/lab11.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 11", 3 | "endpoint": "cal/cs61a/sp18/lab11", 4 | "src": [ 5 | "lab11.py" 6 | ], 7 | "tests": { 8 | "tests/iterators.py": "ok_test", 9 | "tests/generators.py": "ok_test", 10 | "lab11.py": "doctest", 11 | "lab11_extra.py": "doctest" 12 | }, 13 | "default_tests": [ 14 | "iterators", 15 | "generators", 16 | "scale", 17 | "trap" 18 | ], 19 | "protocols": [ 20 | "restore", 21 | "file_contents", 22 | "unlock", 23 | "grading", 24 | "analytics", 25 | "backup" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /cs61a/lab11/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/ok -------------------------------------------------------------------------------- /cs61a/lab11/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab11/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab11/tests/__pycache__/generators.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/tests/__pycache__/generators.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab11/tests/__pycache__/iterators.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab11/tests/__pycache__/iterators.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/.ok_history -------------------------------------------------------------------------------- /cs61a/lab12/.ok_storage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/.ok_storage -------------------------------------------------------------------------------- /cs61a/lab12/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/lab12/lab12.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lab 12", 3 | "endpoint": "cal/cs61a/sp18/lab12", 4 | "src": [ 5 | "lab12.sql", 6 | "lab12_extra.sql" 7 | ], 8 | "tests": { 9 | "tests/obedience.py": "ok_test", 10 | "tests/smallest-int.py": "ok_test", 11 | "tests/matchmaker.py": "ok_test", 12 | "tests/greatstudents.py": "ok_test", 13 | "tests/sevens.py": "ok_test", 14 | "tests/lets-count.py": "ok_test", 15 | "tests/smallest-int-count.py": "ok_test" 16 | }, 17 | "default_tests": [ 18 | "obedience", 19 | "smallest-int", 20 | "matchmaker" 21 | ], 22 | "protocols": [ 23 | "restore", 24 | "file_contents", 25 | "unlock", 26 | "grading", 27 | "analytics", 28 | "backup" 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /cs61a/lab12/lab12.sql: -------------------------------------------------------------------------------- 1 | .read fa17data.sql 2 | .read sp18data.sql 3 | 4 | -- Q2 5 | CREATE TABLE obedience AS 6 | select seven, denero from students; 7 | 8 | -- Q3 9 | CREATE TABLE smallest_int AS 10 | select time, smallest from students 11 | where smallest > 15 12 | order by smallest 13 | limit 20; 14 | 15 | 16 | -- Q4 17 | CREATE TABLE matchmaker AS 18 | select a.pet, a.song, a.color as color1, b.color as color2 19 | from students as a, students as b 20 | where a.pet = b.pet and a.song = b.song and a.time < b.time; 21 | -------------------------------------------------------------------------------- /cs61a/lab12/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/ok -------------------------------------------------------------------------------- /cs61a/lab12/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/greatstudents.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/greatstudents.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/greatstudents.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/greatstudents.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/lets-count.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/lets-count.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/lets-count.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/lets-count.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/matchmaker.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/matchmaker.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/matchmaker.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/matchmaker.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/obedience.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/obedience.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/obedience.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/obedience.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/sevens.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/sevens.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/sevens.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/sevens.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/smallest-int-count.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/smallest-int-count.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/smallest-int-count.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/smallest-int-count.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/smallest-int.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/smallest-int.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/__pycache__/smallest-int.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab12/tests/__pycache__/smallest-int.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab12/tests/greatstudents.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'greatstudents', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | sqlite> SELECT * FROM greatstudents; 10 | 2/29|blue|dragon|69|12 11 | 12/25|blue|dog|17|7 12 | 12/25|blue|dog|17|15 13 | 1/1|green|dog|3|7 14 | 1/1|blue|dog|11|60 15 | 4/20|white|sloth|11|69 16 | 1/1|black|dog|1|1 17 | 12/25|blue|tiger|17|21 18 | """, 19 | 'hidden': False, 20 | 'locked': False 21 | } 22 | ], 23 | 'ordered': False, 24 | 'scored': True, 25 | 'setup': r""" 26 | sqlite> .read lab12_extra.sql 27 | """, 28 | 'teardown': '', 29 | 'type': 'sqlite' 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /cs61a/lab12/tests/obedience.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'obedience', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | sqlite> SELECT * FROM obedience LIMIT 10; 10 | 7|Image 1 11 | 7|Image 5 12 | the number 7 below.|Image 1 13 | 7|Image 2 14 | 7|Image 2 15 | the number 7 below.|Image 1 16 | the number 7 below.|Image 5 17 | 7|Image 1 18 | You're not the boss of me!|Image 4 19 | 7|Image 4 20 | """, 21 | 'hidden': False, 22 | 'locked': False 23 | } 24 | ], 25 | 'ordered': False, 26 | 'scored': True, 27 | 'setup': r""" 28 | sqlite> .read lab12.sql 29 | """, 30 | 'teardown': '', 31 | 'type': 'sqlite' 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /cs61a/lab12/tests/sevens.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'sevens', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | sqlite> SELECT * FROM sevens; 10 | 7 11 | 7 12 | 7 13 | You're not the boss of me! 14 | 7 15 | seven 16 | the number 7 below. 17 | You're not the boss of me! 18 | 7 19 | 7 20 | 7 21 | 7 22 | """, 23 | 'hidden': False, 24 | 'locked': False 25 | } 26 | ], 27 | 'ordered': False, 28 | 'scored': True, 29 | 'setup': r""" 30 | sqlite> .read lab12_extra.sql 31 | """, 32 | 'teardown': '', 33 | 'type': 'sqlite' 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /cs61a/lab13/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/.ok_history -------------------------------------------------------------------------------- /cs61a/lab13/.ok_storage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/.ok_storage -------------------------------------------------------------------------------- /cs61a/lab13/__pycache__/lab13.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/__pycache__/lab13.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab13/__pycache__/lab13.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/__pycache__/lab13.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab13/__pycache__/lab13_extra.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/__pycache__/lab13_extra.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/lab13/__pycache__/lab13_extra.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/__pycache__/lab13_extra.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab13/lab13.scm: -------------------------------------------------------------------------------- 1 | ; Q1 2 | (define (compose-all funcs) 3 | (define (dfs funcs x) 4 | (if (null? funcs) x 5 | (dfs (cdr funcs) ((car funcs) x)) 6 | ) 7 | ) 8 | (lambda (x) 9 | (dfs funcs x) 10 | ) 11 | ) 12 | 13 | ; Q2 14 | (define (tail-replicate x n) 15 | (define (dfs x n ret) 16 | (if (= n 0) ret 17 | (dfs x (- n 1) (cons x ret)) 18 | ) 19 | ) 20 | (dfs x n nil) 21 | ) -------------------------------------------------------------------------------- /cs61a/lab13/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/ok -------------------------------------------------------------------------------- /cs61a/lab13/scheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/scheme -------------------------------------------------------------------------------- /cs61a/lab13/tests/__pycache__/compose-all.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/tests/__pycache__/compose-all.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab13/tests/__pycache__/deep-map.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/tests/__pycache__/deep-map.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab13/tests/__pycache__/insert.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/tests/__pycache__/insert.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab13/tests/__pycache__/rle.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/tests/__pycache__/rle.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab13/tests/__pycache__/tail-replicate.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/tests/__pycache__/tail-replicate.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab13/tests/__pycache__/tally.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/lab13/tests/__pycache__/tally.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/lab13/tests/deep-map.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'deep-map', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (define (double x) (* 2 x)) 10 | double 11 | scm> (deep-map double '(1 2 3 4)) 12 | (2 4 6 8) 13 | scm> (deep-map double '(2 (3 4))) 14 | (4 (6 8)) 15 | scm> (deep-map double '(1 2 3 (4) 5)) 16 | (2 4 6 (8) 10) 17 | """, 18 | 'hidden': False, 19 | 'locked': False 20 | } 21 | ], 22 | 'scored': True, 23 | 'setup': r""" 24 | scm> (load 'lab13_extra) 25 | """, 26 | 'teardown': '', 27 | 'type': 'scheme' 28 | } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /cs61a/lab13/tests/rle.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'rle', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (rle '()) 10 | () 11 | scm> (stream-to-list (rle (list-to-stream '(1 2 3)))) 12 | ((1 1) (2 1) (3 1)) 13 | scm> (stream-to-list (rle (list-to-stream '(1 1 2 2 3 3)))) 14 | ((1 2) (2 2) (3 2)) 15 | scm> (define s (rle (list-to-stream '(1 1 1 1 1 6 6 6 6 2 5 5 5)))) 16 | s 17 | scm> (stream-to-list s) 18 | ((1 5) (6 4) (2 1) (5 3)) 19 | """, 20 | 'hidden': False, 21 | 'locked': False 22 | } 23 | ], 24 | 'scored': True, 25 | 'setup': r""" 26 | scm> (load 'lab13_extra) 27 | """, 28 | 'teardown': '', 29 | 'type': 'scheme' 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /cs61a/lab13/tests/tail-replicate.py: -------------------------------------------------------------------------------- 1 | test = { 2 | 'name': 'tail replicate', 3 | 'points': 1, 4 | 'suites': [ 5 | { 6 | 'cases': [ 7 | { 8 | 'code': r""" 9 | scm> (tail-replicate 3 10) 10 | (3 3 3 3 3 3 3 3 3 3) 11 | scm> (tail-replicate 5 0) 12 | () 13 | scm> (tail-replicate 5 1) 14 | (5) 15 | scm> (tail-replicate 100 5) 16 | (100 100 100 100 100) 17 | scm> (define a (tail-replicate 10 500)) ; Test for tail recursion 18 | a 19 | """, 20 | 'hidden': False, 21 | 'locked': False 22 | } 23 | ], 24 | 'scored': True, 25 | 'setup': r""" 26 | scm> (load 'lab13) 27 | """, 28 | 'teardown': '', 29 | 'type': 'scheme' 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /cs61a/maps/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/.DS_Store -------------------------------------------------------------------------------- /cs61a/maps/__pycache__/abstractions.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/__pycache__/abstractions.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/maps/__pycache__/abstractions.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/__pycache__/abstractions.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/maps/__pycache__/ucb.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/__pycache__/ucb.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/maps/__pycache__/ucb.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/__pycache__/ucb.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/maps/__pycache__/utils.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/__pycache__/utils.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/maps/__pycache__/utils.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/__pycache__/utils.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/maps/assets/least_squares.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/assets/least_squares.gif -------------------------------------------------------------------------------- /cs61a/maps/data/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/data/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/maps/data/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/data/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/maps/data/__pycache__/jsonl.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/data/__pycache__/jsonl.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/maps/data/__pycache__/jsonl.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/data/__pycache__/jsonl.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/maps/data/jsonl.py: -------------------------------------------------------------------------------- 1 | """A wrapper around Python's json module to parse newline-delimited json. 2 | 3 | >>> all_reviews = load(open('reviews.json')) 4 | >>> dump(all_reviews, open('reviews_copy.json', 'w')) 5 | >>> all_reviews == load(open('reviews_copy.json')) 6 | True 7 | """ 8 | 9 | from json import loads, dumps 10 | 11 | def load(fp, **kw): 12 | return [loads(obj, **kw) for obj in fp] 13 | 14 | def dump(objs, fp, **kw): 15 | for obj in objs: 16 | fp.write(dumps(obj, **kw)) 17 | fp.write('\n') 18 | -------------------------------------------------------------------------------- /cs61a/maps/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/ok -------------------------------------------------------------------------------- /cs61a/maps/proj02.ok: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Project 2: Yelp Maps", 3 | "endpoint": "cal/cs61a/sp18/proj02", 4 | "src": [ 5 | "utils.py", 6 | "abstractions.py", 7 | "recommend.py" 8 | ], 9 | "tests": { 10 | "tests/00.py": "ok_test", 11 | "tests/01.py": "ok_test", 12 | "tests/02.py": "ok_test", 13 | "tests/03.py": "ok_test", 14 | "tests/04.py": "ok_test", 15 | "tests/05.py": "ok_test", 16 | "tests/06.py": "ok_test", 17 | "tests/07.py": "ok_test", 18 | "tests/08.py": "ok_test", 19 | "tests/09.py": "ok_test", 20 | "tests/10.py": "ok_test" 21 | }, 22 | "protocols": [ 23 | "restore", 24 | "file_contents", 25 | "unlock", 26 | "grading", 27 | "analytics", 28 | "collaborate", 29 | "backup" 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /cs61a/maps/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/maps/users/one_cluster.dat: -------------------------------------------------------------------------------- 1 | make_user( 2 | 'Juan Cluster', # name 3 | [ # reviews 4 | # Southside restaurants 5 | make_review('Cafe 3', 2.0), 6 | make_review('Pancho\'s', 3.0), 7 | make_review('Peking Express', 3.5), 8 | make_review('Sun Hong Kong Restaurant', 3.5), 9 | make_review('Henry\'s', 3.0), 10 | make_review('Durant Square - Asian Ghetto', 4.0), 11 | make_review('Cheese \'N\' Stuff', 4.0), 12 | make_review('Babette', 4.0), 13 | make_review('Bear\'s Ramen House', 3.5), 14 | make_review('Planet Kebob & Cafe', 4.5), 15 | make_review('Satay House', 4.5), 16 | make_review('KoKo Express', 2.5), 17 | make_review('Sushi House', 2.5), 18 | make_review('Quickly', 2.5), 19 | make_review('Kimchi Garden', 2.5), 20 | ] 21 | ) 22 | -------------------------------------------------------------------------------- /cs61a/maps/visualize/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/visualize/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/maps/visualize/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/visualize/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/maps/visualize/voronoi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/maps/visualize/voronoi.png -------------------------------------------------------------------------------- /cs61a/scheme/.ok_history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/.ok_history -------------------------------------------------------------------------------- /cs61a/scheme/.ok_storage.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/.ok_storage.db -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/buffer.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/buffer.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/buffer.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/buffer.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/scheme.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/scheme.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/scheme.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/scheme.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/scheme_primitives.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/scheme_primitives.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/scheme_primitives.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/scheme_primitives.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/scheme_reader.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/scheme_reader.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/scheme_reader.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/scheme_reader.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/scheme_tokens.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/scheme_tokens.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/scheme_tokens.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/scheme_tokens.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/ucb.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/ucb.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/__pycache__/ucb.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/__pycache__/ucb.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/images/custom_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/images/custom_test.png -------------------------------------------------------------------------------- /cs61a/scheme/images/h1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/images/h1.png -------------------------------------------------------------------------------- /cs61a/scheme/images/hax.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/images/hax.png -------------------------------------------------------------------------------- /cs61a/scheme/images/lambda.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/images/lambda.png -------------------------------------------------------------------------------- /cs61a/scheme/images/let.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/images/let.png -------------------------------------------------------------------------------- /cs61a/scheme/images/money_tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/images/money_tree.png -------------------------------------------------------------------------------- /cs61a/scheme/images/tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/images/tree.png -------------------------------------------------------------------------------- /cs61a/scheme/mytests.rst: -------------------------------------------------------------------------------- 1 | This file holds the tests that you create. Remember to import the python file(s) 2 | you wish to test, along with any other modules you may need. 3 | Run your tests with "python3 ok -t --suite SUITE_NAME --case CASE_NAME -v" 4 | -------------------------------------------------------------------------------- 5 | 6 | Suite 1 7 | 8 | >>> from scheme_reader import * 9 | 10 | Case Example 11 | >>> scheme_read(Buffer(tokenize_lines(['nil']))) 12 | nil 13 | 14 | -------------------------------------------------------------------------------- /cs61a/scheme/ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/ok -------------------------------------------------------------------------------- /cs61a/scheme/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__init__.py -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/01.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/01.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/01.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/01.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/02.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/02.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/02.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/02.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/03.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/03.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/03.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/03.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/04.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/04.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/04.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/04.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/05.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/05.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/05.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/05.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/06.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/06.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/06.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/06.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/07.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/07.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/07.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/07.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/08.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/08.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/08.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/08.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/09.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/09.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/09.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/09.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/10.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/10.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/10.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/10.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/11.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/11.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/11.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/11.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/12.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/12.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/12.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/12.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/13.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/13.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/13.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/13.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/14.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/14.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/14.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/14.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/15.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/15.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/15.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/15.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/16.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/16.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/16.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/16.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/17.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/17.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/17.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/17.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/18.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/18.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/18.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/18.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/19.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/19.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/19.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/19.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/20.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/20.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/20.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/20.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/21.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/21.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/21.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/21.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/eval_apply.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/eval_apply.cpython-36.pyc -------------------------------------------------------------------------------- /cs61a/scheme/tests/__pycache__/eval_apply.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moutsea/cs_tutorial/eb96cce749d0f02ba9f6cb9455f2a2d78969cc2e/cs61a/scheme/tests/__pycache__/eval_apply.cpython-39.pyc -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ## 项目说明 2 | 3 | CS专业经典公开课作业和project合集,由个人维护,不定时更新
4 | 文章首发于公众号:`Coder梁` 5 | 6 | ## 课程列表 7 | 8 | - cs61a 9 | - SICP的入门理论课,非常扎实。包含Python基础语法、Python interpreter层的简单原理、函数式编程入门、面向对象入门、数据结构入门、并发编程入门等 10 | - [bilibili](https://www.bilibili.com/video/BV16W411W76H?p=22&spm_id_from=pageDriver) 11 | - [课程资料](https://inst.eecs.berkeley.edu//~cs61a/sp18/) 12 | 13 | ## 公众号 14 | ![](https://tva1.sinaimg.cn/large/e6c9d24egy1h1jptn0w47j2076076weq.jpg) --------------------------------------------------------------------------------