- Notifications
You must be signed in to change notification settings - Fork0
Programming Cheat Sheets in Markdown
LouisPetrik/codehints
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Louis' Programming Cheatsheets -codehints.io
A repertoire of programming-related cheat sheets, created with Markdown.The cheat sheets can be viewed on the websitecodehints.io but also here on GitHub, in the file explorer. Contributions are welcome.
Here is a list of the content on the website. The links refer to the corrosponding Markdown files.
master -> main/docs
- Variables and Data Types
- Functions
- Arrays
- Dynamic arrays (vectors)
- Stack, Heap and Static Memory
- Pointers
- References
- Classes
- Structs
- Getting started, tools & the REPL
- Types
- Functions
- Bindings
- Custom types
- IO
- Records
- Conditionals
- Pattern matching
- Map, Reduce and Filter
- Arrays
- Folds
- Standard Library
- Lists
- Typeclasses
- Interaction with JavaScript
Contributing is possible via GitHub. Alternatively, you can send in content, content-drafts or content-ideasvia Mail:louispetrik@aol.com.
The following are Guidelines to myself and others for adding contnet.
Each Markdown file has a header section on top which will be rendered to .Therefore it holds the title, the description etc.
Make sure each file at leasts holds a minimal header with a title:
---title:The title---Each technology has one intro.md in its directory. This file always hasa header like this:```markdown---title: Introduction to Technology-namesidebar_position: 1slug: /category/technology-name---```
Each of the files has the h2 headings:
- What is technology-name? (use cases, projects etc. )
- Hello World in technology-name
- Further Code examples (optional)
- Packages (optional)
- Author's Notes (optional)
- Sources
- Additional Ressources
Please do not use uncloses XML tags anywhere as this willbreak anything. Thank you.
In the markdown pages, React components can be used, thanks to MDX.js.Create a component in the /components directory. Finally, import and renderit in a page like this:
---title:Introduction to React.jssidebar_position:1slug:/category/react---import Bar from "@site/src/components/Bar";#IntroductionA component: <Bar />
Within the React component, React needs to be importet explicitly!
importReact,{useState,useRef}from'react'
- ChatGPT Cheatsheet
- GitHub Copilot Cheatsheet
- Interfaces in C++
- Filling out AssemblyScript and TypeScript
- Basics of C
- Bun Cheatsheet
- "Cheatsheet" -> "Cheat sheets"
- Make links in Repo README work
These can be used to create note, tip, info, caution and danger banners.Usage:
:::noteThis is a note.::::::tipThis is a tip:::
Make search bar results more specific (Maybe rename all "Arrays" to "Arrays in C++" for example)I will equip all pages containing "Array" with some front matter to see, if adding more meta info helps."Arrays" appears in assemblyscript, go and c++
Preview image when sharing via WhatsApp, Twitter etc.
About
Programming Cheat Sheets in Markdown
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.