Skip to content

Commit

Permalink
updating HW_01
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperrc committed Jan 19, 2024
1 parent 79cac4e commit be03079
Show file tree
Hide file tree
Showing 76 changed files with 18,022 additions and 15,989 deletions.
Binary file modified _build/.doctrees/assignments.doctree
Binary file not shown.
Binary file modified _build/.doctrees/content.doctree
Binary file not shown.
Binary file modified _build/.doctrees/environment.pickle
Binary file not shown.
Binary file modified _build/.doctrees/getting-started/01_interactions.doctree
Binary file not shown.
Binary file modified _build/.doctrees/getting-started/02_Working_with_Python.doctree
Binary file not shown.
Binary file modified _build/.doctrees/getting-started/03_Numerical_error.doctree
Binary file not shown.
Binary file modified _build/.doctrees/getting-started/README.doctree
Binary file not shown.
Binary file modified _build/.doctrees/homeworks/HW_01.doctree
Binary file not shown.
Binary file modified _build/.doctrees/homeworks/HW_02.doctree
Binary file not shown.
Binary file modified _build/.doctrees/homeworks/HW_03.doctree
Binary file not shown.
Binary file modified _build/.doctrees/homeworks/HW_04.doctree
Binary file not shown.
Binary file modified _build/.doctrees/homeworks/HW_05.doctree
Binary file not shown.
Binary file modified _build/.doctrees/homeworks/HW_06.doctree
Binary file not shown.
Binary file modified _build/.doctrees/homeworks/HW_07.doctree
Binary file not shown.
Binary file modified _build/.doctrees/homeworks/HW_08.doctree
Binary file not shown.
Binary file modified _build/.doctrees/intro.doctree
Binary file not shown.
Binary file modified _build/.doctrees/module_00/introduction.doctree
Binary file not shown.
Binary file modified _build/.doctrees/module_00/meet_cooper.doctree
Binary file not shown.
Binary file modified _build/.doctrees/module_00/overview.doctree
Binary file not shown.
Binary file modified _build/.doctrees/module_00/participation.doctree
Binary file not shown.
Binary file modified _build/.doctrees/quiz_work/quizzes.doctree
Binary file not shown.
Binary file modified _build/.doctrees/syllabus.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion _build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 7c99bf8e541b64b08a91246a57644444
config: 330e10847ef28972177dda5e8ada9665
tags: 645f666f9bcd5a90fca523b33c5a78b7
32 changes: 16 additions & 16 deletions _build/html/_sources/syllabus.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@

**Office Hours/Availability:** by appointment
[Calendly](https://calendly.com/ryan-c-cooper/30min) *post questions on
Campuswire (the preferred contact)* I will respond to questions within
GitHub Discussions (the preferred contact)* I will respond to questions within
one business day (Mon-Fri 9am-5pm)

**Preferred Contact:** Post course-related questions and comments
Campuswire
> Personal questions should be communicated privately via Campuswire DM
> or email
GitHub Discussions
> Personal questions should be communicated privately via email
## Course Assignments and Discussions

Expand Down Expand Up @@ -80,7 +79,7 @@ Students will
- ...

**Lectures**: Videos posted on the course website - watch the lecture
and ask/answer questions in Campuswire
and ask/answer questions in GitHub Discussions

**Instructor**: Prof. Ryan C. Cooper (ryan.c.cooper@uconn.edu)

Expand Down Expand Up @@ -121,7 +120,7 @@ Engineering Dynamics, Jeremy Kasdin and Derek Paley, Princeton University Press.

### Course Discussion

**Campuswire:** This session we will be using GitHub Discussions. The
**GitHub Discussions:** This session we will be using GitHub Discussions. The
system is catered to getting you help fast and efficiently from
classmates and myself. Rather than emailing questions, I prefer you to
post your questions on GitHub. This way everyone benefits from
Expand All @@ -131,11 +130,6 @@ clarifying course content, logistics, and our process.

The course schedule is maintained on HuskyCT

<iframe
src="https://calendar.google.com/calendar/embed?height=400&wkst=1&bgcolor=%23ffffff&ctz=America%2FNew_York&mode=AGENDA&title=ME5180%20%2F3295%20calendar&src=c2NrcGI2YnI0YnFrcTBwMTJqbzg1YmxramhwaG9uZTFAaW1wb3J0LmNhbGVuZGFyLmdvb2dsZS5jb20&color=%23C0CA33"
style="border:solid 1px #777" width="500" height="400" frameborder="0"
scrolling="no"></iframe>

Assignments are due by 11:59pm on the specified due dates.


Expand All @@ -158,7 +152,8 @@ You can participate in a variety of ways e.g.

1. The videos are recorded lectures and tutorials. For each video, try
to answer the discussion questions, or come up with your own. I
encourage you to share your thoughts and questions on Campuswire
encourage you to share your thoughts and questions on GitHub
Discussions
2. You can connect with other students and discuss the Homework and
readings. You should dedicate at least 1 hour per week to reviewing
content, so it helps to have others to talk through concepts
Expand Down Expand Up @@ -192,10 +187,15 @@ progresses. *All changes will be communicated via the calendar or
another appropriate notification.*

**Late Policy:** If you need more time for an assignment or experience
technical difficulties, reach out via Campuswire or email. The
instructor can make accommodations for work, family, and personal
technical difficulties, leave a note in the assignment submission with
two pieces of information:
1. What is your new submission date
2. What help do you need and how and you getting it (discussion post,
colleague, Prof. Cooper, TA, etc.)?

The instructor can make accommodations for work, family, and personal
reasons. *We ask that you be respectful of the instructors' limited time
and resources.*
and resources.*

### Feedback and Grades

Expand Down Expand Up @@ -285,7 +285,7 @@ provides a guide to technical and academic assistance.
To be successful in this course, you will need the following technical
skills:

- Use the Campuswire class discussions
- Use the class discussions
- Create graphics and graphs and include them in Jupyter notebooks
- Work within two or more browser windows simultaneously.
- Open and access PDF files
Expand Down
91 changes: 23 additions & 68 deletions _build/html/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down Expand Up @@ -130,7 +130,7 @@ ul.search li a {
font-weight: bold;
}

ul.search li p.context {
ul.search li div.context {
color: #888;
margin: 2px 0 0 30px;
text-align: left;
Expand Down Expand Up @@ -508,63 +508,6 @@ table.hlist td {
vertical-align: top;
}

/* -- object description styles --------------------------------------------- */

.sig {
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
}

.sig-name, code.descname {
background-color: transparent;
font-weight: bold;
}

.sig-name {
font-size: 1.1em;
}

code.descname {
font-size: 1.2em;
}

.sig-prename, code.descclassname {
background-color: transparent;
}

.optional {
font-size: 1.3em;
}

.sig-paren {
font-size: larger;
}

.sig-param.n {
font-style: italic;
}

/* C++ specific styling */

.sig-inline.c-texpr,
.sig-inline.cpp-texpr {
font-family: unset;
}

.sig.c .k, .sig.c .kt,
.sig.cpp .k, .sig.cpp .kt {
color: #0033B3;
}

.sig.c .m,
.sig.cpp .m {
color: #1750EB;
}

.sig.c .s, .sig.c .sc,
.sig.cpp .s, .sig.cpp .sc {
color: #067D17;
}


/* -- other body styles ----------------------------------------------------- */

Expand Down Expand Up @@ -691,6 +634,14 @@ dl.glossary dt {
font-size: 1.1em;
}

.optional {
font-size: 1.3em;
}

.sig-paren {
font-size: larger;
}

.versionmodified {
font-style: italic;
}
Expand Down Expand Up @@ -731,9 +682,8 @@ dl.glossary dt {

.classifier:before {
font-style: normal;
margin: 0 0.5em;
margin: 0.5em;
content: ":";
display: inline-block;
}

abbr, acronym {
Expand All @@ -757,7 +707,6 @@ span.pre {
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
white-space: nowrap;
}

div[class*="highlight-"] {
Expand Down Expand Up @@ -821,12 +770,8 @@ div.code-block-caption code {

table.highlighttable td.linenos,
span.linenos,
div.highlight span.gp { /* gp: Generic.Prompt */
user-select: none;
-webkit-user-select: text; /* Safari fallback only */
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
user-select: none;
}

div.code-block-caption span.caption-number {
Expand All @@ -841,6 +786,16 @@ div.literal-block-wrapper {
margin: 1em 0;
}

code.descname {
background-color: transparent;
font-weight: bold;
font-size: 1.2em;
}

code.descclassname {
background-color: transparent;
}

code.xref, a code {
background-color: transparent;
font-weight: bold;
Expand Down
3 changes: 1 addition & 2 deletions _build/html/_static/copybutton.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ div.highlight {
position: relative;
}

/* Show the copybutton */
.highlight:hover button.copybtn, button.copybtn.success {
.highlight:hover button.copybtn {
opacity: 1;
}

Expand Down
44 changes: 8 additions & 36 deletions _build/html/_static/copybutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const messages = {
},
'fr' : {
'copy': 'Copier',
'copy_to_clipboard': 'Copier dans le presse-papier',
'copy_to_clipboard': 'Copié dans le presse-papier',
'copy_success': 'Copié !',
'copy_failure': 'Échec de la copie',
},
Expand Down Expand Up @@ -102,25 +102,18 @@ const clearSelection = () => {
}
}

// Changes tooltip text for a moment, then changes it back
// We want the timeout of our `success` class to be a bit shorter than the
// tooltip and icon change, so that we can hide the icon before changing back.
var timeoutIcon = 2000;
var timeoutSuccessClass = 1500;

// Changes tooltip text for two seconds, then changes it back
const temporarilyChangeTooltip = (el, oldText, newText) => {
el.setAttribute('data-tooltip', newText)
el.classList.add('success')
// Remove success a little bit sooner than we change the tooltip
// So that we can use CSS to hide the copybutton first
setTimeout(() => el.classList.remove('success'), timeoutSuccessClass)
setTimeout(() => el.setAttribute('data-tooltip', oldText), timeoutIcon)
setTimeout(() => el.setAttribute('data-tooltip', oldText), 2000)
setTimeout(() => el.classList.remove('success'), 2000)
}

// Changes the copy button icon for two seconds, then changes it back
const temporarilyChangeIcon = (el) => {
el.innerHTML = iconCheck;
setTimeout(() => {el.innerHTML = iconCopy}, timeoutIcon)
setTimeout(() => {el.innerHTML = iconCopy}, 2000)
}

const addCopyButtonToCodeCells = () => {
Expand All @@ -132,8 +125,7 @@ const addCopyButtonToCodeCells = () => {
}

// Add copybuttons to all of our code cells
const COPYBUTTON_SELECTOR = 'div.highlight pre';
const codeCells = document.querySelectorAll(COPYBUTTON_SELECTOR)
const codeCells = document.querySelectorAll('div.highlight pre')
codeCells.forEach((codeCell, index) => {
const id = codeCellId(index)
codeCell.setAttribute('id', id)
Expand All @@ -149,25 +141,10 @@ function escapeRegExp(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
}

/**
* Removes excluded text from a Node.
*
* @param {Node} target Node to filter.
* @param {string} exclude CSS selector of nodes to exclude.
* @returns {DOMString} Text from `target` with text removed.
*/
function filterText(target, exclude) {
const clone = target.cloneNode(true); // clone as to not modify the live DOM
if (exclude) {
// remove excluded nodes
clone.querySelectorAll(exclude).forEach(node => node.remove());
}
return clone.innerText;
}

// Callback when a copy button is clicked. Will be passed the node that was clicked
// should then grab the text and replace pieces of text that shouldn't be used in output
function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onlyCopyPromptLines = true, removePrompts = true, copyEmptyLines = true, lineContinuationChar = "", hereDocDelim = "") {

var regexp;
var match;

Expand Down Expand Up @@ -222,12 +199,7 @@ function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onl

var copyTargetText = (trigger) => {
var target = document.querySelector(trigger.attributes['data-clipboard-target'].value);

// get filtered text
let exclude = '.linenos';

let text = filterText(target, exclude);
return formatCopyText(text, '', false, true, true, true, '', '')
return formatCopyText(target.innerText, '', false, true, true, true, '', '')
}

// Initialize with a callback so we can modify the text before copy
Expand Down
17 changes: 1 addition & 16 deletions _build/html/_static/copybutton_funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,10 @@ function escapeRegExp(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
}

/**
* Removes excluded text from a Node.
*
* @param {Node} target Node to filter.
* @param {string} exclude CSS selector of nodes to exclude.
* @returns {DOMString} Text from `target` with text removed.
*/
export function filterText(target, exclude) {
const clone = target.cloneNode(true); // clone as to not modify the live DOM
if (exclude) {
// remove excluded nodes
clone.querySelectorAll(exclude).forEach(node => node.remove());
}
return clone.innerText;
}

// Callback when a copy button is clicked. Will be passed the node that was clicked
// should then grab the text and replace pieces of text that shouldn't be used in output
export function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onlyCopyPromptLines = true, removePrompts = true, copyEmptyLines = true, lineContinuationChar = "", hereDocDelim = "") {

var regexp;
var match;

Expand Down
Loading

0 comments on commit be03079

Please sign in to comment.