Below are some links that I found interesting and/or instructive last week. Enjoy!

Table of Contents

- [General](#general)
- [GTD Review](#gtd-review)
- [Table of Contents Generator and Other Tools in Markdown](#table-of-contents-generator-and-other-tools-in-markdown)
- [curl Package and Working With APIs in R](#curl-package-and-working-with-apis-in-r)
- [Emailing from R](#emailing-from-r)
- [Amazon Forecast](#amazon-forecast)
- [Apple Script](#apple-script)

General

Options trading strategy based on ARIMA forecasting

Link - DB

Interesting article on using ARIMA to forecast options trading.

Chartable

Link

The top podcast charts from Apple, Google, Spotify and others rated by category.

Craft Review: A Powerful, Native Notes and Collaboration App - MacStories

Link - DB

tags: tools

I have a manic streak of wanting to switch between iOS text esitors. This is the latest one I have been looking at but it’s hard to beat Textastic.

Link

tags: tools

Command Line Cheat Sheet

Link - DB

tags: cli, cheatsheet

Changing the font in Jekyll Minima (default) theme - Stack Overflow

Link - DB

Automating a COVID19 report update and publishing with GitHub Actions

Link - DB

tags: github-actions

Part 4/4 of a series covering a workflow to publish a Shiny app with COVID-19 data. Focuses on using Github Actions to automate the updating and publishing of the final report.

pmarsceill/just-the-docs

Link - DB

tags: jekyll

A modern, high customizable, responsive Jekyll theme for documention with built-in search.

Introduction to roxygen2

tags: package

Link - DB

GTD Review

Every few months, I find the need to update and tighten up my GTD game. Below are links I found helpful.

The Weekly Review: A Productivity Ritual to Get More Done

Link - DB

tags: todoist

Todoist is my jam and this article does a great job of helping you get your weekly review right. Lots of insight, even if you don’t use Todoist to manage your projects.

Use Google Drive & Dropbox with Todoist

Link - DB

tags: todoist

Importing or exporting project templates

Link - DB

tags: todoist

An underused (at least by me) feature of Todoist that allows the user to import and export project templates from csv files.

ThinkR-open/rtodoist: Package to call the todoist API. Manage your ToDo lists with todoist from R.

Link - DB

tags: package, todoist

Package to call the todoist API. Manage your ToDo lists with todoist from R. See also Projects – REST API Reference - Todoist Developer.

How to write weekly, monthly, and annual reviews (with free templates!)

Link

The One-Touch Guide to Doing a Weekly Review: How I Go From Chaos to Clarity in 30 Minutes - Forte Labs

Link - DB

How I use Shortcuts on iOS and a template to automatically setup my weekly note / Michael Lee

Link - DB

Table of Contents Generator and Other Tools in Markdown

jonschlinkert/markdown-toc

Link - DB

tags: markdown

A CLI and API tool to add a table of contents to any markdown document. Generate a markdown TOC table of contents for a README or any markdown files, using remarkable. Used by assemble, verb, and lots of other projects on GitHub. API and CLI.

jonschlinkert/remarkable: Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available

Link - DB

tags: markdown

Helpful tool to parse markdown. Checkout the Remarkable demo for a really great example.

Installing Node.js® and NPM on Mac

Link - DB

tags: cli, markdown

Excellent guide to install NPM on a mac using Homebrew.

RPubs - Creating HTML documents in RStudio using R Markdown

Link

curl Package and Working With APIs in R

Best practices for API packages • httr

Link - DB

Asynchronous API calls with curl - R Admins - RStudio Community

Link - DB

Writing a proper API request in R for curl -X POST - Stack Overflow

Link - DB

Good answer using httr package to POST to the body of an API call.

posting<-'{
  "payers_edrpous": [
    "00013534"
  ],
  "recipt_edrpous": [
    ""
  ],
  "startdate": "2020-03-01",
  "enddate": "2020-03-28",
  "regions": [
    0
  ]
}'

library(httr)
r <- POST("http://api.spending.gov.ua/api/rest/1.0/transactions", body=posting,
          httr::add_headers(`accept` = 'application/json'),
          httr::content_type('application/json')) #encode="json"
					content(r)

Emailing from R

emayili: Sending Email from R - datawookie

Link

tags: package

Introduction to the emayili package that works via the curl package in R and uses SMTP servers so that it works with most email providers.

jennybc/send-email-with-r: How to send a bunch of email from R

Link

A bulk email/mail merge with Gmail and Google Sheets solution evolution using V8 – MASHe

Link

Gmail/Sheets Mail Merge - Project Editor - Apps Script

Link

Create Your Own Email Tracking Pixel with this Free Online Tool

Link

How To Track Email Opens with Google Analytics Pixel Tracking

Link

Amazon Forecast

Introducing Amazon Forecast and a Look into the Future of Time Series Prediction - AWS Partner Network (APN) Blog

Link

Amazon Forecast – Now Generally Available - AWS News Blog

Link

Apple Script

Tooling around with being able to (1) save all open tabs as a PDF locally to my Mac, (2) query the Dropbox API to get the link to the file and (3) return the original url of the page and the link to the Dropbox file in Markdown format.

Link

AppleScript Lexical Conventions

Link

Applescript to automate “Save as PDF” in print menu - MacRumors Forums

Link

Link

HTML URL to PDF from R

R Code to Transform HTML URL to PDF from R

tags: cli

I find myself recently with a lot of pages on the internet I need to save as a PDF for one reason or another. Below is a short function that utilizes wkhtmltopdf to save html pages as PDFs. Note that you need to install wkhtmltopdf either by downloading form the website or on the command line via Homebrew.

# - visit https://wkhtmltopdf.org/index.html to install this on your system prior to running the function
# - set delay = TRUE if you want --javascript-delay <msec> to load the page and waid 200 msec

fn.save.url.to.pdf <- function(url, file_path, delay = F){
	command 				<- 		"wkhtmltopdf"
	url 						<- 		as.character(url)
	file_path 			<- 		file_path
	if(delay == T){
		delay = as.character("--javascript-delay 200")
	}
	if(delay == F){
		delay = as.character("")
	}
	cl 							<- 		paste0(command, delay, url, file_path, sep = " ")
	system(cl)
}