Skip to content

Instantly share code, notes, and snippets.

View Amorymeltzer's full-sized avatar

Amory Meltzer Amorymeltzer

View GitHub Profile
// 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()
@Amorymeltzer
Amorymeltzer / lexers.pl
Last active April 15, 2023 18:38 — forked from ttscoff/lexers.rb
Faithful-ish Perl implementation of levers.rb by @ttscoff
#!/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;
@Amorymeltzer
Amorymeltzer / TemplateList.py
Created March 17, 2019 19:04 — forked from JadeMaveric/TemplateList.py
WikiTemplate Transclusion Count
import requests
templates = ["abbreviations",
"advert",
"all plot",
"audio requested",
"autobiography",
"bad summary",
"biblio",
"BLP IMDb refimprove",
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()
@Amorymeltzer
Amorymeltzer / us-state-names-abbrevs.php
Created December 17, 2015 22:57 — forked from maxrice/us-state-names-abbrevs.php
US State Names & Abbreviations as PHP Arrays
<?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',