Skip to content

Instantly share code, notes, and snippets.

View PaulRosset's full-sized avatar
😃
WIP

Paul Rosset PaulRosset

😃
WIP
View GitHub Profile
@PaulRosset
PaulRosset / exercice.js
Last active April 6, 2020 17:43 — forked from peaBerberian/exercice.js
Understand EventLoop on async operation for Scheduler in rxjs
/**
* Using process.nextTick(() => {})
* Permit to launch a microtask inside the eventloop that will be executed ASAP
*/
setTimeout(() => {
console.log("timeout1");
}, 0);
function toto() {
Promise.resolve().then(() => {
@PaulRosset
PaulRosset / gistlog.yml
Created May 1, 2019 09:47 — forked from askilondz/gistlog.yml
Adaptive Streaming with MPEG-DASH and HLS using AWS

Adaptive Streaming has become the neccessity for streaming video and audio. Unfortantely, as of this post, there isn't a whole lot of tutorials that accumulate all of the steps to get this working. Hopefully this post achieves that. This post focuses on using Amazon Web Services (AWS) to transcode for HLS and DASH and be the Content Delivery Network (CDN) that delivers the stream to your web page. We'll be using Video.js for the HTML5 player as well as javascript support libaries to make Video.js work with HLS and DASH.

So Here's what you need:

Set up three S3 buckets

@PaulRosset
PaulRosset / README.md
Created April 20, 2018 13:06 — forked from rrag/README.md
Yet another tutorial and Cheat sheet to Functional programming

There are many tutorials and articles available online which explain functional programming. Examples show small functions, which are composed into others which again get composed. It is hard to imagine how it would all work, then come the analogies and then the math. While the math is necessary to understand it can be difficult to grasp initially. The analogies on the other hand, (at least for me) are not relatable. Some articles assume the reader knows the different terminologies of FP. Over all I felt it is not inviting to learn.

This introduction is for those who have had a tough time understanding those analogies, taken the plunge to functional programming but still have not been able to swim. This is yet another tutorial on functional programming

Terminology

Functions as first class citizens

Functions are first class means they are just like anyone else, or rather they are not special, they behave the same as say primitives or strings or objects.