Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ninmonkey/ab7291f150a60310c2185796859c4ada to your computer and use it in GitHub Desktop.
Save ninmonkey/ab7291f150a60310c2185796859c4ada to your computer and use it in GitHub Desktop.
Effective use of Minimal Unicode Characters, (not all emoji are evil)

Emoji and charactors are not useful ?

Too many special characters, or even the dreaded emoji are a problem. But, if you use a small amount, it can improve readabilty in some situations.

Ex: Spotify ( lots of names, only newest has icon )

items stand out, like a long filelisting <todo: screenshot test runner in vscode>

Pinning / Important .code-workspace

https://www.compart.com/en/unicode/block/U+1D100

Separators

Misc

Description
Dash / Arrows β‡’
Favorite Bookmarks πŸ‘
Console / CommandLine πŸ’»
Search / Find 🧭
List / Checklist πŸ“
Video / Youtube πŸŽ₯
Music / Audio 🎢
Web App πŸŒŽπŸ’»
  • β‡’ πŸ‘ πŸ’»

Filename Delimiters

  • β‡’ ┐ ⇽ ⁞ πŸ•·οΈ …

  • bug report πŸ•·οΈ

  • 🎨 πŸ–₯️

sdfs Wrap After 🎨 Join-String πŸ–₯️ ⁞ 2021-02-04.ps1 Import PowerBI ⇽ Add-Type πŸ’‘πŸ”‘ Assemblies 2021-01-26.ps1 Format-TypeName and Get-ObjectType -- Nicer summaries of type names πŸ–₯️ -2020-01-23.png Pretty output 🎨 Console Diff πŸ–₯️ ⁞ 2021-01-21.ps1 _tabgs 🌎🌐 ⁞ ┐⇽⇾— βš™οΈπŸ’‘πŸ“‹πŸ“ΉπŸ”‘πŸ”₯πŸ•·οΈπŸ•ΉοΈπŸ–₯️ ⁞ Console πŸ–₯️ Formatting 🎨.txt Find-Member πŸ‘©β€πŸ”¬ Nicer condensed output ⁞ 2021-01-09.png

Example:

  • Date.ToText ⇽ using custom date format strings ┐2021-01-29.pbix
  • ArgumentCompleter πŸ’‘ as optional values πŸ–₯️ ⁞ 2021-01-29.ps1

VS Code Launch.json preset

Description
Execute Program
or run Fastest Tests
πŸƒ πŸš€
Command includes Opening a Browser 🌎
Log ㏒
Test Runners
Unit Tests or Bug πŸ› Foo Bar
Slow Interation tests πŸ›πŸŒ Foo Bar or πŸ›πŸ’ Foo Bar
Uses Terminal Escape Sequences 🎨 or πŸ–₯️

Console / Command Line output

Label Runes
Tree hierarchy β”œ , ─, β””
Unicode Category Block Range
So Box Drawing 0x2500 - 0x257f

Todo remove duplicates

⇽┐ β”†β”‡β”ˆβ”‰β”Šβ”‹β•Œβ•β•Žβ•

β”…βžŸβž β€π„„β€β₯­β¬·β­« β‘ˆβ”„β”…β”†β”‡β”ˆβ”‰β”Šβ”‹β•Œβ•β•Žβ•βžŸβž β€Œβ€β€Žβ€β€β₯ͺβ₯«β₯¬β₯­β©œβ©β«˜ ┐ ‏‐β₯ͺβ₯«β₯¬β₯­β©œβ”†β”‡β”ˆβ”‰

β‘ˆβ”„β€’β€“β€”β“β‡ β‡‘β‡’β‡£βŠβ‘ˆβ”„β”…βžŸβž β€Œβ€β€Žβ€β€β₯ͺβ₯«β₯¬β₯­β©œβ©β«˜β«¦β¬·β­ͺβ­«β­¬β­­βΈΊβΈ»βΉƒγ€œγ€°οΈ±οΈ²οΉ‰οΉοΉ˜π„„πŸ’¨β€β€β₯ͺβ₯«β₯¬β₯­β©œβ”†β”‡β”ˆβ”‰β”Šβ”‹β•Œβ•β•Žβ•β”†β”‡β”ˆβ”‰β”Šβ”‹β•Œβ•β•Žβ•β©β«˜β‘ˆβ”„β”…β”†β”‡β”ˆβ”‰β”Šβ”‹β•Œβ•β•Žβ•βžŸβž β€Œ ‍‎‏‐β₯ͺβ₯«β₯¬β₯­β©œβ©β«˜ ┐‏‐β₯ͺβ₯«β₯¬β₯­β­¬βžŸβ†’βž β€Œβ€β€Žβ€β€

buffer: ( Very last, "Maybe Dump" ) Totally unsorted or unfiltered list of characters

Arrows β‡’β‡’β‡’

‏‐β₯ͺβ₯«β₯¬β₯­β­¬βžŸβ†’βž β€Œβ€β€Žβ€β€

Dash β‘ˆβ”„β€’β€“β€”β“β‡ β‡‘β‡’β‡£βŠβ‘ˆβ”„β”…βžŸβž β€Œβ€β€Žβ€β€β₯ͺβ₯«β₯¬β₯­β©œβ©β«˜β«¦β¬·β­ͺβ­«β­¬β­­βΈΊβΈ»βΉƒγ€œγ€°οΈ±οΈ²οΉ‰οΉοΉ˜π„„πŸ’¨β€β€β₯ͺβ₯«β₯¬β₯­β©œβ”†β”‡β”ˆβ”‰β”Šβ”‹β•Œβ•

🌎🌐 ⁞ ┐⇽⇾— βš™οΈπŸ’‘πŸ“‹πŸ“ΉπŸ”‘πŸ”₯πŸ•·οΈπŸ•ΉοΈπŸ–₯️

Safe to use control chars

Name Symbol
Space ␠
Escape ␛
aNewline ␀
Tab β‡₯
Null ␀
VerticalTabSymbol ␋
TabSymbol ␉
CarriageReturn ␍
Newline ␀

buffer: Scripts

Convert to distinct list, then to clipboard

(Get-Clipboard).EnumerateRunes() | Sort value | Join-String -sep '' | Set-Clipboard

# or render
(Get-Clipboard).EnumerateRunes() | Sort value -Unique | Join-String -sep ', '
# Out: β€’, –, β€”, ⁓, β†’, β‡ , ⇑, β‡’, ⇣, ⊝, β‘ˆ, β”„, β”…, ┆, ┇, β”ˆ, ┉, β”Š, β”‹, ┐, β•Œ, ╍, β•Ž, ╏, ➟, ➠, ‌, ‍, ‎, ‏, ‐, β₯ͺ, β₯«, β₯¬, β₯­, ⩜, ⩝, ⫘, ⫦, β¬·, β­ͺ, β­«, β­¬, β­­, βΈΊ, βΈ», βΉƒ, γ€œ, γ€°, οΈ±, οΈ², οΉ‰, ﹍, ﹘, 𝄄, πŸ’¨

Test Length of each codepoint when encoded

PS> 'aπŸ’ef'.EnumerateRunes() | Ft *length, value
                                                
Utf16SequenceLength Utf8SequenceLength  Value   
------------------- ------------------  -----   
                  1                  1     97   
                  2                  4 128018   
                  1                  1    101   
                  1                  1    102   

Filter duplicates

'β‡’β‡’T β‡’ A'
| % EnumerateRunes | Sort -Unique Value | Join-String -sep ''
# AT⇒
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment