This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| LinkWarden Weekly Links Generator | |
| This script fetches links from LinkWarden API with a specific tag, | |
| filters them to only include links from the last week, | |
| and creates a markdown file for Hugo static site. | |
| """ | |
| import requests |
This file contains hidden or 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 pandas as pd | |
| from openai import AssistantEventHandler, AzureOpenAI | |
| from typing_extensions import override | |
| import os | |
| from IPython.display import Image | |
| import datetime | |
| import json | |
| from PIL import Image | |
| #Azure Open AI resource settings |
This file contains hidden or 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
| private static readonly HttpClient HttpClient = new HttpClient(); | |
| [FunctionName("InvokeTeamsHook")] | |
| public static async Task Run( | |
| [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "InvokeTeams")] | |
| HttpRequestMessage req, | |
| ILogger log) | |
| { | |
| var message = await req.Content.ReadAsAsync<IncomingTeamsMessage>(); |
This file contains hidden or 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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "resourcegroup": { | |
| "type": "string" | |
| }, | |
| "hostingPlanName": { | |
| "type": "string", | |
| "minLength": 1 |
This file contains hidden or 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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| }, | |
| "variables": { | |
| }, | |
| "resources": [ | |
| ], |