Skip to content

Instantly share code, notes, and snippets.

Muhammad Sheraz Lodhi sherazlodhi

Block or report user

Report or block sherazlodhi

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
@sherazlodhi
sherazlodhi / delete.cs
Last active Jun 20, 2018
Delete All Empty folders sharepoint
View delete.cs
List < SPFolder > emptyDirectories = new List < SPFolder > ();
public void DeleteEmpty() {
string spsiteURL = "";
string listName = "";
using(SPSite site = new SPSite(spsiteURL) {
using(SPWeb web = site.OpenWeb())
if (web != null)
View Package.json
{
"name": "dialogflowFirebaseFulfillment",
"description": "This is the default fulfillment for a Dialogflow agents using Cloud Functions for Firebase",
"version": "0.0.1",
"private": true,
"license": "Apache Version 2.0",
"author": "Google Inc.",
"engines": {
"node": "~6.0"
},
View Latest Code
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
// for Dialogflow fulfillment library docs, samples, and to report issues
'use strict';
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
const { BrowseCarousel,RichResponse,BrowseCarouselItem,Button,BasicCard } = require('actions-on-google');
View dialogflow
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
// for Dialogflow fulfillment library docs, samples, and to report issues
'use strict';
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
// Copyright 2017-2018, Google, Inc.
View webhook firebas
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
// for Dialogflow fulfillment library docs, samples, and to report issues
'use strict';
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
const {
dialogflow,
BasicCard,
View extend.js
"use strict";
class Rectangle {
constructor(length,width) {
this.length = length;
this.width = width;
}
area() {
console.log(this.width * this.length);
View static.js
class Student(){
constructor(id,name){
this.id =id;
this.name = name;
}
static totalMarks(marks1,marks2,marks3,marks4){
return marks1+marks2+marks3+marks4;
}
}
View classexpression.js
var Student = class {
constructor (id,name){
this.id = id;
this.name = name;
}
}
View test.js
class Student(){
constructor(id,name){
this.id =id;
this.name = name;
}
}
You can’t perform that action at this time.