Skip to content

Instantly share code, notes, and snippets.

View ericdmoore's full-sized avatar

Eric D Moore ericdmoore

View GitHub Profile
@ericdmoore
ericdmoore / Podcast_feeds_2023-10-17.opml
Created October 17, 2023 21:21
Readable Feeds from Oct 2023
<?xml version="1.0"?>
<opml version="1.0">
<head>
<title>Podcast Subscriptions</title>
</head>
<body>
<outline type="rss" text="The Moth" title="The Moth" xmlUrl="http://feeds.feedburner.com/themothpodcast" htmlUrl="http://themoth.org/"/>
<outline type="rss" text="Timothy Keller Sermons Podcast by Gospel in Life" title="Timothy Keller Sermons Podcast by Gospel in Life" xmlUrl="https://podcast.gospelinlife.com/feed.xml" htmlUrl="https://gospelinlife.com/"/>
<outline type="rss" text="The World of Business" title="The World of Business" xmlUrl="https://podcasts.files.bbci.co.uk/p02nrwfk.rss" htmlUrl="http://www.bbc.co.uk/programmes/p02nrwfk"/>
<outline type="rss" text="Ask Pastor John" title="Ask Pastor John" xmlUrl="https://feed.desiringgod.org/ask-pastor-john.rss" htmlUrl="https://www.desiringgod.org/ask-pastor-john"/>
@ericdmoore
ericdmoore / New-Machine-Setup.md
Last active April 25, 2024 20:22
The bare minimum for me to be productive on a new machine
@ericdmoore
ericdmoore / makefile
Created August 31, 2021 20:12
Favorite Makefile Command: list
tests
@echo "START RUNNING TESTS"
list:
@echo
@echo Available sub-commands...
@echo
@cat makefile | grep ":" | tail -r | awk 'NR>1{ print }' | tail -r
@echo
@echo
// vanilla version of TS (from esbiuild)
const {isArray} = Array;
const isPrim = (i) => {
const types = ["string", "number", "boolean", "function", "undefined", "bigint", "symbol"];
return types.some((tStr) => typeof i === tStr);
};
const isObject = (i) => {
return !isPrim(i) && !isArray(i);
};
/* using ts-jest */
import { DynamoDB } from 'aws-sdk'
import localDynamo from 'local-dynamo'
import { appTable, click } from '../src/entities'
let dynamoLocal: ChildProcess
beforeAll(async () => {
// start local Dynamo Svc
// and set the internals of the Entity framework to use the locally configured reader/writer
@ericdmoore
ericdmoore / formatDate.ts
Last active April 8, 2021 18:39
Date Formatter Fn
/**
* ### Date Formatter
* @description Given a format string, the formatter does simple replacment for date string tokens.
* @param epoch - ISO Epoch Date number
* @param fmt - format String
*
* @token `YYYY`:Year; ex: 2021
* @token `YY`:AbbrevYear; 21
* @token `MM`:Month; 04
* @token `DD`:Date; 01
@ericdmoore
ericdmoore / hast-util-select.d.ts
Created March 12, 2021 21:23
Type Declarations for `hast-util-select`
// Type definitions for `hast-util-select` 4.0.1
// Project: https://github.com/syntax-tree/hast-util-select#readme
// Definitions by: ericdmoore <https://github.com/ericdmoore>
// TypeScript Version: 4.0
//
declare module 'hast-util-select'{
import type { Node } from 'unist'
export interface HastNode extends Node{
properties: {[key:string]:any}
@ericdmoore
ericdmoore / feeds-2023-01-19.opml
Last active January 19, 2023 15:52
Current OPML
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>Feeds</title>
</head>
<body>
<outline type="rss" title="| Pooya Saeedi" xmlUrl="https://www.saeedi.dev/feed/" text="| Pooya Saeedi" htmlUrl="https://www.saeedi.dev" />
<outline type="rss" title="250bpm" xmlUrl="https://250bpm.com/rss.xml" text="250bpm" htmlUrl="http://250bpm.com" />
<outline text="500ish - Medium" title="500ish - Medium" htmlUrl="https://500ish.com?source=rss----662a29c3b19e---4" xmlUrl="https://500ish.com/feed" type="rss" />
<outline text="andrewchen" title="andrewchen" type="rss" htmlUrl="https://andrewchen.com" xmlUrl="https://andrewchen.com/feed/" />
/**
* To get this list go to:https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ask-skill.html
* and run this in the console.
*/
/*
;(async () => {
const sleep = N => {
return new Promise(resolve => {
@ericdmoore
ericdmoore / .babelrc
Last active June 20, 2018 18:36
HyperApp Route Trouble
{"plugins": [["transform-react-jsx", { "pragma": "h" }]]}