sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| @media screen and (max-width: 991px) { | |
| /* Your responsive CSS */ | |
| } | |
| @media screen and (max-width: 767px) { | |
| /* Your responsive CSS */ | |
| } | |
| @media screen and (max-width: 479px) { | |
| /* Your responsive CSS */ | |
| } |
| #!/usr/bin/env python3 | |
| # | |
| # Convert .itermcolors files to kitty terminal color settings. | |
| # Modded from https://gist.github.com/MSylvia/4e90860743f1a4de187d | |
| # Might need to adjust dicts[i][NUMBER].text per your file. | |
| import sys | |
| import xml.etree.ElementTree as ET | |
| def rgb_to_hex(rgb): |
| #!/usr/bin/env python | |
| # | |
| # Convert .itermcolors files to hex colors for html | |
| import sys | |
| import xml.etree.ElementTree as ET | |
| def rgb_to_hex(rgb): | |
| return '#%02x%02x%02x' % rgb |
| [T]he difference between a bad programmer and a | |
| good one is whether he considers his code or his | |
| data structures more important. Bad programmers | |
| worry about the code. Good programmers worry about | |
| data structures and their relationships. | |
| -- Linus Torvalds | |
| ~~~ | |
| Clarity and brevity sometimes are at odds. | |
| When they are, I choose clarity. | |
| -- Jacob Kaplan-Moss |
| const addFavicons = () => { | |
| let filtered = Array.prototype.filter.call(document.querySelectorAll('.roam-body-main a'), a => { | |
| return a.hostname && a.hostname !== document.location.hostname; | |
| }); | |
| Array.prototype.forEach.call(filtered, a => { | |
| if (a.text == "*") { | |
| a.style.background = `url(https://www.google.com/s2/favicons?sz=16&domain=${a.hostname}) right center no-repeat`; | |
| a.style.paddingRight = "18px"; | |
| } else { | |
| a.style.background = `url(https://www.google.com/s2/favicons?sz=16&domain=${a.hostname}) left center no-repeat`; |
| #!/usr/bin/env python | |
| """ | |
| Twitter's API doesn't allow you to get replies to a particular tweet. Strange | |
| but true. But you can use Twitter's Search API to search for tweets that are | |
| directed at a particular user, and then search through the results to see if | |
| any are replies to a given tweet. You probably are also interested in the | |
| replies to any replies as well, so the process is recursive. The big caveat | |
| here is that the search API only returns results for the last 7 days. So |
I created a crude comparison of the syntax of the various common Markdown extensions to have a better view on what are the most common extensions and what is the most widely accepted syntax for them. The list of Markdown flavors that I looked at was based on the list found on CommonMark's GitHub Wiki.
| Flavor | Superscript | Subscript | Deletion* Strikethrough |
Insertion* | Highlight* | Footnote | Task list | Table | Abbr | Deflist | Smart typo | TOC | Math | Math Block | Mermaid |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GFM |
| // This constant is written in column C for rows for which an email | |
| // has been sent successfully. | |
| var ADDED = true; | |
| var EMAIL_SENT = true; | |
| /** | |
| * Sends non-duplicate emails with data from the current spreadsheet. | |
| */ | |
| function sendEmails() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); |