T <: A declares that type variable T refers to a subtype of type A (or type A itself).
T >: A expresses that the type parameter T or the abstract type T refers to a supertype of type A (or type A itself).
| #! /bin/sh | |
| # Like ls, but lists files' last git modification date | |
| # Adapated from https://stackoverflow.com/a/73512835/3345085 | |
| # To easily create a git alias for this, import it into your git config by running: | |
| # echo "git config --global alias.ls $(printf '%q' "`echo -n \!; cat ~/scripts/git-ls.sh`")" | bash - | |
| for i in *; | |
| do |
| { | |
| "theme": "system", | |
| "language": "en-US", | |
| "enableExperimental": false, | |
| "addQueryDepthLimit": 5, | |
| "tabSize": 2, | |
| "theme.dark": "system", | |
| "theme.editorFontSize": 13, | |
| "theme.editorFontFamily": "Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace", | |
| "themeConfig": { |
| #!/usr/bin/env osascript | |
| # Send macOS notifications to yourself. | |
| # Useful for notifying yourself when a long-running process is complete. | |
| # | |
| # Usage: ding [title] | |
| # | |
| # For example: | |
| # gw test; ding Finished tests |
T <: A declares that type variable T refers to a subtype of type A (or type A itself).
T >: A expresses that the type parameter T or the abstract type T refers to a supertype of type A (or type A itself).
| use quick_xml::events::Event; | |
| use quick_xml::{Reader, Writer}; | |
| /// Prettify XML by adding proper new lines and indentation. | |
| /// | |
| /// This uses the quick_xml library (https://github.com/tafia/quick-xml) to read/parse the given | |
| /// XML string and then write it to a string as indented XML. This isn't perfect and most likely | |
| /// not the most efficient. | |
| /// | |
| /// One strange behavior is that a closing element tag is not put on a new line if it follows a |
| #!/bin/bash | |
| while : | |
| do | |
| sleep 1200 | |
| osascript -e 'display notification "" with title "Take a 20 second break."' | |
| sleep 20 | |
| osascript -e 'display notification "" with title "Break time is over!"' | |
| done |
I hereby claim:
To claim this, I am signing this object:
| (* | |
| Copies all folders and their notes from the Mac Notes app to Evernote. | |
| How to run: | |
| 1. Download and setup Evernote on your Mac if you haven't already. | |
| 2. Open the Script Editor app on your Mac. | |
| 3. Copy and paste this script into the Script Editor. | |
| 4. Run the script (press the play button or via the menu Script>Run or ⌘R). | |
| Considerations: |