Created
May 10, 2017 22:07
-
-
Save WrathOfZombies/8389babfc988892278c19418b07d60ee to your computer and use it in GitHub Desktop.
Shared with Script Lab
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
name: Blank snippet - 3 | |
description: '' | |
author: WrathOfZombies | |
host: WEB | |
api_set: {} | |
script: | |
content: |- | |
$("#run").click(run); | |
function run() { | |
let result = incrementalFilter(emoticonList, [ | |
'smile', | |
'beer', | |
'doh', | |
'bomb|heart|nod|nerdy|ok|highfive' | |
], (value, index) => index, true); | |
console.log(result); | |
} | |
/** | |
* Filtering function that picks elements from the source and returns the filtered subset. | |
* Keeps reducing the search space of every subsequent iteration. | |
* NOTE: we are using loops for performance (https://jsperf.com/reduce-vs-loop/2) | |
* | |
* @param source The source that needs to be filtered. Can be either an array of strings, | |
* an array of objects (need to specify key) or an object of objects. | |
* @param filters The filters that need to be applied can be an array of strings or RegExp | |
* @param key If source is an object of objects or array of objects, then the key to pick | |
* @param inclusiveMode Invert the filter to return matching results instead. | |
*/ | |
function incrementalFilter(items: any, filters: string[], selector?: (value, index) => string, inclusiveMode?: boolean) { | |
const arrayMode = Array.isArray(items); | |
// Clone items | |
let source = arrayMode ? [...items] : { ...items }; | |
// If runnning in an inclusive mode | |
// Then, | |
// If items is an array | |
// Then start with an empty array | |
// Else start with an empty object | |
// Else start with the source | |
let sink = inclusiveMode ? arrayMode ? [] : {} : source; | |
for (let filter of filters) { | |
// If running inclusiveMode | |
// Then use the source as the input | |
// Else use the result from the previous iteration. | |
let input = inclusiveMode ? source : sink; | |
const result = this._filter(input, (value, index) => { | |
const item = selector ? value : selector(value, index); | |
const regex = new RegExp(filter, 'i'); | |
const predicate = regex.test(item); | |
return inclusiveMode ? predicate : !predicate; | |
}); | |
// If running inclusive mode | |
// Then add the result to the sink and update | |
// the source with the remainder of items | |
// Else update the sink with the result of the filter | |
if (inclusiveMode) { | |
if (arrayMode) { | |
sink = [...sink, ...result.filtered]; | |
} else { | |
sink = { ...sink, ...result.filtered }; | |
} | |
source = result.rest; | |
} else { | |
sink = result.filtered; | |
} | |
} | |
} | |
/** | |
* Filter to reduce subset of results based on predicate | |
* NOTE: This is designed to be synchronous in nature, | |
* please ensure the predicate are always synchronous else | |
* the loop will pass the wrong context. | |
* | |
* @param input Object or an array | |
* @param predicate lambda that returns a boolean and takes the current value as input | |
*/ | |
function _filter<T>(input: T, predicate: (value: any, index: string | number) => boolean) { | |
let filtered, rest; | |
if (Array.isArray(input)) { | |
filtered = []; | |
rest = []; | |
for (let i = 0, l = input.length; i < l; i++) { | |
let bucket = predicate(input[i], i) ? filtered : rest; | |
bucket.concat(input[i]); | |
} | |
return { filtered, rest }; | |
} else { | |
filtered = {}; | |
rest = {}; | |
for (let index of Object.keys(input)) { | |
let bucket = predicate(input[index], index) ? filtered : rest; | |
bucket[index] = input[index]; | |
} | |
} | |
return { filtered, rest }; | |
} | |
var emoticonList = { | |
"smile": { | |
"unicode": "smile", | |
"unicode_alternates": ":smile:", | |
"name": "emoticon_smile_name", | |
"shortname": "(smile)", | |
"shortcuts": ":),:-),:=),(smile),(Smile)", | |
"category": "emoticons", | |
"keywords": "emoticon_smile_keywords", | |
"link": "smile_20.png", | |
"linkAnim": "smile_20_anim.png" | |
}, | |
"laugh": { | |
"unicode": "laugh", | |
"unicode_alternates": ":laughing:", | |
"name": "emoticon_laugh_name", | |
"shortname": "(laugh)", | |
"shortcuts": ":D,:-D,:=D,:d,:-d,:=d,(laugh),(Laugh),:>,:->,(lol),(LOL),(Lol)", | |
"category": "emoticons", | |
"keywords": "emoticon_laugh_keywords", | |
"link": "laugh_20.png", | |
"linkAnim": "laugh_20_anim.png" | |
}, | |
"heart": { | |
"unicode": "heart", | |
"unicode_alternates": ":heart:", | |
"name": "emoticon_heart_name", | |
"shortname": "(heart)", | |
"shortcuts": "(heart),(Heart),<3", | |
"category": "emoticons", | |
"keywords": "emoticon_heart_keywords", | |
"link": "heart_20.png", | |
"linkAnim": "heart_20_anim.png" | |
}, | |
"kiss": { | |
"unicode": "kiss", | |
"unicode_alternates": ":kiss:", | |
"name": "emoticon_kiss_name", | |
"shortname": "(kiss)", | |
"shortcuts": "(kiss),(Kiss),:*,:-*,:=*,(xo)", | |
"category": "emoticons", | |
"keywords": "emoticon_kiss_keywords", | |
"link": "kiss_20.png", | |
"linkAnim": "kiss_20_anim.png" | |
}, | |
"sad": { | |
"unicode": "sad", | |
"unicode_alternates": ":slight_frown:", | |
"name": "emoticon_sad_name", | |
"shortname": "(sad)", | |
"shortcuts": ":(,:-(,:=(,(sad),(Sad),:<,:-<", | |
"category": "emoticons", | |
"keywords": "emoticon_sad_keywords", | |
"link": "sad_20.png", | |
"linkAnim": "sad_20_anim.png" | |
}, | |
"tongueout": { | |
"unicode": "tongueout", | |
"unicode_alternates": ":tongue:", | |
"name": "emoticon_tongueout_name", | |
"shortname": "(tongueout)", | |
"shortcuts": ":P,:-P,:=P,:p,:-p,:=p,(tongueout),(Tongueout)", | |
"category": "emoticons", | |
"keywords": "emoticon_tongueout_keywords", | |
"link": "tongueout_20.png", | |
"linkAnim": "tongueout_20_anim.png" | |
}, | |
"wink": { | |
"unicode": "wink", | |
"unicode_alternates": ":wink:", | |
"name": "emoticon_wink_name", | |
"shortname": "(wink)", | |
"shortcuts": ";),;-),;=),(wink),(Wink)", | |
"category": "emoticons", | |
"keywords": "emoticon_wink_keywords", | |
"link": "wink_20.png", | |
"linkAnim": "wink_20_anim.png" | |
}, | |
"cry": { | |
"unicode": "cry", | |
"unicode_alternates": ":cry:", | |
"name": "emoticon_cry_name", | |
"shortname": "(cry)", | |
"shortcuts": ";(,;-(,;=(,(cry),(Cry),:'(", | |
"category": "emoticons", | |
"keywords": "emoticon_cry_keywords", | |
"link": "cry_20.png", | |
"linkAnim": "cry_20_anim.png" | |
}, | |
"inlove": { | |
"unicode": "inlove", | |
"unicode_alternates": ":heart_eyes:", | |
"name": "emoticon_inlove_name", | |
"shortname": "(inlove)", | |
"shortcuts": "(inlove),(Inlove),(love),(Love),:],:-]", | |
"category": "emoticons", | |
"keywords": "emoticon_inlove_keywords", | |
"link": "inlove_20.png", | |
"linkAnim": "inlove_20_anim.png" | |
}, | |
"hug": { | |
"unicode": "hug", | |
"unicode_alternates": ":hugging:", | |
"name": "emoticon_hug_name", | |
"shortname": "(hug)", | |
"shortcuts": "(hug),(Hug),(bear),(Bear)", | |
"category": "emoticons", | |
"keywords": "emoticon_hug_keywords", | |
"link": "hug_20.png", | |
"linkAnim": "hug_20_anim.png" | |
}, | |
"cwl": { | |
"unicode": "cwl", | |
"unicode_alternates": ":joy:", | |
"name": "emoticon_cwl_name", | |
"shortname": "(cwl)", | |
"shortcuts": "(cwl),(Cwl),(cryingwithlaughter),(Cryingwithlaughter)", | |
"category": "emoticons", | |
"keywords": "emoticon_cwl_keywords", | |
"link": "cwl_20.png", | |
"linkAnim": "cwl_20_anim.png" | |
}, | |
"lips": { | |
"unicode": "lips", | |
"unicode_alternates": ":lips:", | |
"name": "emoticon_lips_name", | |
"shortname": "(lips)", | |
"shortcuts": "(lips),(Lips)", | |
"category": "emoticons", | |
"keywords": "emoticon_lips_keywords", | |
"link": "lips_20.png", | |
"linkAnim": "lips_20_anim.png" | |
}, | |
"blush": { | |
"unicode": "blush", | |
"unicode_alternates": ":blush:", | |
"name": "emoticon_blush_name", | |
"shortname": "(blush)", | |
"shortcuts": ":$,:-$,:=$,:\">,(blush),(Blush)", | |
"category": "emoticons", | |
"keywords": "emoticon_blush_keywords", | |
"link": "blush_20.png", | |
"linkAnim": "blush_20_anim.png" | |
}, | |
"surprised": { | |
"unicode": "surprised", | |
"unicode_alternates": ":open_mouth:", | |
"name": "emoticon_surprised_name", | |
"shortname": "(surprised)", | |
"shortcuts": ":O,:-O,:=O,:o,:-o,:=o,(surprised),(Surprised)", | |
"category": "emoticons", | |
"keywords": "emoticon_surprised_keywords", | |
"link": "surprised_20.png", | |
"linkAnim": "surprised_20_anim.png" | |
}, | |
"penguin": { | |
"unicode": "penguin", | |
"unicode_alternates": ":penguin:", | |
"name": "emoticon_penguin_name", | |
"shortname": "(penguin)", | |
"shortcuts": "(penguin),(Penguin),(dancingpenguin),(Dancingpenguin),(penguindance),(Penguindance)", | |
"category": "emoticons", | |
"keywords": "emoticon_penguin_keywords", | |
"link": "penguin_20.png", | |
"linkAnim": "penguin_20_anim.png" | |
}, | |
"yes": { | |
"unicode": "yes", | |
"unicode_alternates": ":thumbsup:", | |
"name": "emoticon_yes_name", | |
"shortname": "(yes)", | |
"shortcuts": "(y),(Y),(yes),(Yes)", | |
"category": "emoticons", | |
"keywords": "emoticon_yes_keywords", | |
"link": "yes_20.png", | |
"linkAnim": "yes_20_anim.png" | |
}, | |
"cool": { | |
"unicode": "cool", | |
"unicode_alternates": ":cool:", | |
"name": "emoticon_cool_name", | |
"shortname": "(cool)", | |
"shortcuts": "(cool),(Cool),8-),8=),B-),B=)", | |
"category": "emoticons", | |
"keywords": "emoticon_cool_keywords", | |
"link": "cool_20.png", | |
"linkAnim": "cool_20_anim.png" | |
}, | |
"rofl": { | |
"unicode": "rofl", | |
"unicode_alternates": ":laughing:", | |
"name": "emoticon_rofl_name", | |
"shortname": "(rofl)", | |
"shortcuts": "(rofl),(Rofl),(rotfl),(Rotfl)", | |
"category": "emoticons", | |
"keywords": "emoticon_rofl_keywords", | |
"link": "rofl_20.png", | |
"linkAnim": "rofl_20_anim.png" | |
}, | |
"cat": { | |
"unicode": "cat", | |
"unicode_alternates": ":cat:", | |
"name": "emoticon_cat_name", | |
"shortname": "(cat)", | |
"shortcuts": "(cat),(Cat),(@),(meow),(Meow),(kitty),(Kitty)", | |
"category": "emoticons", | |
"keywords": "emoticon_cat_keywords", | |
"link": "cat_20.png", | |
"linkAnim": "cat_20_anim.png" | |
}, | |
"monkey": { | |
"unicode": "monkey", | |
"unicode_alternates": ":monkey_face:", | |
"name": "emoticon_monkey_name", | |
"shortname": "(monkey)", | |
"shortcuts": "(monkey),(Monkey),(ape),(Ape),:(|)", | |
"category": "emoticons", | |
"keywords": "emoticon_monkey_keywords", | |
"link": "monkey_20.png", | |
"linkAnim": "monkey_20_anim.png" | |
}, | |
"hi": { | |
"unicode": "hi", | |
"unicode_alternates": ":wave:", | |
"name": "emoticon_hi_name", | |
"shortname": "(hi)", | |
"shortcuts": "(wave),(Wave),(hi),(Hi),(HI),(bye),(Bye),(BYE)", | |
"category": "emoticons", | |
"keywords": "emoticon_hi_keywords", | |
"link": "hi_20.png", | |
"linkAnim": "hi_20_anim.png" | |
}, | |
"snowangel": { | |
"unicode": "snowangel", | |
"unicode_alternates": ":snowman:", | |
"name": "emoticon_snowangel_name", | |
"shortname": "(snowangel)", | |
"shortcuts": "(snowangel),(Snowangel)", | |
"category": "emoticons", | |
"keywords": "emoticon_snowangel_keywords", | |
"link": "snowangel_20.png", | |
"linkAnim": "snowangel_20_anim.png" | |
}, | |
"flower": { | |
"unicode": "flower", | |
"unicode_alternates": ":blossom:", | |
"name": "emoticon_flower_name", | |
"shortname": "(flower)", | |
"shortcuts": "(flower),(Flower)", | |
"category": "emoticons", | |
"keywords": "emoticon_flower_keywords", | |
"link": "flower_20.png", | |
"linkAnim": "flower_20_anim.png" | |
}, | |
"giggle": { | |
"unicode": "giggle", | |
"unicode_alternates": ":joy:", | |
"name": "emoticon_giggle_name", | |
"shortname": "(giggle)", | |
"shortcuts": "(chuckle),(Chuckle),(giggle),(Giggle)", | |
"category": "emoticons", | |
"keywords": "emoticon_giggle_keywords", | |
"link": "giggle_20.png", | |
"linkAnim": "giggle_20_anim.png" | |
}, | |
"devil": { | |
"unicode": "devil", | |
"unicode_alternates": ":smiling_imp:", | |
"name": "emoticon_devil_name", | |
"shortname": "(devil)", | |
"shortcuts": "(devil),(Devil)", | |
"category": "emoticons", | |
"keywords": "emoticon_devil_keywords", | |
"link": "devil_20.png", | |
"linkAnim": "devil_20_anim.png" | |
}, | |
"party": { | |
"unicode": "party", | |
"unicode_alternates": ":tada:", | |
"name": "emoticon_party_name", | |
"shortname": "(party)", | |
"shortcuts": "(party),(Party),<O),<o),<:o)", | |
"category": "emoticons", | |
"keywords": "emoticon_party_keywords", | |
"link": "party_20.png", | |
"linkAnim": "party_20_anim.png" | |
}, | |
"worry": { | |
"unicode": "worry", | |
"unicode_alternates": ":worried:", | |
"name": "emoticon_worry_name", | |
"shortname": "(worry)", | |
"shortcuts": "(worry),(Worry),:S,:s,:-s,:-S,:=s,:=S,(worried),(Worried)", | |
"category": "emoticons", | |
"keywords": "emoticon_worry_keywords", | |
"link": "worry_20.png", | |
"linkAnim": "worry_20_anim.png" | |
}, | |
"champagne": { | |
"unicode": "champagne", | |
"unicode_alternates": ":champagne:", | |
"name": "emoticon_champagne_name", | |
"shortname": "(champagne)", | |
"shortcuts": "(champagne),(Champagne),(sparkling),(Sparkling)", | |
"category": "emoticons", | |
"keywords": "emoticon_champagne_keywords", | |
"link": "champagne_20.png", | |
"linkAnim": "champagne_20_anim.png" | |
}, | |
"sun": { | |
"unicode": "sun", | |
"unicode_alternates": ":sun_with_face:", | |
"name": "emoticon_sun_name", | |
"shortname": "(sun)", | |
"shortcuts": "(sun),(Sun)", | |
"category": "emoticons", | |
"keywords": "emoticon_sun_keywords", | |
"link": "sun_20.png", | |
"linkAnim": "sun_20_anim.png" | |
}, | |
"star": { | |
"unicode": "star", | |
"unicode_alternates": ":star:", | |
"name": "emoticon_star_name", | |
"shortname": "(star)", | |
"shortcuts": "(star),(Star)", | |
"category": "emoticons", | |
"keywords": "emoticon_star_keywords", | |
"link": "star_20.png", | |
"linkAnim": "star_20_anim.png" | |
}, | |
"polarbear": { | |
"unicode": "polarbear", | |
"unicode_alternates": ":bear:", | |
"name": "emoticon_polarbear_name", | |
"shortname": "(polarbear)", | |
"shortcuts": "(polarbear),(Polarbear),(polarbearhug),(Polarbearhug)", | |
"category": "emoticons", | |
"keywords": "emoticon_polarbear_keywords", | |
"link": "polarbear_20.png", | |
"linkAnim": "polarbear_20_anim.png" | |
}, | |
"dull": { | |
"unicode": "dull", | |
"unicode_alternates": ":unamused:", | |
"name": "emoticon_dull_name", | |
"shortname": "(dull)", | |
"shortcuts": "|-(,|(,|=(,(dull),(Dull)", | |
"category": "emoticons", | |
"keywords": "emoticon_dull_keywords", | |
"link": "dull_20.png", | |
"linkAnim": "dull_20_anim.png" | |
}, | |
"speechless": { | |
"unicode": "speechless", | |
"unicode_alternates": ":astonished:", | |
"name": "emoticon_speechless_name", | |
"shortname": "(speechless)", | |
"shortcuts": ":|,:-|,:=|,(speechless),(Speechless)", | |
"category": "emoticons", | |
"keywords": "emoticon_speechless_keywords", | |
"link": "speechless_20.png", | |
"linkAnim": "speechless_20_anim.png" | |
}, | |
"wonder": { | |
"unicode": "wonder", | |
"unicode_alternates": ":thinking_face:", | |
"name": "emoticon_wonder_name", | |
"shortname": "(wonder)", | |
"shortcuts": ":^),(wonder),(Wonder)", | |
"category": "emoticons", | |
"keywords": "emoticon_wonder_keywords", | |
"link": "wonder_20.png", | |
"linkAnim": "wonder_20_anim.png" | |
}, | |
"angry": { | |
"unicode": "angry", | |
"unicode_alternates": ":angry:", | |
"name": "emoticon_angry_name", | |
"shortname": "(angry)", | |
"shortcuts": "(angry),(Angry),:@,:-@,:=@,x(,x-(,X(,X-(,x=(,X=(,;@,;-@", | |
"category": "emoticons", | |
"keywords": "emoticon_angry_keywords", | |
"link": "angry_20.png", | |
"linkAnim": "angry_20_anim.png" | |
}, | |
"puke": { | |
"unicode": "puke", | |
"unicode_alternates": ":face_with_thermometer:", | |
"name": "emoticon_puke_name", | |
"shortname": "(puke)", | |
"shortcuts": "(puke),(Puke),:&,:-&,:=&,+o(", | |
"category": "emoticons", | |
"keywords": "emoticon_puke_keywords", | |
"link": "puke_20.png", | |
"linkAnim": "puke_20_anim.png" | |
}, | |
"facepalm": { | |
"unicode": "facepalm", | |
"unicode_alternates": ":tired_face:", | |
"name": "emoticon_facepalm_name", | |
"shortname": "(facepalm)", | |
"shortcuts": "(facepalm),(Facepalm),(fail),(Fail)", | |
"category": "emoticons", | |
"keywords": "emoticon_facepalm_keywords", | |
"link": "facepalm_20.png", | |
"linkAnim": "facepalm_20_anim.png" | |
}, | |
"sweat": { | |
"unicode": "sweat", | |
"unicode_alternates": ":sweat:", | |
"name": "emoticon_sweat_name", | |
"shortname": "(sweat)", | |
"shortcuts": "(:|,(sweat),(Sweat)", | |
"category": "emoticons", | |
"keywords": "emoticon_sweat_keywords", | |
"link": "sweat_20.png", | |
"linkAnim": "sweat_20_anim.png" | |
}, | |
"holidayspirit": { | |
"unicode": "holidayspirit", | |
"unicode_alternates": ":christmas_tree:", | |
"name": "emoticon_holidayspirit_name", | |
"shortname": "(holidayspirit)", | |
"shortcuts": "(holidayspirit),(Holidayspirit),(crazyxmas),(Crazyxmas),(crazychristmas),(Crazychristmas)", | |
"category": "emoticons", | |
"keywords": "emoticon_holidayspirit_keywords", | |
"link": "holidayspirit_20.png", | |
"linkAnim": "holidayspirit_20_anim.png" | |
}, | |
"sleepy": { | |
"unicode": "sleepy", | |
"unicode_alternates": ":sleepy:", | |
"name": "emoticon_sleepy_name", | |
"shortname": "(sleepy)", | |
"shortcuts": "|-),I-),I=),(snooze),(Snooze),(sleepy),(Sleepy)", | |
"category": "emoticons", | |
"keywords": "emoticon_sleepy_keywords", | |
"link": "sleepy_20.png", | |
"linkAnim": "sleepy_20_anim.png" | |
}, | |
"bow": { | |
"unicode": "bow", | |
"unicode_alternates": ":bow:", | |
"name": "emoticon_bow_name", | |
"shortname": "(bow)", | |
"shortcuts": "(bow),(Bow)", | |
"category": "emoticons", | |
"keywords": "emoticon_bow_keywords", | |
"link": "bow_20.png", | |
"linkAnim": "bow_20_anim.png" | |
}, | |
"makeup": { | |
"unicode": "makeup", | |
"unicode_alternates": ":lipstick:", | |
"name": "emoticon_makeup_name", | |
"shortname": "(makeup)", | |
"shortcuts": "(makeup),(Makeup),(kate),(Kate)", | |
"category": "emoticons", | |
"keywords": "emoticon_makeup_keywords", | |
"link": "makeup_20.png", | |
"linkAnim": "makeup_20_anim.png" | |
}, | |
"cash": { | |
"unicode": "cash", | |
"unicode_alternates": ":moneybag:", | |
"name": "emoticon_cash_name", | |
"shortname": "(cash)", | |
"shortcuts": "(cash),(Cash)", | |
"category": "emoticons", | |
"keywords": "emoticon_cash_keywords", | |
"link": "cash_20.png", | |
"linkAnim": "cash_20_anim.png" | |
}, | |
"lipssealed": { | |
"unicode": "lipssealed", | |
"unicode_alternates": ":zipper_mouth_face:", | |
"name": "emoticon_lipssealed_name", | |
"shortname": "(lipssealed)", | |
"shortcuts": ":x,:-x,:X,:-X,:#,:-#,:=x,:=X,:=#,(lipssealed),(Lipssealed)", | |
"category": "emoticons", | |
"keywords": "emoticon_lipssealed_keywords", | |
"link": "lipssealed_20.png", | |
"linkAnim": "lipssealed_20_anim.png" | |
}, | |
"shivering": { | |
"unicode": "shivering", | |
"unicode_alternates": ":cold_sweat:", | |
"name": "emoticon_shivering_name", | |
"shortname": "(shivering)", | |
"shortcuts": "(shivering),(Shivering),(cold),(Cold),(freezing),(Freezing)", | |
"category": "emoticons", | |
"keywords": "emoticon_shivering_keywords", | |
"link": "shivering_20.png", | |
"linkAnim": "shivering_20_anim.png" | |
}, | |
"cake": { | |
"unicode": "cake", | |
"unicode_alternates": ":birthday:", | |
"name": "emoticon_cake_name", | |
"shortname": "(cake)", | |
"shortcuts": "(cake),(Cake)", | |
"category": "emoticons", | |
"keywords": "emoticon_cake_keywords", | |
"link": "cake_20.png", | |
"linkAnim": "cake_20_anim.png" | |
}, | |
"headbang": { | |
"unicode": "headbang", | |
"unicode_alternates": ":confounded:", | |
"name": "emoticon_headbang_name", | |
"shortname": "(headbang)", | |
"shortcuts": "(headbang),(Headbang),(banghead),(Banghead)", | |
"category": "emoticons", | |
"keywords": "emoticon_headbang_keywords", | |
"link": "headbang_20.png", | |
"linkAnim": "headbang_20_anim.png" | |
}, | |
"dance": { | |
"unicode": "dance", | |
"unicode_alternates": ":dancer:", | |
"name": "emoticon_dance_name", | |
"shortname": "(dance)", | |
"shortcuts": "\o/,\:D/,\:d/,(dance),(Dance)", | |
"category": "emoticons", | |
"keywords": "emoticon_dance_keywords", | |
"link": "dance_20.png", | |
"linkAnim": "dance_20_anim.png" | |
}, | |
"wasntme": { | |
"unicode": "wasntme", | |
"unicode_alternates": ":see_no_evil:", | |
"name": "emoticon_wasntme_name", | |
"shortname": "(wasntme)", | |
"shortcuts": "(wasntme),(Wasntme),(wm),(Wm)", | |
"category": "emoticons", | |
"keywords": "emoticon_wasntme_keywords", | |
"link": "wasntme_20.png", | |
"linkAnim": "wasntme_20_anim.png" | |
}, | |
"hungover": { | |
"unicode": "hungover", | |
"unicode_alternates": ":face_with_head_bandage:", | |
"name": "emoticon_hungover_name", | |
"shortname": "(hungover)", | |
"shortcuts": "(morningafter),(Morningafter),(hungover),(Hungover)", | |
"category": "emoticons", | |
"keywords": "emoticon_hungover_keywords", | |
"link": "hungover_20.png", | |
"linkAnim": "hungover_20_anim.png" | |
}, | |
"yawn": { | |
"unicode": "yawn", | |
"unicode_alternates": ":sleeping:", | |
"name": "emoticon_yawn_name", | |
"shortname": "(yawn)", | |
"shortcuts": "(yawn),(Yawn)", | |
"category": "emoticons", | |
"keywords": "emoticon_yawn_keywords", | |
"link": "yawn_20.png", | |
"linkAnim": "yawn_20_anim.png" | |
}, | |
"gift": { | |
"unicode": "gift", | |
"unicode_alternates": ":gift:", | |
"name": "emoticon_gift_name", | |
"shortname": "(gift)", | |
"shortcuts": "(gift),(Gift)", | |
"category": "emoticons", | |
"keywords": "emoticon_gift_keywords", | |
"link": "gift_20.png", | |
"linkAnim": "gift_20_anim.png" | |
}, | |
"angel": { | |
"unicode": "angel", | |
"unicode_alternates": ":angel:", | |
"name": "emoticon_angel_name", | |
"shortname": "(angel)", | |
"shortcuts": "(angel),(Angel)", | |
"category": "emoticons", | |
"keywords": "emoticon_angel_keywords", | |
"link": "angel_20.png", | |
"linkAnim": "angel_20_anim.png" | |
}, | |
"xmastree": { | |
"unicode": "xmastree", | |
"unicode_alternates": ":christmas_tree:", | |
"name": "emoticon_xmastree_name", | |
"shortname": "(xmastree)", | |
"shortcuts": "(xmastree),(Xmastree),(christmastree),(Christmastree)", | |
"category": "emoticons", | |
"keywords": "emoticon_xmastree_keywords", | |
"link": "xmastree_20.png", | |
"linkAnim": "xmastree_20_anim.png" | |
}, | |
"brokenheart": { | |
"unicode": "brokenheart", | |
"unicode_alternates": ":broken_heart:", | |
"name": "emoticon_brokenheart_name", | |
"shortname": "(brokenheart)", | |
"shortcuts": "(brokenheart),(Brokenheart)", | |
"category": "emoticons", | |
"keywords": "emoticon_brokenheart_keywords", | |
"link": "brokenheart_20.png", | |
"linkAnim": "brokenheart_20_anim.png" | |
}, | |
"think": { | |
"unicode": "think", | |
"unicode_alternates": ":thinking:", | |
"name": "emoticon_think_name", | |
"shortname": "(think)", | |
"shortcuts": "(think),(Think),:-?,:?,:=?,*-)", | |
"category": "emoticons", | |
"keywords": "emoticon_think_keywords", | |
"link": "think_20.png", | |
"linkAnim": "think_20_anim.png" | |
}, | |
"clap": { | |
"unicode": "clap", | |
"unicode_alternates": ":clap:", | |
"name": "emoticon_clap_name", | |
"shortname": "(clap)", | |
"shortcuts": "(clap),(Clap)", | |
"category": "emoticons", | |
"keywords": "emoticon_clap_keywords", | |
"link": "clap_20.png", | |
"linkAnim": "clap_20_anim.png" | |
}, | |
"punch": { | |
"unicode": "punch", | |
"unicode_alternates": ":punch:", | |
"name": "emoticon_punch_name", | |
"shortname": "(punch)", | |
"shortcuts": "(punch),(Punch),*|,*-|", | |
"category": "emoticons", | |
"keywords": "emoticon_punch_keywords", | |
"link": "punch_20.png", | |
"linkAnim": "punch_20_anim.png" | |
}, | |
"envy": { | |
"unicode": "envy", | |
"unicode_alternates": ":angry:", | |
"name": "emoticon_envy_name", | |
"shortname": "(envy)", | |
"shortcuts": "(envy),(Envy)", | |
"category": "emoticons", | |
"keywords": "emoticon_envy_keywords", | |
"link": "envy_20.png", | |
"linkAnim": "envy_20_anim.png" | |
}, | |
"handshake": { | |
"unicode": "handshake", | |
"unicode_alternates": ":ok_hand:", | |
"name": "emoticon_handshake_name", | |
"shortname": "(handshake)", | |
"shortcuts": "(handshake),(Handshake)", | |
"category": "emoticons", | |
"keywords": "emoticon_handshake_keywords", | |
"link": "handshake_20.png", | |
"linkAnim": "handshake_20_anim.png" | |
}, | |
"nod": { | |
"unicode": "nod", | |
"unicode_alternates": ":thumbsup:", | |
"name": "emoticon_nod_name", | |
"shortname": "(nod)", | |
"shortcuts": "(nod),(Nod)", | |
"category": "emoticons", | |
"keywords": "emoticon_nod_keywords", | |
"link": "nod_20.png", | |
"linkAnim": "nod_20_anim.png" | |
}, | |
"nerdy": { | |
"unicode": "nerdy", | |
"unicode_alternates": ":nerd:", | |
"name": "emoticon_nerdy_name", | |
"shortname": "(nerdy)", | |
"shortcuts": "(nerd),(Nerd),8-|,B-|,8|,B|,8=|,B=|,(nerdy),(Nerdy)", | |
"category": "emoticons", | |
"keywords": "emoticon_nerdy_keywords", | |
"link": "nerdy_20.png", | |
"linkAnim": "nerdy_20_anim.png" | |
}, | |
"emo": { | |
"unicode": "emo", | |
"unicode_alternates": ":cry:", | |
"name": "emoticon_emo_name", | |
"shortname": "(emo)", | |
"shortcuts": "(emo),(Emo)", | |
"category": "emoticons", | |
"keywords": "emoticon_emo_keywords", | |
"link": "emo_20.png", | |
"linkAnim": "emo_20_anim.png" | |
}, | |
"muscle": { | |
"unicode": "muscle", | |
"unicode_alternates": ":muscle:", | |
"name": "emoticon_muscle_name", | |
"shortname": "(muscle)", | |
"shortcuts": "(flex),(Flex),(muscle),(Muscle)", | |
"category": "emoticons", | |
"keywords": "emoticon_muscle_keywords", | |
"link": "muscle_20.png", | |
"linkAnim": "muscle_20_anim.png" | |
}, | |
"mmm": { | |
"unicode": "mmm", | |
"unicode_alternates": ":thinking_face:", | |
"name": "emoticon_mmm_name", | |
"shortname": "(mmm)", | |
"shortcuts": "(mm),(Mm),(mmm),(Mmm),(mmmm),(Mmmm)", | |
"category": "emoticons", | |
"keywords": "emoticon_mmm_keywords", | |
"link": "mmm_20.png", | |
"linkAnim": "mmm_20_anim.png" | |
}, | |
"ok": { | |
"unicode": "ok", | |
"unicode_alternates": ":ok:", | |
"name": "emoticon_ok_name", | |
"shortname": "(ok)", | |
"shortcuts": "(ok),(OK),(oK),(Ok),(okay),(Okay)", | |
"category": "emoticons", | |
"keywords": "emoticon_ok_keywords", | |
"link": "ok_20.png", | |
"linkAnim": "ok_20_anim.png" | |
}, | |
"highfive": { | |
"unicode": "highfive", | |
"unicode_alternates": ":raised_hand:", | |
"name": "emoticon_highfive_name", | |
"shortname": "(highfive)", | |
"shortcuts": "(highfive),(Highfive),(hifive),(Hifive),(h5),(H5)", | |
"category": "emoticons", | |
"keywords": "emoticon_highfive_keywords", | |
"link": "highfive_20.png", | |
"linkAnim": "highfive_20_anim.png" | |
}, | |
"turkey": { | |
"unicode": "turkey", | |
"unicode_alternates": ":turkey:", | |
"name": "emoticon_turkey_name", | |
"shortname": "(turkey)", | |
"shortcuts": "(turkey),(Turkey),(turkeydance),(Turkeydance),(thanksgiving),(Thanksgiving)", | |
"category": "emoticons", | |
"keywords": "emoticon_turkey_keywords", | |
"link": "turkey_20.png", | |
"linkAnim": "turkey_20_anim.png" | |
}, | |
"call": { | |
"unicode": "call", | |
"unicode_alternates": ":calling:", | |
"name": "emoticon_call_name", | |
"shortname": "(call)", | |
"shortcuts": "(call),(Call)", | |
"category": "emoticons", | |
"keywords": "emoticon_call_keywords", | |
"link": "call_20.png", | |
"linkAnim": "call_20_anim.png" | |
}, | |
"movember": { | |
"unicode": "movember", | |
"unicode_alternates": ":guardsman:", | |
"name": "emoticon_movember_name", | |
"shortname": "(movember)", | |
"shortcuts": "(movember),(Movember),(mo),(Mo),(november),(November),(moustache),(Moustache),(mustache),(Mustache),(bowman),(Bowman),:{", | |
"category": "emoticons", | |
"keywords": "emoticon_movember_keywords", | |
"link": "movember_20.png", | |
"linkAnim": "movember_20_anim.png" | |
}, | |
"dog": { | |
"unicode": "dog", | |
"unicode_alternates": ":dog:", | |
"name": "emoticon_dog_name", | |
"shortname": "(dog)", | |
"shortcuts": "(dog),(Dog),:o3,(&)", | |
"category": "emoticons", | |
"keywords": "emoticon_dog_keywords", | |
"link": "dog_20.png", | |
"linkAnim": "dog_20_anim.png" | |
}, | |
"coffee": { | |
"unicode": "coffee", | |
"unicode_alternates": ":coffee:", | |
"name": "emoticon_coffee_name", | |
"shortname": "(coffee)", | |
"shortcuts": "(coffee),(Coffee)", | |
"category": "emoticons", | |
"keywords": "emoticon_coffee_keywords", | |
"link": "coffee_20.png", | |
"linkAnim": "coffee_20_anim.png" | |
}, | |
"poke": { | |
"unicode": "poke", | |
"unicode_alternates": ":point_right:", | |
"name": "emoticon_poke_name", | |
"shortname": "(poke)", | |
"shortcuts": "(poke),(Poke),(nudge),(Nudge)", | |
"category": "emoticons", | |
"keywords": "emoticon_poke_keywords", | |
"link": "poke_20.png", | |
"linkAnim": "poke_20_anim.png" | |
}, | |
"swear": { | |
"unicode": "swear", | |
"unicode_alternates": ":angry:", | |
"name": "emoticon_swear_name", | |
"shortname": "(swear)", | |
"shortcuts": "(swear),(Swear)", | |
"category": "emoticons", | |
"keywords": "emoticon_swear_keywords", | |
"link": "swear_20.png", | |
"linkAnim": "swear_20_anim.png" | |
}, | |
"donttalktome": { | |
"unicode": "donttalktome", | |
"unicode_alternates": ":angry:", | |
"name": "emoticon_donttalktome_name", | |
"shortname": "(donttalktome)", | |
"shortcuts": "(donttalk),(Donttalk),(donttalktome),(Donttalktome)", | |
"category": "emoticons", | |
"keywords": "emoticon_donttalktome_keywords", | |
"link": "donttalktome_20.png", | |
"linkAnim": "donttalktome_20_anim.png" | |
}, | |
"fingerscrossed": { | |
"unicode": "fingerscrossed", | |
"unicode_alternates": ":pray:", | |
"name": "emoticon_fingerscrossed_name", | |
"shortname": "(fingerscrossed)", | |
"shortcuts": "(yn),(Yn),(fingers),(Fingers),(fingerscrossed),(Fingerscrossed),(crossedfingers),(Crossedfingers)", | |
"category": "emoticons", | |
"keywords": "emoticon_fingerscrossed_keywords", | |
"link": "fingerscrossed_20.png", | |
"linkAnim": "fingerscrossed_20_anim.png" | |
}, | |
"rainbow": { | |
"unicode": "rainbow", | |
"unicode_alternates": ":rainbow:", | |
"name": "emoticon_rainbow_name", | |
"shortname": "(rainbow)", | |
"shortcuts": "(rainbow),(Rainbow)", | |
"category": "emoticons", | |
"keywords": "emoticon_rainbow_keywords", | |
"link": "rainbow_20.png", | |
"linkAnim": "rainbow_20_anim.png" | |
}, | |
"headphones": { | |
"unicode": "headphones", | |
"unicode_alternates": ":headphones:", | |
"name": "emoticon_headphones_name", | |
"shortname": "(headphones)", | |
"shortcuts": "(headphones),(Headphones)", | |
"category": "emoticons", | |
"keywords": "emoticon_headphones_keywords", | |
"link": "headphones_20.png", | |
"linkAnim": "headphones_20_anim.png" | |
}, | |
"waiting": { | |
"unicode": "waiting", | |
"unicode_alternates": ":alarm_clock:", | |
"name": "emoticon_waiting_name", | |
"shortname": "(waiting)", | |
"shortcuts": "(waiting),(Waiting),(forever),(Forever),(impatience),(Impatience)", | |
"category": "emoticons", | |
"keywords": "emoticon_waiting_keywords", | |
"link": "waiting_20.png", | |
"linkAnim": "waiting_20_anim.png" | |
}, | |
"festiveparty": { | |
"unicode": "festiveparty", | |
"unicode_alternates": ":tada:", | |
"name": "emoticon_festiveparty_name", | |
"shortname": "(festiveparty)", | |
"shortcuts": "(festiveparty),(Festiveparty),(partyxmas),(Partyxmas)", | |
"category": "emoticons", | |
"keywords": "emoticon_festiveparty_keywords", | |
"link": "festiveparty_20.png", | |
"linkAnim": "festiveparty_20_anim.png" | |
}, | |
"bandit": { | |
"unicode": "bandit", | |
"unicode_alternates": ":spy:", | |
"name": "emoticon_bandit_name", | |
"shortname": "(bandit)", | |
"shortcuts": "(bandit),(Bandit)", | |
"category": "emoticons", | |
"keywords": "emoticon_bandit_keywords", | |
"link": "bandit_20.png", | |
"linkAnim": "bandit_20_anim.png" | |
}, | |
"heidy": { | |
"unicode": "heidy", | |
"unicode_alternates": ":hamster:", | |
"name": "emoticon_heidy_name", | |
"shortname": "(heidy)", | |
"shortcuts": "(squirrel),(Squirrel),(heidy),(Heidy)", | |
"category": "emoticons", | |
"keywords": "emoticon_heidy_keywords", | |
"link": "heidy_20.png", | |
"linkAnim": "heidy_20_anim.png" | |
}, | |
"beer": { | |
"unicode": "beer", | |
"unicode_alternates": ":beer:", | |
"name": "emoticon_beer_name", | |
"shortname": "(beer)", | |
"shortcuts": "(beer),(Beer),(bricklayers),(Bricklayers)", | |
"category": "emoticons", | |
"keywords": "emoticon_beer_keywords", | |
"link": "beer_20.png", | |
"linkAnim": "beer_20_anim.png" | |
}, | |
"doh": { | |
"unicode": "doh", | |
"unicode_alternates": ":dizzy_face:", | |
"name": "emoticon_doh_name", | |
"shortname": "(doh)", | |
"shortcuts": "(doh),(Doh)", | |
"category": "emoticons", | |
"keywords": "emoticon_doh_keywords", | |
"link": "doh_20.png", | |
"linkAnim": "doh_20_anim.png" | |
}, | |
"bomb": { | |
"unicode": "bomb", | |
"unicode_alternates": ":bomb:", | |
"name": "emoticon_bomb_name", | |
"shortname": "(bomb)", | |
"shortcuts": "(bomb),(Bomb),(explosion),(Explosion),(explode),(Explode),@=", | |
"category": "emoticons", | |
"keywords": "emoticon_bomb_keywords", | |
"link": "bomb_20.png", | |
"linkAnim": "bomb_20_anim.png" | |
}, | |
"happy": { | |
"unicode": "happy", | |
"unicode_alternates": ":smile:", | |
"name": "emoticon_happy_name", | |
"shortname": "(happy)", | |
"shortcuts": "(happy),(Happy)", | |
"category": "emoticons", | |
"keywords": "emoticon_happy_keywords", | |
"link": "happy_20.png", | |
"linkAnim": "happy_20_anim.png" | |
}, | |
"ninja": { | |
"unicode": "ninja", | |
"unicode_alternates": ":spy:", | |
"name": "emoticon_ninja_name", | |
"shortname": "(ninja)", | |
"shortcuts": "(ninja),(Ninja)", | |
"category": "emoticons", | |
"keywords": "emoticon_ninja_keywords", | |
"link": "ninja_20.png", | |
"linkAnim": "ninja_20_anim.png" | |
} | |
}; | |
language: typescript | |
template: | |
content: | | |
<button id="run" class="ms-Button"> | |
<span class="ms-Button-label">Run</span> | |
</button> | |
language: html | |
style: | |
content: "/* Your style goes here */\r\n" | |
language: css | |
libraries: | | |
# CSS Libraries | |
office-ui-fabric-js@1.4.0/dist/css/fabric.min.css | |
office-ui-fabric-js@1.4.0/dist/css/fabric.components.min.css | |
# NPM libraries | |
core-js@2.4.1/client/core.min.js | |
@microsoft/office-js-helpers@0.7.1/dist/office.helpers.min.js | |
jquery@3.1.1 | |
# IntelliSense: @types/library or node_modules paths or URL to d.ts files | |
@types/core-js | |
@microsoft/office-js-helpers@0.7.1/dist/office.helpers.d.ts | |
@types/jquery |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment