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
| const QUOTES_API = 'https://quotes-api.netlify.app/.netlify/functions/get-quote'; | |
| const BG_COLOR = "#000000"; | |
| const BG_IMAGE = true; | |
| let randomQuote = await loadQuote() | |
| let img = null; | |
| // no-background.js is needed from here if BG_IMAGE is set to true | |
| // https://github.com/supermamon/scriptable-no-background |
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
| tell application "BBEdit" to set theFile to file of document 1 | |
| tell application "Finder" to set theFolder to (container of file theFile) as alias | |
| set theUnixPath to POSIX path of theFolder | |
| set output to return & "cd '" & theUnixPath & "'; pwd" | |
| tell application "BBEdit" | |
| set uws to Unix worksheet window | |
| tell uws | |
| select insertion point after last character | |
| set selection to output |
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
| tell application "BBEdit" | |
| set theScript to selection as text | |
| set clippingFileRef to (path to temporary items as string) & "clipping_as_selection" | |
| --close access clippingFileRef | |
| set fileref to open for access file clippingFileRef with write permission | |
| set eof of fileref to 0 -- clear the file | |
| write theScript to fileref | |
| close access fileref |
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
| <a href="tel:1-408-555-5555">1-408-555-5555</a> | |
| <a href="sms:1-408-555-1212">New SMS Message</a> |
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
| Hey Alex, there aren't any docs yet. Here's the info: | |
| simplenote://new?content=encodedContent&tag=encodedTag | |
| The parameters are optional. If omitted, Simplenote will open to a new, blank note. |
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
| # Install deps | |
| # sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra | |
| # sudo apt-get install -y texlive-xetex | |
| # sudo apt install -y ghostscript | |
| # wget https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb | |
| # sudo apt install -y ./pandoc-2.9.2.1-1-amd64.deb | |
| # rm ./pandoc-2.9.2.1-1-amd64.deb | |
| #cp fonts/*.ttf ~/.fonts # I use Google Fonts (Roboto -> please see line 8) | |
| cd book # directory where markdown files can be found |
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
| ############################################################# | |
| # Title: Find all URL Links on Webage then open link based on a Search value | |
| ############################################################# | |
| #Iain Dunn | |
| #https://www.logic2design.com | |
| #https://twitter.com/Logic2Design | |
| #[email protected] | |
| ############################################# | |
| # Script | |
| ############################################# |
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
| var rows = Number(%filltext:name=bodyrows:default=2:width=5%); //body of table rows | |
| var cols = Number(%filltext:name=cols:default=4:width=5%); //columns of table | |
| var rows = rows + 2; //add a rows to account for header and seperator | |
| var text = ''; //variable to store the output | |
| for (rCount = 1; rCount <= rows; rCount++) { | |
| for (cCount = 1; cCount <= cols; cCount++) { | |
| if (rCount == 1) { // Header Row Output | |
| if (cCount == 1) { | |
| text += '**%|** |'; |
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
| the | |
| of | |
| to | |
| and | |
| a | |
| in | |
| is | |
| it | |
| you | |
| that |
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
| #!/bin/sh | |
| basename=`basename $0` | |
| if [ -z "$*" ]; then | |
| echo "usage: ${basename} <dot> [ -o | -r | <file> | - ]" | |
| echo "" | |
| echo "options:" | |
| echo " -o open dot in window with keyboard focus" | |
| echo " -r read contents of dot" |