Skip to content

Instantly share code, notes, and snippets.

@jameshoward
jameshoward / Add required attendee.OUTLOOK.yaml
Created November 17, 2020 09:06
Adds a required attendee as soon as the script is executed
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);
});
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 March 30, 2017 14:06
FormData version of MooTools' Request.JSON
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 March 6, 2013 11:31
MooTools conditional class add/remove function
Element.implement({
conditionalClass: function(className, condition) {
if (condition) {
this.addClass(className);
} else {
this.removeClass(className);
}
}