Skip to content

Instantly share code, notes, and snippets.

View fabienmw's full-sized avatar
💭
Learning new tech everyday

Fabien fabienmw

💭
Learning new tech everyday
View GitHub Profile
using PnP.Framework;
using PnP.Framework.Modernization.Publishing;
using PnP.Framework.Authentication;
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
namespace SharePointFileUpload
{
@fabienmw
fabienmw / DirectoryProcessor.cs
Created September 25, 2024 06:48
Process directories and sub directories
using System;
namespace SPGIntegration.API.Workers;
public static class DirectoryProcessor
{
// Given a parent directory write a function that will loop through the sub directories and convert each file in the directory to a byte[] array
public static void ConvertFilesToByteArrays(string parentDirectory)
{
try
@fabienmw
fabienmw / CarouselIndicators.cs
Created July 14, 2017 08:54 — forked from 15mgm15/CarouselIndicators.cs
Xamarin.Forms Carousel View Indicators
public class CarouselIndicators : Grid
{
private ImageSource UnselectedImageSource = null;
private ImageSource SelectedImageSource = null;
private readonly StackLayout _indicators = new StackLayout() { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.CenterAndExpand };
public CarouselIndicators()
{
this.HorizontalOptions = LayoutOptions.CenterAndExpand;
this.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });