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
# Ensure that nodejs is installed on your system | |
# Install yeoman globally | |
npm install yo -g | |
# on unix systems or macs you should use sudo when installing global packages | |
sudo npm install yo -g #MAC/LINUX | |
# Install generator globally | |
npm install generator-sharecoffee-addon -g |
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
myObject = | |
foo: 'bar' | |
isThisAwesome: true | |
requiresLessKeystrokes: true | |
complex: | |
ifYouAreInterestedIn: true | |
stillReadable: true | |
caption: 'CoffeeScript' | |
compilesTo: 'JavaScript' | |
cost: 0 |
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
# install sass on windows | |
gem install sass | |
# ensure root permissions on -ix systems using sudo | |
sudo gem install sass | |
# check the installation by querying for the current SASS version | |
sass -v |
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
window.MyAngularApp.service 'userProfilesService', ['$http', ($http) -> | |
loadMyProfile: (onSuccess, onError) -> | |
$http ShareCoffee.REST.build.read.for.angularJS | |
url: ShareCoffee.Url.GetMyProperties | |
.success onSuccess | |
.error onError | |
loadProfilePropertiesForUser: (accountName, onSuccess, onError) -> | |
properties = new ShareCoffee.UserProfileProperties(ShareCoffee.Url.GetUserProfileProperty, accountName, 'WorkEmail') |
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
// Load the AppWebUrl (default implementation) | |
var appWebUrl = ShareCoffee.Commons.getAppWebUrl(); | |
// provide a custom load function for loading the AppWebUrl | |
ShareCoffee.Commons.loadAppWebUrlFrom = function(){ | |
$.ajax({url: 'Context/AppWebUrl', type: 'GET', async: false}).responseJSON; | |
}; | |
var appWebUrl = ShareCoffee.Commons.getAppWebUrl(); |
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
internal class ContactsRepository : IContactsRepository<IContact> | |
{ | |
private ExchangeClient _exchangeClient; | |
private const string ExchangeResourceId = "https://outlook.office365.com"; | |
private const string ExchangeServiceRoot = "https://outlook.office365.com/ews/odata"; | |
private const int PageSize = 50; | |
private async Task<ExchangeClient> EnsureExchangeClient() | |
{ | |
if (_exchangeClient != null) |
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
(function (window, undefined) { | |
"use strict"; | |
var $ = window.jQuery; | |
var document = window.document; | |
// SPHostUrl parameter name | |
var SPHostUrlKey = "SPHostUrl"; |
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 Xamarin.Forms; | |
[Register ("AppDelegate")] | |
public partial class AppDelegate : UIApplicationDelegate | |
{ | |
UIWindow window; | |
public override bool FinishedLaunching (UIApplication app, NSDictionary options) | |
{ | |
Forms.Init (); |
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
// pass querytext, selectproperties, querytemplate to the ctor | |
var properties = new ShareCoffee.QueryProperties(); | |
// or set them directly on the properties object | |
properties.queryText = "Office 365"; | |
properties.rowLimit = 100; | |
properties.startRow = 50; | |
// either set on properties Object or use jQuery's API chain | |
properties.onSuccess = function(data){ |
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
a{ | |
margin-right:0px; | |
} |
OlderNewer