<%* var now_time = tp.date.now("HH:mm"); var input = await tp.system.prompt(now_time + " - Interstitial Journal"); if (input == null) { return; } input = "- " + now_time + " - " + input; var filePath = tp.date.now("YYYY-MM-DD") + ".md"; console.log(filePath); if (await app.vault.adapter.exists(filePath)) { const file = await app.vault.getAbstractFileByPath(filePath); console.log(file);
This file contains 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: "CICD for Hugo: Speeding up the Static Site Flow" | |
date: 2017-11-25T12:15:21-08:00 | |
categories: ["article"] | |
type: "articles" | |
author: "David Wynn" | |
lastmod: 2017-12-15T07:47:21-08:00 | |
--- | |
As I was putting this site together, I realized there were some boilerplate workflows I wanted to improve. |
I hereby claim:
- I am ftwynn on github.
- I am ftwynn (https://keybase.io/ftwynn) on keybase.
- I have a public key ASAKeUW470tNAgQb1M2e6Rv_0KLLqJl9dDldiIVhi57EOwo
To claim this, I am signing this object:
This file contains 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
// ================== List Color Hierarchy ================== | |
atom-text-editor::shadow { | |
span.variable.list.gfm { color: @ui-site-color-1; } | |
span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-2; } | |
span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-3; } | |
span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-4; } | |
span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-5; } | |
span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-1; } | |
span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.leading-whitespace + span.variable.list.gfm { color: @ui-site-color-2; } |
This file contains 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
DECLARE @DaysBackToCheck INT | |
SET @DaysBackToCheck = 7 | |
-- List of users with recent activity | |
WITH RecentUsers AS ( | |
SELECT u.UserID, u.UserName, u.Name, MAX(l.Created) AS LastTBUseDate | |
FROM LOGS l | |
INNER JOIN LOG_TYPES lt ON l.LogTypeID = lt.LogTypeID | |
INNER JOIN USERS u ON u.UserID = l.TimekeeperID | |
WHERE lt.ParentLogTypeID = 1 | |
AND l.Created > DATEADD(day, -@DaysBackToCheck , GETUTCDATE()) |