Skip to content

Instantly share code, notes, and snippets.

@jameshoward
jameshoward / Add required attendee.OUTLOOK.yaml
Created Nov 17, 2020
Adds a required attendee as soon as the script is executed
View Add required attendee.OUTLOOK.yaml
name: Add required attendee
description: Adds a required attendee as soon as the script is executed
host: OUTLOOK
api_set: {}
script:
content: >
Office.context.mailbox.item.requiredAttendees.addAsync(["test@example.com"],
(addResult) => {
console.log(addResult);
});
View components.x-option.js
import Ember from 'ember';
import XSelectComponent from './x-select';
var isArray = Ember.isArray;
/**
* Used to wrap a native `<option>` tag and associate an object with
* it that can be bound. It can only be used in conjuction with a
* containing `x-select` component
*
@jameshoward
jameshoward / gist:8298406
Last active Mar 30, 2017
FormData version of MooTools' Request.JSON
View gist:8298406
Request.FormData = new Class({
Extends : Request.JSON,
send: function(formData) {
this.options.isSuccess = this.options.isSuccess || this.isSuccess;
this.running = true;
var xhr = this.xhr;
@jameshoward
jameshoward / gist:5098702
Created Mar 6, 2013
MooTools conditional class add/remove function
View gist:5098702
Element.implement({
conditionalClass: function(className, condition) {
if (condition) {
this.addClass(className);
} else {
this.removeClass(className);
}
}