Coder Merlin
  • Log in
My Tools
Code Explorer
Shell (Guacamole)
Shell (Tabby)
Matrix Chat
My Web Server
My Digital Portfolio
My IGIS
Proficiency Progress
Sash Awards
CEG-ID
Keys and Commands
Guacamole Keys
Emacs Keys
Magit Keys
Screen Keys
LLDB Commands
Overviews
Experiences Overview
Experiences Explorer
Topic Explorer
Curricula Assistant
Trailblazers
References
Swift Live Reference
Glossary
Common Errors
References
Code Snippets
Navigation
Experiences Overview
Google
Special Users
Authors
Guides
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
Browse properties

Code Snippets

From Coder Merlin
Jump to:navigation, search
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
NOTE: codermerlin.com has been deprecated and replaced by codermerlin.academy. Please update your bookmarks.

Contents

  • 1 User Input
  • 2 Randomness
  • 3 Strings and Characters
  • 4 Printing
  • 5 Files
    • 5.1 Igis
    • 5.2 Swift Packages
    • 5.3 Git
    • 5.4 Python

User Input[edit]

  1. User Input-Single Line
  2. User Input-Multi Line
  3. Prompt for Yes or No

Randomness[edit]

  1. Random Integers
  2. Random Fractions
  3. Random Boolean
  4. Random Strings
  5. Shuffle Strings

Strings and Characters[edit]

  1. Changing Character Case
  2. Long Strings
  3. Printing a String Backwards
  4. Characters and Strings to ASCII Values
  5. Print All Integers in a String
  6. Splitting Key-Value Pairs into Components
  7. Check if String Begins with Prefix and Retrieve Remainder
  8. Access Individual Characters
  9. Matching Regular Expressions

Printing[edit]

  1. Slow Printing

Files[edit]

  1. Read a File
  2. Print a File Line-by-Line

Igis[edit]

  1. Clearing the Canvas Every Frame
  2. Maintaining a Constant Aspect Ratio

Swift Packages[edit]

  1. Script Snippet: Swift Packages

Git[edit]

  1. Repoint Repository to New Remote
  2. Revert to a Specific Tag

Python[edit]

  1. Python Snippet: Create Virtual Environment
Retrieved from "https://www.codermerlin.academy/wiki/index.php?title=Code_Snippets&oldid=17678"
https://www.facebook.com/Coder-Merlin-101592328319584/
https://teespring.com/stores/coder-merlin
https://twitter.com/codermerlin
https://discord.gg/Hj7mTVtMbH
https://discourse.codermerlin.com/
https://openbadges.org/
This page was last edited on 17 April 2022, at 15:14.
Content is available under Attribution-NonCommercial-ShareAlike 4.0 unless otherwise noted.
Privacy policy
About Coder Merlin
Disclaimers
Attribution-NonCommercial-ShareAlike 4.0
Powered by MediaWiki
Powered by Semantic MediaWiki
Designed with pride in Silicon Valley, CA, USA