Source: https://help.obsidian.md/Editing+and+formatting/Callouts
[!note] Note
[!abstract] Abstract, summary, tldr
[!info] info
[!todo] todo
| #!/bin/bash | |
| # Created by: Jess Brown, youtube.com/@NotDefinedTech | |
| # See: | |
| # written walkthrough: https://www.notdefined.tech/blog/building-a-color-contrast-checker-in-the-terminal/ | |
| # video walkthrough: https://youtu.be/7Jx4ib6FGHc | |
| FOREGROUND="${1//#/}" | |
| BACKGROUND="${2//#/}" | |
| # echo "FG: ${FOREGROUND}" |
| <!-- This is just an HTML partial with what is needed for the styles we worked on --> | |
| <div class="sbs"> | |
| <div class="body"> | |
| <h2>Do more with what you have.</h2> | |
| <p>The digital landscape from work to home keeps demanding more. It can be overwhelming, discouraging, or exhausting to keep up with all of these digital demands—so we'll explore ways to maintain our humanity with our technology.</p> | |
| <p>Subscribe to the CYBORG_ newsletter make tech an extension of your humanity in just 5 minutes each week.</p> | |
| </div> | |
| <div class="media"> |
| <!-- This is just a partial HTML file with the relevant cards from the styles. This was using Django's templating system to dynamically pull in the headline and summary, but you can always just put your own text in and replace the {{ variables }} --> | |
| <div class="cards"> | |
| <div class="card"> | |
| <div class="poster"> | |
| <div class="stepped-opacity"> | |
| <div>{{ headline }}</div> | |
| <div>{{ headline }}</div> | |
| <div>{{ headline }}</div> | |
| <div>{{ headline }}</div> |
Source: https://help.obsidian.md/Editing+and+formatting/Callouts
[!note] Note
[!abstract] Abstract, summary, tldr
[!info] info
[!todo] todo
| #! python3 | |
| # How to get the day, month, and year in python | |
| from datetime import datetime as dt | |
| timestamp = dt.now() | |
| print(timestamp.month) # Example output: 7 | |
| print(timestamp.day) # Example output: 27 | |
| print(timestamp.year) # Example output: 2022 |
| { | |
| "Print in color black": { | |
| "scope": "javascript,typescript,python,shellscript", | |
| "prefix": "clrblack", | |
| "body": [ | |
| "\\x1b[30m$1\\x1b[0m", | |
| ], | |
| "description": "Console text color black" | |
| }, | |
| "Print in color red": { |