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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
addEventListener('scheduled', event => { | |
event.waitUntil(doSomeTaskOnASchedule()); | |
}); | |
async function doSomeTaskOnASchedule() { | |
await handleChecklist(); |
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
// ==UserScript== | |
// @name Card Input | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.zuora.com/apps/PublicHostedPageLite.do** | |
// @grant none | |
// ==/UserScript== |
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
import json | |
def find_bottom_most_node(conversation_data): | |
""" | |
Finds the bottom-most node in the conversation, which is the node without any children. | |
:param conversation_data: The conversation data in a nested dictionary format. | |
:return: The ID of the bottom-most node, or None if not found. | |
""" |