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
| Instructions for AI coding assistants to help them do a better job creating basic SharePoint Embedded apps. | |
| SharePoint Embedded is a API only version of SharePoint that uses FileStorageContainers as a new file storage primitive. The API that’s used is the Microsoft Graph API. A FileStorageContainer typically supports the same file related functions as a drive. And documents or files inside a FileStorageContainer behave the same as a drive item. | |
| Look and Feel | |
| • Unless instructed otherwise, you should create a modern webapp with san serif fonts and minimalist ux. | |
| SharePoint Embedded | |
| • Overview - https://learn.microsoft.com/en-us/sharepoint/dev/embedded/overview | |
| Authentication Information | |
| • Use MSAL to create a public client application. | |
| • The user should provide you a client id and a tenant id. | |
| • They should have already configured the client to support the require oauth scopes, including FileStorageContainer.selected. |
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://bit.do/lightningdays | |
| http://developerforce.github.io/lightning-connect-tutorial | |
| http://developerforce.github.io/lightning-process-builder-tutorial | |
| http://developerforce.github.io/lightning-components-tutorial | |
| http://developerforce.github.io/lightning-app-builder-tutorial |
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
| /* | |
| by Reid Carlberg | |
| Last update: November 20, 2014 | |
| Questions? Ask me on Twitter. https://Twitter.com/ReidCarlberg | |
| Basic use case: monitor range finder. When something is close, snap a picture, post to Salesforce Chatter. | |
| Sign up for a free developer edition to try this code | |
| http://developer.salesforce.com/signup | |
| You'll need to setup a Connected App in your developer edition for OAuth2 stuff. Detailed instructions: |
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 http = require('http'); | |
| var request = require('request'); | |
| var nforce = require('nforce'); | |
| var http = require('http'), | |
| faye = require('faye'); | |
| var client; | |
| //salesforce settings | |
| var sfuser = "user@some.name"; |
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 http = require("http"); | |
| var Cylon = require('cylon'); | |
| var copter1 = Cylon.robot({ | |
| connection: {name: 'ardrone', adaptor: 'ardrone', port: '192.168.1.1'}, | |
| device: {name: 'drone', driver: 'ardrone'}, | |
| reidStart: function(my) { | |
| console.log("reidStart"); | |
| my.drone.takeoff(); |
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 http = require('http'); | |
| var nforce = require('nforce'); | |
| var http = require('http'), | |
| faye = require('faye'); | |
| var client; | |
| var AckCounter = 0; | |
| console.log("Welcome to the Drone interface"); |
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 hue = require("node-hue-api"), | |
| HueApi = hue.HueApi, | |
| lightState = hue.lightState; | |
| var nforce = require('nforce'); | |
| var http = require('http'), | |
| faye = require('faye'); | |
| var client; | |
| var AckCounter = 0; |
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 HueApi = require("node-hue-api").HueApi; | |
| var hostname = "192.168.1.103", | |
| newUserName = null // You can provide your own username value, but it is normally easier to leave it to the Bridge to create it | |
| userDescription = "device description goes here"; | |
| var displayUserResult = function(result) { | |
| console.log("Created user: " + JSON.stringify(result)); | |
| }; |
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 hue = require("node-hue-api"); | |
| var displayBridges = function(bridge) { | |
| console.log("Hue Bridges Found: " + JSON.stringify(bridge)); | |
| }; | |
| // -------------------------- | |
| // Using a promise | |
| hue.locateBridges().then(displayBridges).done(); |
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 i2c = require('i2c'); | |
| var device1 = new i2c(0x18, {device: '/dev/i2c-1', debug: false}); | |
| device1.setAddress(0x4); | |
| var AckCounter = 0; | |
| var nforce = require('nforce'); | |
| var http = require('http'), | |
| faye = require('faye'); |
NewerOlder