To deploy Puppeteer in AWS Lambda we need to use a slim version of chromium, and layers.
Get the supported versions from this list.
npm install puppeteer-core@$PUPPETEER_VERSION| import {Modal} from "tailwindcss-stimulus-components" | |
| export default class extends Modal { | |
| connect(){ | |
| this.element[this.identifier] = this | |
| this.toggleClass = 'hidden' | |
| } | |
| } |
To deploy Puppeteer in AWS Lambda we need to use a slim version of chromium, and layers.
Get the supported versions from this list.
npm install puppeteer-core@$PUPPETEER_VERSION| CREATE EXTENSION btree_gist; | |
| CREATE TABLE room_reservations ( | |
| room_id integer, | |
| reserved_at timestamptz, | |
| reserved_until timestamptz, | |
| canceled boolean DEFAULT false, | |
| EXCLUDE USING gist ( | |
| room_id WITH =, tstzrange(reserved_at, reserved_until) WITH && | |
| ) WHERE (not canceled) |
<%* /*
*/
const view = app.workspace.activeLeaf.view;
const editor = view.editor;
const curLineNum = editor.getCursor().line;
const curLineText = editor.getLine(curLineNum);
const title = tp.file.title;
const today = title.match(/\d{4}\-\d{2}\-\d{2} .+/) //are we on the DNP?Rollver daily todos is a really nice extension for Obsidian.md that takes TODOs from yesterdays daily notes and rolls them over to today's notes. It has support for Obsidians built-in templates, but does - to my understanding - not really work well with the Templater Plugin. At least, I was unable to get it to work :-). Also, I wished it had some way to tell me that TODOs have been rolled over a few times already. Doing it this way is my way of working around these limitations.
I took some of the code of that "rollover daily todos" plugin and made it into a templater user script.
<%* var fileDate = moment(tp.file.title); // moment dates are mutable let prevDay = moment(fileDate).subtract(1, 'd').format('YYYY-MM-DD'); let nextDay = moment(fileDate).add(1, 'd').format('YYYY-MM-DD'); let prevDayWeek = moment(fileDate).subtract(1, 'd').format('gggg-[W]ww'); let nextDayWeek = moment(fileDate).add(1, 'd').format('gggg-[W]ww'); let yearLink = fileDate.format('YYYY'); let quarterLink = fileDate.format('YYYY [Q]Q'); let monthLink = fileDate.format('YYYY-MM');
| --- | |
| creation date: <% tp.file.creation_date() %> | |
| tags: DailyNote <% tp.file.title.split('-')[0] %> | |
| --- | |
| modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed. | |
| # <% tp.file.title %> | |
| << [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>> |
| package query_builder | |
| import ( | |
| "strings" | |
| "strconv" | |
| "html/template" | |
| "fmt" | |
| ) | |
| type DynamicQueryBuilder string |
| DROP FUNCTION _BASE64_UUID(VARCHAR); | |
| CREATE OR REPLACE FUNCTION _BASE64_UUID(INPUT VARCHAR) | |
| RETURNS varchar | |
| LANGUAGE javascript | |
| strict | |
| AS | |
| $$ | |
| try { | |
| var stmt = snowflake.createStatement({ | |
| sqlText: `SELECT TO_VARCHAR(TRY_BASE64_DECODE_BINARY(?), 'HEX');`, |