Skip to content

Instantly share code, notes, and snippets.

View RichNSD's full-sized avatar
🙂
Who needs to sleep when you can get error codes.

Richard Joubert RichNSD

🙂
Who needs to sleep when you can get error codes.
View GitHub Profile
@RichNSD
RichNSD / get-input.py
Created January 13, 2023 15:56
Basic 'User Input' example for Python beginners.
"""
Come up with a series of variables to use in a 'def' function.
"""
# Include at least 1 variable with a 'pre-set' value
Request = "Please enter your "
"""
Include at least 2 variables thay require User Input.
@RichNSD
RichNSD / Textastic-Dockerfile-Support.md
Created February 5, 2023 11:22
Initially drafted in response to a forum post about adding language support for `Dockerfiles`. Then I got carried away and wrote a small manual.

Dockerfile Support

I can't believe it took me so long to figure out the answer to this- and it was right in front of my face the whole time. Regardless, now that I've finally figured this out for myself, I want to share the ✨ magic ✨ with everyone else.

So what is the solution- and where was it the whole time? Shockingly, this answer was actually right where it should have been... in the Online Manual.


Sublime 3 & TextMate Packages

@RichNSD
RichNSD / My-Acode-Keybindings.json
Created February 8, 2023 16:50
My Acode Settings & Keybindings files to be linked to reported issues for diagnostic purposes.
{
"findFile": {
"description": "Find a file",
"key": "Ctrl-P",
"action": "find-file"
},
"closeCurrentTab": {
"description": "Close current tab.",
"key": "Ctrl-W",
"readOnly": false,

Font Sizes: em vs rem

The em and rem units are specifically dedicated to the font-size, even though they can be used for any property using Length Measurement Units.

The em Unit

The user-friendly definition of em is:

"Font size of the parent, in the case of [text-based] properties like font-size, and font size of the element itself, in the case of other properties like width."
    -from MDN Web Docs[^MDN]

@RichNSD
RichNSD / falling-off-viewport.md
Last active February 24, 2023 22:16
Reporting a viewport issue for the Microsoft Admin center while using Safari for my iPad Pro

Admin Center Viewport

Meme Summary

The Admin Center can't hold all this content.
    Even though it's only 2-3 buttons


Overview

@RichNSD
RichNSD / HealthyDomain-Not-Accepted.md
Last active March 9, 2023 01:32
Troubleshooting information regarding my issue with adding "nsd.team" aliases.

Summary

I'm in the process of migrating from one Microsoft Business account to another. I've successfully removed all registered domains from the Original Business Account, including the (former) Primary Domain: nsd.team

According to the Microsoft 365 Admin Portal, the nsd.team domain has been successfully added and all DNS Checks "healthy" (both upon adding & on every refresh).

See the Technical Details below for Microsoft Account IDs and the default *.onmicrosoft.com domain names.

Captured Media

@RichNSD
RichNSD / markdown-pre-sample.md
Created May 17, 2023 17:10
Markdown code block containing a highlighted code block in markdown syntax

Nested Code Blocks

To display the proper syntax for Markdown's fenced code blocks (with or without syntax highlighting) you need to use the HTML <pre> element, like so:

HTML Syntax

<pre lang="markdown">
<!-- JavaScript Code Block (Markdown Syntax) -->
</pre>

SASS Division Update

Sass currently treats / as a division operation in some contexts and a separator in others. This makes it difficult for Sass users to tell what any given / will mean, and makes it hard to work with new CSS features that use / as a separator. -Sass-Lang.org

Deprecated Syntax

@function strip-units($number) {
	@return $number / ($number * 0 + 1);
}
@RichNSD
RichNSD / GFM-tests.md
Created September 27, 2023 05:43
Markdown Formatting Tests

Markdown Preview Tests

This is a test of the Markdown Styler plugin.


Basic Features

Lists

Testing Ordered Lists, Unordered Lists, and Checklists.