Skip to content

Instantly share code, notes, and snippets.

😊

Clemens Siebler csiebler

😊
Block or report user

Report or block csiebler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@csiebler
csiebler / __init__.py
Created Jun 14, 2019
Dummy Python Function
View __init__.py
import logging
import json
import azure.functions as func
def main(req: func.HttpRequest) -> func.HttpResponse:
products = [
{
"name": "Azure DevOps",
"price": 4.99
@csiebler
csiebler / TestController.cs
Created May 7, 2019
Provisioning Azure resources using Managed Identity (w/local fallback) and Azure Fluent SDK
View TestController.cs
System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.Management.Fluent;
using Microsoft.Azure.Management.ResourceManager.Fluent;
using Microsoft.Azure.Management.ResourceManager.Fluent.Authentication;
using Microsoft.Azure.Services.AppAuthentication;
using Microsoft.Rest;
@csiebler
csiebler / anomalydetection.py
Last active Apr 1, 2019
Anomaly Detection Python Example
View anomalydetection.py
import requests
import json
import pandas as pd
import matplotlib.pyplot as plt
subscription_key = "xxxxxxx"
endpoint = "https://westeurope.api.cognitive.microsoft.com"
batch_detection_url = "/anomalydetector/v1.0/timeseries/entire/detect"
latest_point_detection_url = "/anomalydetector/v1.0/timeseries/last/detect"
@csiebler
csiebler / blobexample-__init__.py
Last active Jul 17, 2019
Azure Functions v2 Python Examples
View blobexample-__init__.py
import logging
import azure.functions as func
def main(inputBlob: func.InputStream, outputBlob: func.Out[str]):
logging.info(f"Blob trigger executed!")
logging.info(f"Blob Name: {inputBlob.name} ({inputBlob.length}) bytes")
logging.info(f"Full Blob URI: {inputBlob.uri}")
output = "Hello World!"
@csiebler
csiebler / ai-ml-learning-paths.md
Last active Feb 8, 2019
AI & ML Learning Paths for Azure Users
View ai-ml-learning-paths.md

Introduction

This document gives a brief overview on most of Microsoft's AI and ML service offerings. The provided resources should help you with your first steps in each area and can be used as an initial learning path. Please note that this document does not make any claims of being complete, or up-to-date in terms of the available AI/ML-related services on Azure.

Cognitive Services

What is it?

  • Pre-built Machine Learning Models, published as an API. Infuse your apps, websites and bots with intelligent algorithms to see, hear, speak, understand and interpret your user needs through natural methods of communication. Cognitive Services provide the following capabilities:

cognitive_services

View voting-app.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: azure-vote-back
spec:
replicas: 1
template:
metadata:
labels:
app: azure-vote-back
@csiebler
csiebler / app.js
Created May 4, 2018
Suggested Actions for Bot Service with Node.js
View app.js
bot.dialog('/', [
function (session) {
var msg = new builder.Message(session)
.text("Hello, I can help you with:")
.suggestedActions(
builder.SuggestedActions.create(
session, [
builder.CardAction.imBack(session, "Option 1", "Something 1"),
builder.CardAction.imBack(session, "Option 2", "Something 2"),
builder.CardAction.imBack(session, "Option 3", "Something 3")]
@csiebler
csiebler / app.js
Created Feb 19, 2018
Bot Service Node.js example
View app.js
var restify = require('restify');
var builder = require('botbuilder');
var botbuilder_azure = require("botbuilder-azure");
// Setup Restify Server
var server = restify.createServer();
server.listen(process.env.port || process.env.PORT || 3978, function () {
console.log('%s listening to %s', server.name, server.url);
});
View replication.xml
<ReplicationConfiguration>
<Rule>
<Status>Enabled</Status>
<Prefix></Prefix>
<Destination>
<Bucket>arn:aws:s3:::sgws11-rocks</Bucket>
</Destination>
</Rule>
</ReplicationConfiguration>
View Dockerfile
# Take the offical registry image in version 2.6
FROM registry:2.6
# Copy over the StorageGRID self-signed certificate and Root CA, then update them
COPY root-ca.pem sgws-cert.pem /usr/local/share/ca-certificates/
RUN update-ca-certificates
EXPOSE 5000 5001
ENTRYPOINT ["registry"]
You can’t perform that action at this time.