properties:
file.name:
displayName: note
file.tags:
displayName: tags
views:
- type: table
name: Table
filters:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<main> | |
<article> | |
<h1>Dark mode should be a user preference—not presumed</h1> | |
<p>Yes, by default, when a user has <code>@media (prefers-color-scheme: dark)</code> set, we should set a dark theme, but we should also provide a switch for if the dark them isn’t working out for them.</p> | |
<p>This also benefits users that don’t have <code>@media (prefers-color-scheme: dark)</code> set because they get a toggle to choose, too.</p> | |
</article> | |
<div class="user-toggle"> | |
<button class="toggle"> | |
toggle | |
</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**** | |
list-table | |
Make Markdown lists behave as a table. | |
https://www.pborenstein.com/articles/tablehacks/ | |
Usage: | |
<div class="list-table extra" markdown="1"> |
I hereby claim:
- I am pborenstein on github.
- I am pborenstein (https://keybase.io/pborenstein) on keybase.
- I have a public key whose fingerprint is B2BA ADE0 A50E CB2A 0326 067A C30C 080A AF31 F14B
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to use font-awesome glyphs in sphinx | |
======================================== | |
.. comment | |
Put the following lines somewhere in your file. | |
.. |folder-open| raw:: html | |
<span class="fa fa-folder-open" style="color: red;"></span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: http://misc.flogisoft.com/bash/tip_colors_and_formatting | |
This is working for me for now (it's only lightly tested, fails gracefully if the numbers are too high, fails ungracefully if you give too few arguments, and uses features in bash new to me (hey, been away for awhile), so not sure if they are standard or new... with that out of the way: | |
Now I can do things like echo "$(c_grey 15)I'm light Grey$(c_clr)" and | |
echo "$(cb_rgb 5 0 0)Red$(cb_rgb 0 5 0)Green$(cb_rgb 0 0 5)Blue$(c_clr)" | |
At any rate, hope this helps someone. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# print all the xterm colors | |
# see http://serverfault.com/a/91873 about caculating the rgb values | |
for c in {0..15} | |
do | |
printf "\033[38;5;%dm %2d" $c $c | |
if (( (c+1) % 8 == 0 )) ; then |