Skip to content

Instantly share code, notes, and snippets.

View chungminhtu's full-sized avatar

Chung Minh Tú chungminhtu

View GitHub Profile
@navjotahuja92
navjotahuja92 / setup.ts
Last active February 2, 2024 15:11
Nest.js Test Setup with In Memory Postgres Database (pg-mem)
// Install npm i pg-mem --save-dev
import { DataSource, Repository } from 'typeorm';
import { newDb, DataType } from 'pg-mem';
import { v4 } from 'uuid';
const setupDataSource = async () => {
const db = newDb({
autoCreateForeignKeyIndices: true,
});
@Chris1234567899
Chris1234567899 / _NGX_FFMPEG_WASM
Last active April 7, 2024 19:51
Angular/Typescript adjustments of ffmpeg-core for ffmpeg.wasm with web workers
Typescript/angular port of @ffmpeg/ffmpeg library which is used with @ffmpeg/core (see https://github.com/ffmpegwasm/ffmpeg.wasm). Some smaller adjustments have also been made.
This snippet is designed to make use of web workers in angular (see https://angular.io/guide/web-worker) to encode media in a single threaded browser environment.
@MarcoEidinger
MarcoEidinger / TableWithCodeTipsAndExamples.md
Last active August 12, 2024 02:28
Master GitHub markdown tables with code blocks

Master GitHub markdown tables with code blocks

  1. Use HTML tags to define the table to get the best layout result
  2. Use either backticks (```) or the HTML pre element with attribute lang
  3. Keep a blank line before and after a code block for correct formatting and syntax highlighting

Good

Example: nice looking table to show HTTP Responses

@crypticmind
crypticmind / README.md
Last active July 12, 2024 09:34
Setup lambda + API Gateway using localstack
@btroncone
btroncone / rxjs_operators_by_example.md
Last active June 15, 2024 07:17
RxJS 5 Operators By Example