Skip to content

Commit

Permalink
Add href
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehul-Gandhi committed Nov 15, 2023
1 parent f8b2bd4 commit 82016af
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cur/programming/libraries/Lab18-Intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ <h3>
</li>
</ul>
<p>
If you are interested in Pygame, you are welcome to check out the <a href="https://www.pygame.org/docs/">documentation </a>
or this resource that was made in 2021 by the old CS10 staff: <a href="https://cs10.org/bjc-r/cur/programming/python/pygame_intro.html?topic=berkeley_bjc%2Fpython%2Fpygame.topic">Resource</a>.
If you are interested in Pygame, you are welcome to check out the <a href="https://www.pygame.org/docs/" target="_blank">documentation </a>
or this resource that was made in 2021 by the old CS10 staff: <a href="https://cs10.org/bjc-r/cur/programming/python/pygame_intro.html?topic=berkeley_bjc%2Fpython%2Fpygame.topic" target="_blank">Resource</a>.

Pygame allows for the development of games that include graphics,
sound, and music by providing a framework for rendering graphics, handling sounds,
Expand Down
4 changes: 2 additions & 2 deletions cur/programming/libraries/facedetector/facedetector.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ <h2>Requirements</h2>
</ul>
<p>These can be installed using pip:</p>
<pre><code>pip install PySimpleGUI opencv-python</code></pre>

<p>
To learn more about OpenCV, feel free to look at the documentation <a href="https://docs.opencv.org/4.x/d6/d00/tutorial_py_root.html">here</a>.
To learn more about OpenCV, feel free to look at the documentation <a href="https://docs.opencv.org/4.x/d6/d00/tutorial_py_root.html" target="_blank">here</a>.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion cur/programming/libraries/random/pysimplegui-intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h3>Installing PySimpleGUI</h3>
The possibilites of what can be done with PySimpleGUI are endless! In the next page, we will explore an implementation of WordMatch that uses PySimpleGUI and the random library.
<h3>Documentation and Resources</h3>
<p>
For more information about PySimpleGUI and its features, visit the <a href="https://pysimplegui.readthedocs.io/">official PySimpleGUI documentation</a>. It offers a comprehensive guide and examples to help you build GUIs with Python easily.
For more information about PySimpleGUI and its features, visit the <a href="https://pysimplegui.readthedocs.io/" target="_blank">official PySimpleGUI documentation</a>. It offers a comprehensive guide and examples to help you build GUIs with Python easily.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion cur/programming/libraries/random/random-intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h3>Using the Random Library</h3>
<li>Creating deterministic passwords</li>
</p>
To learn more about what the `random` library can do, check out the
<a href="https://docs.python.org/3/library/random.html">official Python documentation</a>.
<a href="https://docs.python.org/3/library/random.html" target="_blank">official Python documentation</a>.
</p>
</body>
</html>
6 changes: 3 additions & 3 deletions cur/programming/libraries/random/random-seed.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ <h3>Using random.seed</h3>
</code></pre></p>
<iframe width="800" height="500"
frameborder="0"
src="https://pythontutor.com/iframe-embed.html#code=%23%20Import%20the%20random%20library%0Aimport%20random%0A%0A%23%20Initialize%20the%20random%20number%20generator%20with%20a%20seed%0Arandom.seed%2842%29%0A%0A%23%20Generate%20three%20random%20numbers%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0A%0A%23%20Re-seed%20the%20generator%0Arandom.seed%2842%29%0A%0A%23%20Generate%20three%20random%20numbers%20again%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29&codeDivHeight=400&codeDivWidth=350&cumulative=false&curInstr=0&heapPrimitives=nevernest&origin=opt-frontend.js&py=3&rawInputLstJSON=%5B%5D&textReferences=false"> </iframe>
src="https://pythontutor.com/iframe-embed.html#code=%23%20Import%20the%20random%20library%0Aimport%20random%0A%0A%23%20Initialize%20the%20random%20number%20generator%20with%20a%20seed%0Arandom.seed%2842%29%0A%0A%23%20Generate%20three%20random%20numbers%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0A%0A%23%20Re-seed%20the%20generator%0Arandom.seed%2842%29%0A%0A%23%20Generate%20three%20random%20numbers%20again%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29&codeDivHeight=400&codeDivWidth=350&cumulative=false&curInstr=0&heapPrimitives=nevernest&origin=opt-frontend.js&py=3&rawInputLstJSON=%5B%5D&textReferences=false" > </iframe>
<p>
In this
<a href="https://pythontutor.com/render.html#code=%23%20Import%20the%20random%20library%0Aimport%20random%0A%0A%23%20Initialize%20the%20random%20number%20generator%20with%20a%20seed%0Arandom.seed%2842%29%0A%0A%23%20Generate%20three%20random%20numbers%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0A%0A%23%20Re-seed%20the%20generator%0Arandom.seed%2842%29%0A%0A%23%20Generate%20three%20random%20numbers%20again%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29&cumulative=false&curInstr=0&heapPrimitives=nevernest&mode=display&origin=opt-frontend.js&py=3&rawInputLstJSON=%5B%5D&textReferences=false">
<a href="https://pythontutor.com/render.html#code=%23%20Import%20the%20random%20library%0Aimport%20random%0A%0A%23%20Initialize%20the%20random%20number%20generator%20with%20a%20seed%0Arandom.seed%2842%29%0A%0A%23%20Generate%20three%20random%20numbers%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0A%0A%23%20Re-seed%20the%20generator%0Arandom.seed%2842%29%0A%0A%23%20Generate%20three%20random%20numbers%20again%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29%0Aprint%28random.random%28%29%29&cumulative=false&curInstr=0&heapPrimitives=nevernest&mode=display&origin=opt-frontend.js&py=3&rawInputLstJSON=%5B%5D&textReferences=false" >
example</a>,
you will notice that the first set of three random numbers is identical to the second set.
This is because we used the same seed value (`42`) before each set. Without setting the seed, the numbers
Expand All @@ -59,7 +59,7 @@ <h3>Using random.seed</h3>
<p>
Try experimenting with different seed values and functions from the `random` library to see how they work together.
For more information on `random.seed` and other features of the `random` library, visit the
<a href="https://docs.python.org/3/library/random.html">Python documentation</a>.
<a href="https://docs.python.org/3/library/random.html" target="_blank">Python documentation</a>.
</p>
</body>
</html>
6 changes: 3 additions & 3 deletions cur/programming/libraries/wikipedia/wikipedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>Understanding APIs and the Wikipedia API Python Script</h1>

<h2>What is an API?</h2>
<p>
An <a href="https://aws.amazon.com/what-is/api/">API</a>, or Application Programming Interface, is a set of rules and protocols for building and interacting with software applications. APIs enable different software programs to communicate with each other, allowing developers to access functionality provided by other services without needing to understand the underlying code.
An <a href="https://aws.amazon.com/what-is/api/" target="_blank">API</a>, or Application Programming Interface, is a set of rules and protocols for building and interacting with software applications. APIs enable different software programs to communicate with each other, allowing developers to access functionality provided by other services without needing to understand the underlying code.
It's like a menu in a restaurant; the menu provides a list of dishes you can order, along with a description of each dish. When you specify what you would like to eat, the kitchen (system) prepares the meal and serves it. In this analogy, the API is the menu, and the service provided by the kitchen is the underlying code that processes the API calls.
</p>

Expand Down Expand Up @@ -49,7 +49,7 @@ <h2>What is an API?</h2>
</p>
<h2>How the Wikipedia API Works</h2>
<p>
The <a href="https://wikipedia-api.readthedocs.io/en/latest/README.html">Wikipedia API</a> allows developers to access Wikipedia's vast repository of knowledge programmatically. The provided Python script uses the <code>wikipediaapi</code> library to interact with the Wikipedia API, fetching information from Wikipedia articles in a structured format.
The <a href="https://wikipedia-api.readthedocs.io/en/latest/README.html" target="_blank">Wikipedia API</a> allows developers to access Wikipedia's vast repository of knowledge programmatically. The provided Python script uses the <code>wikipediaapi</code> library to interact with the Wikipedia API, fetching information from Wikipedia articles in a structured format.
</p>

<h3>Functionality of <code>wiki_wiki.page</code></h3>
Expand Down Expand Up @@ -114,7 +114,7 @@ <h2>Putting It All Together</h2>
<img src="../../../../img/libraries/wikipedia.png" alt="WordMatch" width="500" height="500" style="display: block; margin: 0 auto;"/>
<p>
This combination of a simple-to-use GUI and the powerful Wikipedia API provides a user-friendly way to quickly access information from one of the world's largest knowledge databases.
For more information about the Wikipedia API, feel free to read the documentation <a href="https://wikipedia-api.readthedocs.io/en/latest/README.html">here</a>.
For more information about the Wikipedia API, feel free to read the documentation <a href="https://wikipedia-api.readthedocs.io/en/latest/README.html" target="_blank">here</a>.
</p>
</body>
</html>
2 changes: 1 addition & 1 deletion cur/programming/libraries/wordmatch/wordmatch-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ <h2>Differences</h2>
</table>

<p>
Read more about PySimpleGUI keys <a href="https://www.pysimplegui.org/en/latest/#keys">here</a>
Read more about PySimpleGUI keys <a href="https://www.pysimplegui.org/en/latest/#keys" target="_blank">here</a>
</p>

<h2>Explaining the GUI Text Element</h2>
Expand Down

0 comments on commit 82016af

Please sign in to comment.