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
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
/** | |
* Structure de données partagée pour limiter le nombre de threads. |
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
const values = [ | |
null, 'abc', '', | |
'()', '[]', | |
'([])', '[()]', | |
'([]())', '[[]()]', | |
'([][]())', '[[[()()]()]()]', | |
'(abc)', '[]def', 'ijk[]()', | |
'[a(b)c]', 'x[a(b)c]y', | |
'x[a(b)c]', '[a(b)c]y', | |
'[([[]])]', '[][(]', |
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
interface MyObject { | |
key: number; | |
value: string; | |
} | |
const array1: MyObject[] = [ | |
{ | |
key: 1, | |
value: 'one' | |
}, |
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
import { iif, of } from "rxjs"; | |
import { map, switchMap, withLatestFrom } from 'rxjs/operators'; | |
const values1 = [1, 2, 3, 4]; | |
const values2 = [5, 6, 7]; | |
const values1$ = of(values1); | |
const values2$ = of(values2); | |
values1$.pipe( |
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
/** | |
* Download a file from a Blob with explicitly set MIME type. | |
* @param fileBlob The input Blob. | |
* @param mimeType A string representing a conform MIME type (see RFC 6838). | |
* @param outName A string for the downloaded file name. | |
*/ | |
export const downloadFile = (fileBlob: Blob, mimeType: string, outName: string): void => { | |
// explicitly set blob mime-type | |
const blob = new Blob([fileBlob], { type: mimeType }); |