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
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: blue; icon-glyph: brain; | |
| // Configuration - adjust these as needed | |
| const UPDATE_INTERVAL_HOURS = 24 // Check for updates every 24 hours | |
| const WISDOM_FILENAME = "merlin_wisdom.md" | |
| const REMOTE_URL = "https://raw.githubusercontent.com/merlinmann/wisdom/master/wisdom.md" | |
| let items = await loadItems() |
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 perl | |
| # Faithful-ish Perl implementation of lexers.rb by Brett Terpstra: | |
| # https://gist.github.com/ttscoff/14560a71b86a48b4d895087d3700f516 | |
| # This script located at: | |
| # https://gist.github.com/Amorymeltzer/6f050ad73f2b6a98c9c8de71f253714f | |
| use strict; | |
| use warnings; |
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
| import requests | |
| templates = ["abbreviations", | |
| "advert", | |
| "all plot", | |
| "audio requested", | |
| "autobiography", | |
| "bad summary", | |
| "biblio", | |
| "BLP IMDb refimprove", |
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
| import speech_recognition | |
| import pyttsx | |
| speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init | |
| speech_engine.setProperty('rate', 150) | |
| def speak(text): | |
| speech_engine.say(text) | |
| speech_engine.runAndWait() |
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
| <?php | |
| /* From https://www.usps.com/send/official-abbreviations.htm */ | |
| $us_state_abbrevs_names = array( | |
| 'AL'=>'ALABAMA', | |
| 'AK'=>'ALASKA', | |
| 'AS'=>'AMERICAN SAMOA', | |
| 'AZ'=>'ARIZONA', | |
| 'AR'=>'ARKANSAS', |