owned this note
owned this note
Published
Linked with GitHub
# STAT1013: Markdown Documentation
## Cheat Sheet
### Heading
# H1: CUHK
## H2: CUHK-STAT
### H3: CUHK-STAT1013
### Bold
**statistics**
### Italic
*machine learning*
### Blockquote
> *"All models are wrong, but some are useful." --- George Box*
### Ordered List
1. Python
2. C/C++
3. R
### Unordered List
- colab
- Jupyter notebook
- Markdown
### Code
We will use `pd.DataFrame` in **STAT1013**.
### Code cell
```python
import numpy as np
import panads as pd
print('hello world!')
```
### Horizontal Rule
---
### Link
[Markdown Guide](https://www.markdownguide.org)
[CUHK-STAT1013](https://www.bendai.org/CUHK-STAT1013/)
### Image
![CUHK-STAT](https://www.sta.cuhk.edu.hk/wp-content/uploads/STAT_SFO_CU_logo_en_chi.png)
### Footnote
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
### Table
| Colleges | Year established [^2] |
| ----------- | ----------- |
| New Asia College | 1941 |
| Chung Chi College | 1951 |
| United College | 1956 |
| Shaw College | 1986 |
| Morningside College | 2006 |
| S.H. Ho College | 2006 |
| CW Chu College | 2007 |
| Lee Woo Sing College | 2007 |
| Wu Yee Sun College | 2007 |
[^2]: Source: [Wiki: Colleges of the Chinese University of Hong Kong](https://en.wikipedia.org/wiki/Colleges_of_the_Chinese_University_of_Hong_Kong)
### Definition List
Mathematics
: Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes.
Computer Science
: Computer science is the study of computation, automation, and information.
Statistics
: Statistics is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data.
### Strikethrough
![MD](https://upload.wikimedia.org/wikipedia/en/thumb/7/74/MD_Anderson_Cancer_Center_logo.svg/1200px-MD_Anderson_Cancer_Center_logo.svg.png)
**MD Anderson ~~Cancer~~ Center**
### Task List
- [x] Make a to-do list
- [x] Youtube
- [x] Twitter
- [x] Facebook
- [x] ...
- [ ] study for tmr's final
### Emoji
:horse: + :checkered_flag: = :horse_racing:
:package: + :microphone: = :boxing_glove:
:keycap_ten: + :sos: = :tennis:
([Emoji Cheat Sheet](https://github.com/ikatyang/emoji-cheat-sheet/blob/master/README.md))
### Highlight
Statistics is the discipline that concerns the ==collection==, ==organization==, ==analysis==, ==interpretation==, and ==presentation== of data.
### Subscript
H~2~O
### Superscript
X^2^
### Math formula
$$
f(x) = ax^2 + bx + c
$$
---
## Technical report
[Monty Hall Problem report](https://hackmd.io/@cTHE1QvtQuKo2qiAA5u0dA/rycz2z4qj)
## CV
[CV template](https://hackmd.io/@cTHE1QvtQuKo2qiAA5u0dA/SyvB3nGcs)
## Structured Documentation
[Duffy and Friends](https://hackmd.io/@cTHE1QvtQuKo2qiAA5u0dA/BkoGQZ73p)
## Platforms use Markdown
- **GitHub**: This platform for hosting code repositories primarily uses Markdown for README files, issues, and pull requests discussions.
- **StackOverflow**: One of the leading platforms for developers, it uses Markdown to format questions and answers.
- **Reddit**: Users can use Markdown to format their posts and comments.
- **Notion**: A note-taking and organization tool also supports Markdown.
- **VS Code and Atom**: These code editors support Markdown as a language and have a preview feature.
- **Discord**: A popular chat platform, especially for gamers, where users can utilize Markdown to format their messages.
## Table of Contents
[ToC]
## Conclusion
Using Markdown has become increasingly popular for various reasons, particularly in the realms of web content, documentation, and collaborative writing. Its simplicity, flexibility, and compatibility make it an essential tool for many writers, developers, and content creators. Below are several reasons why Markdown is widely used and valued:
1. **Ease of Learning and Use**: Markdown's syntax is straightforward, which makes it easy to learn and use, even for those who are new to content creation or programming. This simplicity allows writers to focus more on the content rather than on the formatting.
2. **Plain Text Format**: Markdown is written in plain text, which means it can be edited with any text editor, is highly portable, and ensures longevity. Plain text files are not dependent on specific software, decreasing the chances of file corruption or format incompatibility over time.
3. **Versatility and Compatibility**: Markdown files can be converted into many formats, such as HTML, PDF, and DOCX, making it a versatile choice for various outputs—from web pages to printed documents. This flexibility is particularly useful in workflows that require content to be presented or published across different media.
4. **Enhanced Readability**: Markdown syntax is designed to be as readable as possible, aligning with the natural flow of text. This feature makes it easier for others to understand the structure and intention behind the content, even before it is rendered into its final form.
5. **Widely Supported**: Markdown has been adopted by many platforms, such as GitHub, Reddit, and Stack Overflow, for writing documentation, comments, and posts. Its widespread use ensures that skills in Markdown are broadly applicable and useful across various contexts.
6. **Ideal for Web Content**: Given its simplicity and the ease with which it can be converted into HTML, Markdown is particularly suited for writing web content. This efficiency streamlines the content creation process for websites, blogs, and other online platforms.
7. **Support for Extended Features**: Through various implementations and extensions, Markdown supports additional features not originally included in its specification, such as tables, footnotes, and fenced code blocks. These enhancements allow users to achieve more complex formatting when necessary.
8. **Promotes Concentration on Content**: Because Markdown abstracts away much of the formatting complexity, writers can concentrate more on the content itself rather than on intricate details of presentation. This focus on content can improve writing quality and efficiency.
9. **Facilitates Collaboration**: Markdown's simplicity and text-based nature make it an excellent choice for collaborative writing and version control systems. Changes are easily tracked, and merging contributions from multiple authors is more straightforward than with rich text formats.
In summary, Markdown offers a unique combination of simplicity, flexibility, and compatibility that suits a wide range of writing, documentation, and content creation needs. Its benefits have established it as a valuable tool in modern digital workflows.
---
# InClass Exercise
**Text:**
> "Duffy and Friends" is a popular collection of Disney characters that originated from the Disney theme park in Tokyo, and now have gained a worldwide following. The crew was introduced by Disney for the parks outside the United States and it has quickly won the hearts of visitors, especially in Asia.
> Duffy, the main character, is a teddy bear that Mickey Mouse's girlfriend Minnie made for him so he wouldn't be lonely on his long voyages. Duffy has a Mickey Mouse-shaped mark on his hip and has an adorable face and fluffy ears. Minnie gifted Duffy to Mickey in a duffle bag, from which he got his name.
> After Duffy, several other friends were introduced. ShellieMay, a pink teddy bear, is Duffy's friend and was also sewed together by Minnie Mouse. There’s also Gelatoni, a cat who likes to paint with his tail and is an artist friend of Duffy. StellaLou, a lavender rabbit, has a dream to become a dancer and is another adorable addition to the series. Lastly, there is 'Olu Mel, a turtle from Disney Resort in Hawaii, and CookieAnn, a dog who loves cooking. LinaBell is a smart pink fox in the Duffy and Friends from Shanghai Disneyland. She loves nature and solving mysteries.
> This group of characters has unique stories behind them and each of them was designed to help children understand different values like friendship, dreams, and self-belief. Duffy and Friends characters are exclusive to Disney Parks outside of the U.S and are especially popular in Tokyo DisneySea, Shanghai Disneyland, and Hong Kong Disneyland, where they feature in a range of themed merchandise and foods.
**Exercise 1: Add Structure**
Break the given text into sections using appropriate Markdown headers.
**Exercise 2: Highlighting Text**
Choose some text to highlight using bold and italic text. For example, you could use bold to highlight the main characters' names and italics to highlight the main antagonist.
**Exercise 3: Creating Lists**
Turn some of the information into bullet points or numbered lists. For example, you could make a bullet point list for the three main characters.
**Exercise 4: Inserting Links**
Find the wiki links for each character in [The Disney Wiki](https://disney.fandom.com/wiki/The_Disney_Wiki).
**Exercise 5: Inserting Images**
Find an appropriate image for each character.
**Exercise 6: Blockquotes**
Find a quote from the [The Disney Wiki](https://disney.fandom.com/wiki/The_Disney_Wiki) of each character.
**Exercise 7: Tables**
Create a markdown table of all characters with their Home.
**Exercise 8: Horizontal Rules**
Use horizontal rules to separate different sections of the content. This can make the text appear more structured.
Remember to use all the markdown features to make the document visually appealing and easy to read.
---
## Solution