This file contains hidden or 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
export enum TeamsTheme { | |
default, | |
dark, | |
contrast | |
} | |
export class ThemeManager { | |
public static applyTeamsTheme(teamsTheme: TeamsTheme) { | |
let theme = { | |
name: "Teams", | |
palette: {} |
This file contains hidden or 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
{ | |
"AzureAd": { | |
// Azure cloud instance among: | |
// - "https://login.microsoftonline.com/" for Azure public cloud | |
// - "https://login.microsoftonline.us/" for Azure US government | |
// - "https://login.microsoftonline.de/" for Azure AD Germany | |
// - "https://login.chinacloudapi.cn/" for Azure AD China operated by 21Vianet | |
"Instance": "https://login.microsoftonline.com/", | |
// Azure AD audience among: |
This file contains hidden or 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
protected override async Task ExecuteAsync(CancellationToken stoppingToken) | |
{ | |
var tenantIds = new List<string>{ | |
"1448f51b-234d-123345-86c8-0f6a634bbbb1", | |
"2448f51b-234d-123345-86c8-0f6a634bbbb2", | |
"3448f51b-234d-123345-86c8-0f6a634bbbb3", | |
"4448f51b-234d-123345-86c8-0f6a634bbbb4", | |
"5448f51b-234d-123345-86c8-0f6a634bbbb5" | |
}; |
This file contains hidden or 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
https://graph.microsoft.com/v1.0/me/events/AQMkADU2OWFjYTFjLWNkMGYtNDdlNS1hNDIxLWIxYjlmYWNhYmE5YQBGAAADqyJu-WyzJk6m5v0MbSs7lwcASdXmMkSN8kCNtzTsQ4x1lwAAAgENAAAASdXmMkSN8kCNtzTsQ4x1lwAEdsjaqgAAAA==?$expand=singleValueExtendedProperties($filter=id eq 'String {66f5a359-4659-4830-9070-00040ec6ac6e} Name Fun') |
This file contains hidden or 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
public class HtmlHelper | |
{ | |
string _attrib = string.Empty; | |
public string AddAttribute(string source, string tagName, string attrib) | |
{ | |
_attrib = attrib; | |
string term = "<" + tagName + " [^>]+>"; |
This file contains hidden or 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; | |
using Microsoft.Exchange.WebServices.Data; | |
namespace Exchange101 | |
{ | |
class Ex15_SyncMailboxes_CS | |
{ | |
// This sample is for demonstration purposes only. Before you run this sample, make sure that the code meets the coding requirements of your organization. | |
static ExchangeService service = Service.ConnectToService(UserDataFromConsole.GetUserData(), new TraceListener()); |
This file contains hidden or 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
//Authorization popup window code | |
function ShowAuthWindow(options) | |
{ | |
console.log('ee'); | |
options.windowName = options.windowName || 'ConnectWithOAuth'; // should not include space for IE | |
options.windowOptions = options.windowOptions || 'location=0,status=0,width=800,height=400'; | |
options.callback = options.callback || function(){ window.location.reload(); }; | |
var that = this; | |
console.log(options.path); | |
that._oauthWindow = window.open(options.path, options.windowName, options.windowOptions); |
This file contains hidden or 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
Product product = new Product | |
{ | |
ExpiryDate = new DateTime(2010, 12, 20, 18, 1, 0, DateTimeKind.Utc), | |
Name = "Widget", | |
Price = 9.99m, | |
Sizes = new[] {"Small", "Medium", "Large"} | |
}; | |
string json = | |
JsonConvert.SerializeObject( |
This file contains hidden or 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 link = $("<a />"); | |
link.appendTo("body"); | |
link.attr("id", "csvDwnLink"); | |
window.URL = window.URL || window.webkitURL; | |
var csv = "\ufeff" + "col1;col2;col3", | |
blob = new window.Blob([csv], {type: 'text/csv, charset=UTF-8'}), | |
csvUrl = window.URL.createObjectURL(blob), | |
filename = 'export.csv'; |
This file contains hidden or 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
http://tobyho.com/2010/11/22/javascript-constructors-and/ |
NewerOlder