Difference between revisions of "Code Snippets"
From Coder Merlin
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= User Input = | == User Input == | ||
# [[Code Snippet: User Input-Single Line]] | # [[Code Snippet: User Input-Single Line|User Input-Single Line]] | ||
# [[Code Snippet: User Input-Multi Line]] | # [[Code Snippet: User Input-Multi Line|User Input-Multi Line]] | ||
# [[Code Snippet: Prompt for Yes or No|Prompt for Yes or No]] | # [[Code Snippet: Prompt for Yes or No|Prompt for Yes or No]] | ||
= Randomness = | == Randomness == | ||
# [[Code Snippet: Random Integers]] | # [[Code Snippet: Random Integers|Random Integers]] | ||
# [[Code Snippet: Random Fractions]] | # [[Code Snippet: Random Fractions|Random Fractions]] | ||
# [[Code Snippet: Random Boolean]] | # [[Code Snippet: Random Boolean|Random Boolean]] | ||
# [[Code Snippet: Random Strings]] | # [[Code Snippet: Random Strings|Random Strings]] | ||
# [[Code Snippet: Shuffle Strings]] | # [[Code Snippet: Shuffle Strings|Shuffle Strings]] | ||
= Strings and Characters = | == Strings and Characters == | ||
# [[Code Snippet: Changing Character Case|Changing Character Case]] | # [[Code Snippet: Changing Character Case|Changing Character Case]] | ||
# [[Code Snippet: Long Strings|Long Strings]] | # [[Code Snippet: Long Strings|Long Strings]] | ||
Line 17: | Line 17: | ||
# [[Code Snippet: Characters and Strings to ASCII Values|Characters and Strings to ASCII Values]] | # [[Code Snippet: Characters and Strings to ASCII Values|Characters and Strings to ASCII Values]] | ||
# [[Code Snippet: Print All Integers in a String|Print All Integers in a String]] | # [[Code Snippet: Print All Integers in a String|Print All Integers in a String]] | ||
= Printing = | # [[Code Snippet: Splitting Key-Value Pairs into Components|Splitting Key-Value Pairs into Components]] | ||
# [[Code Snippet: Check if String Begins with Prefix and Retrieve Remainder|Check if String Begins with Prefix and Retrieve Remainder]] | |||
# [[Code Snippet: Access Individual Characters|Access Individual Characters]] | |||
# [[Code Snippet: Matching Regular Expressions|Matching Regular Expressions]] | |||
== Printing == | |||
# [[Code Snippet: Slow Printing|Slow Printing]] | # [[Code Snippet: Slow Printing|Slow Printing]] | ||
= Files = | = Files = | ||
# [[Code Snippet: Read File|Read a File]] | # [[Code Snippet: Read File|Read a File]] | ||
= Swift Packages = | # [[Code Snippet: Print a File Line-by-Line|Print a File Line-by-Line]] | ||
# [[Script Snippet: | |||
== Igis == | |||
# [[Igis Snippet: Clearing the Canvas Every Frame|Clearing the Canvas Every Frame]] | |||
# [[Igis Snippet: Maintaining a Constant Aspect Ratio|Maintaining a Constant Aspect Ratio]] | |||
== Swift Packages == | |||
# [[Script Snippet: Swift Packages]] | |||
== Git == | |||
# [[Git Snippet: Repoint Remote|Repoint Repository to New Remote]] | |||
# [[Git Snippet: Revert to Tag|Revert to a Specific Tag]] | |||
== Python == | |||
# [[Python Snippet: Create Virtual Environment]] |
Latest revision as of 15:14, 17 April 2022
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
User Input[edit]
Randomness[edit]
Strings and Characters[edit]
- Changing Character Case
- Long Strings
- Printing a String Backwards
- Characters and Strings to ASCII Values
- Print All Integers in a String
- Splitting Key-Value Pairs into Components
- Check if String Begins with Prefix and Retrieve Remainder
- Access Individual Characters
- Matching Regular Expressions