Skip to content

Instantly share code, notes, and snippets.

View giuleon's full-sized avatar
☁️
cloud

Giuliano De Luca giuleon

☁️
cloud
View GitHub Profile
@giuleon
giuleon / Doughnut.json
Created December 8, 2023 16:32
SharePoint Doughnut List View
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"hideColumnHeader": true,
"hideSelection": true,
"rowFormatter": {
"elmType": "div",
"style": {
"display": "flex",
"align-items": "flex-end",
"justify-content": "center",
@giuleon
giuleon / parameters.json
Created April 18, 2020 12:49
This is a simple ARM Template parameters for a Logic App
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workflows_PoC_CI_CD_name": {
"value": "PoC-CI-CD"
},
"LogicAppLocation": {
"value": "westeurope"
},
@giuleon
giuleon / template.json
Created April 10, 2020 12:05
This is a simple ARM Template for a Logic App
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workflows_PoC_CI_CD_name": {
"type": "String"
},
"connections_outlook_externalid": {
"type": "String"
},
@giuleon
giuleon / addToQueueStorageWithdelay.cs
Created February 15, 2020 14:40
This snippet demonstrates how to delay the visibility of a message in an Azure Storage Queue
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Microsoft.Azure.Storage.Queue;
@giuleon
giuleon / DeploySPFxToO365CDN.ps1
Last active October 16, 2017 08:48
Automated deployment of your SharePoint Framework solution to Office 365 CDN
#################
# Configuration #
#################
$cdnSite = "https://giuleon.sharepoint.com/" # => CDN SharePoint site
$cdnLib = "cdn/SPFx-deploy" # => Document library and eventual folders
#######
# End #
#######
Write-Host ************************************************************************************** -ForegroundColor Yellow
@giuleon
giuleon / SharePoint Framework Field Customizer - Toggle
Created July 1, 2017 13:08
SharePoint Framework field customizer - Office UI Fabric toggle and pnp js core library in action
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Log } from '@microsoft/sp-core-library';
import { override } from '@microsoft/decorators';
import {
CellFormatter,
BaseFieldCustomizer,
IFieldCustomizerCellEventParameters
} from '@microsoft/sp-listview-extensibility';
@giuleon
giuleon / GoogleMapsTracking.cs
Last active May 2, 2017 06:26
Azure C# Function retrieving the geolocation by latitude and longitude
#r "Newtonsoft.Json"
using System.Net;
using System.IO;
using Newtonsoft.Json;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
log.Info("C# HTTP trigger function processed a request.");