Skip to content

Instantly share code, notes, and snippets.

View Jandev's full-sized avatar

Jan de Vries Jandev

View GitHub Profile
@Jandev
Jandev / add_links.py
Created September 2, 2025 10:22
Create weekly link archive for Hugo blog
@Jandev
Jandev / assistant.py
Last active October 23, 2024 07:26
Manufacturing AI Assistant with Python
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
@Jandev
Jandev / azure-function-posting-to-teams.cs
Created March 2, 2019 13:32
Azure Function implementation to send a message to Teams
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>();
{
"$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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
},
"variables": {
},
"resources": [
],