This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace OutlookFolderIdGrabber | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
using (var application = new NetOffice.OutlookApi.Application()) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
setInterval(function() { | |
try { | |
var calendar = SP.UI.ApplicationPages.CalendarInstanceRepository.firstInstance(); // Get the first calendar instance on the page | |
if (calendar) { | |
calendar.refreshItems(); // async refresh of calendar items | |
} | |
} | |
catch (e) { | |
// ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var calendars = []; | |
var d = SP.UI.ApplicationPages.CalendarInstanceRepository.$o_0; | |
for (var k in d) { | |
calendars.push(d[k]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[regex]::Matches((git ls-remote origin refs/heads/main), "^([\w\d]*)").Value -eq (git rev-parse HEAD) |