Skip to content

Instantly share code, notes, and snippets.

View krusli's full-sized avatar

Kenneth Aloysius krusli

View GitHub Profile
@krusli
krusli / Sample.cs
Created April 8, 2022 12:28
PnP Framework Interactive Auth for SharePoint Online/365 - Simple Sample
using System;
using PnP.Framework;
/* Reference:
Auth
- https://www.inkeysolutions.com/blogs/secure-authentication-of-sharepoint-with-pnp-framework-with-ccode/
- https://knowledge-junction.com/2021/01/25/m365-sharepoint-online-csom-getting-sharepoint-client-context-using-pnp-framework-in-net-core-application/
Reading Changelog
- https://www.schaeflein.net/reading-the-sharepoint-change-log-from-csom/
<div class="row" cdkDropListGroup>
<!-- NOTE that each item gets its own cdkDropList, then we treat it as a series of different cdkDropLists. -->
<div *ngFor="let item of items; index as i"
class="col-6 col-md-4 col-lg-3 mb-3"
cdkDropList
[cdkDropListData]="i"
cdkDropListOrientation="horizontal">
<app-item [item]="item" cdkDrag (cdkDragEntered)="entered($event)" (cdkDragEnded)="ended($event)" [cdkDragData]="i">
</app-item>
</div>
@krusli
krusli / ymd96.c
Last active January 29, 2018 15:52
/*
Copyright 2017 Luiz Ribeiro <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
/*
Copyright 2017 Luiz Ribeiro <[email protected]>
Modified 2018 by Kenneth <github.com/krusli>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@krusli
krusli / jj40.c
Last active January 11, 2018 11:56
(somewhat hacky) backlighting code
/*
Copyright 2017 Luiz Ribeiro <[email protected]>
Modified by krusli <github.com/krusli>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,