Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Working on it...

Vardhaman Deshpande vman

👨‍💻
Working on it...
Block or report user

Report or block vman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View TeamsBotPersonalMessage.cs
using Microsoft.Bot.Builder;
using Microsoft.Bot.Connector;
using Microsoft.Bot.Connector.Authentication;
using Microsoft.Bot.Schema;
using Microsoft.Bot.Schema.Teams;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
View TeamsBotTopLevelActivityWithMention.cs
using Microsoft.Bot.Builder;
using Microsoft.Bot.Connector;
using Microsoft.Bot.Connector.Authentication;
using Microsoft.Bot.Schema;
using Microsoft.Bot.Schema.Teams;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
View TeamsBotTopLevelActivity.cs
using Microsoft.Bot.Builder;
using Microsoft.Bot.Connector;
using Microsoft.Bot.Connector.Authentication;
using Microsoft.Bot.Schema;
using Microsoft.Bot.Schema.Teams;
using System;
using System.Threading.Tasks;
namespace Teams.Bot.Conversations
{
View Graph.Net.SDK.SPO.Thumbnail.cs
using Microsoft.Graph;
using Microsoft.Identity.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace Graph.SPO.Thumbnails
{
View GraphThumbnails.md

https://graph.microsoft.com/v1.0/sites/your-site-id/lists/Site%20Pages/drive/root:/MySPOModernPage.aspx:?expand=thumbnails&select=thumbnails/large

View ConsumerWebPartReactComponent.tsx
import * as React from 'react';
import { IHelloWorldProps } from './IHelloWorldProps';
import { CustomOfficeUiFabricLibrary, ButtonComponent } from 'spfx-lib-ouifr';
export default class HelloWorld extends React.Component<IHelloWorldProps, {}> {
private myInstance;
constructor(props){
View index.ts
export { CustomOfficeUiFabricLibrary } from './libraries/customOfficeUiFabric/CustomOfficeUiFabricLibrary';
export { ButtonComponent } from './libraries/customOfficeUiFabric/ButtonComponent';
View config.json
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"custom-office-ui-fabric-library": {
"components": [
{
"entrypoint": "./lib/index.js",
"manifest": "./src/libraries/customOfficeUiFabric/CustomOfficeUiFabricLibrary.manifest.json"
}
View ButtonComponent.tsx
import * as React from 'react';
import { DefaultButton, Label, PrimaryButton } from 'office-ui-fabric-react';
interface IButtonComponentProps {
primaryButtonText: string;
defaultButtonText: string;
}
export class ButtonComponent extends React.Component<IButtonComponentProps, {}> {
public render(): JSX.Element {
@vman
vman / SPFxServiceScope.md
Last active Apr 14, 2019
Tech Note: ServiceScope API
View SPFxServiceScope.md
You can’t perform that action at this time.