Skip to content

Instantly share code, notes, and snippets.

@giangnn
giangnn / Blank snippet.WORD.yaml
Created July 3, 2019 03:05
Create a new snippet from a blank template.
name: Blank snippet
description: Create a new snippet from a blank template.
host: WORD
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
await Word.run(async (context) => {
https://calendar-client-dev.leapaws.com.au/?access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE0ODY2MDU3NDEsImV4cCI6MTQ4OTE5Nzc0MSwiZmlybUlkIjoiZDcxNDAwMDItMWNkNy00OTYyLTlkY2MtODExYmQwMTk4N2Y0IiwidXNlcklkIjoiZDQzOWEyZjgtZmRiZi00ZjkyLWI3MGMtOWU0MzliMzIyOWFkIiwic2NvcGUiOiIqIiwic3RhZmZJZCI6ImU2YTc0ZjRjLThmOWMtNGU3Mi05MDFjLTViMjgzNjNmODI3MyIsInJlZ2lvbiI6InVrIiwiZW52aXJvbm1lbnQiOiJ0ZXN0IiwiYXVkIjoiOE1CSldPRlM0UlJSU1pRQyIsImlzcyI6ImF1dGgubGVhcC5zZXJ2aWNlcyIsInN1YiI6ImQ0MzlhMmY4LWZkYmYtNGY5Mi1iNzBjLTllNDM5YjMyMjlhZCIsImp0aSI6IlNLMm9JR2luV3c3ZEFSU2wifQ.CuWhxOSRhmuiFY2oHz2EQxtwupM8-eXIXJaC3tals1MJZNjWqHuyutXszNlY6CEH5zn9OYNKijytWltOYznOEO9FSpGtABpcOmH86Jbis7rRlCV6uduXX9W9JBlkEHXqD1I0syQ4Ra6tpMa67ythnxKyWPASZmOAmp2KeD4PvDE&isDesktop=true#/matter/c33ebebc-76e1-40d6-9bf5-03966e34234b
@giangnn
giangnn / introrx.md
Last active August 29, 2015 14:24 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.