Skip to content

Instantly share code, notes, and snippets.

Avatar
🖖
Cloud for all

Carlos Mendible cmendible

🖖
Cloud for all
View GitHub Profile
@cmendible
cmendible / Roslyn.CodeGeneration.Program.cs
Created Aug 16, 2017
Create a class with dotnet core and roslyn with using statements outside the namespace
View Roslyn.CodeGeneration.Program.cs
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Roslyn.CodeGeneration
{
public class Program
{
public static void Main(string[] args)
@cmendible
cmendible / vCardQRCode.csx
Created Aug 28, 2016
Create vCard QR Codes using Azure Functions
View vCardQRCode.csx
#r "System.Drawing"
#r "QRCoder.dll"
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using QRCoder;
@cmendible
cmendible / VersionTelemetryInitializer.cs
Last active Oct 28, 2020
Application Insights Telemetry Initializer to send the application version and a custom "tags" property
View VersionTelemetryInitializer.cs
namespace Insights
{
using System.Configuration;
using System.Linq;
using System.Reflection;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Extensibility;
/// <summary>
/// Version TelemetryInitializer