Skip to content

Instantly share code, notes, and snippets.

View samuelguesnier's full-sized avatar
🎃

samuel guesnier samuelguesnier

🎃
  • Sogescot
  • Rennes
View GitHub Profile
@staltz
staltz / introrx.md
Last active May 27, 2024 03:11
The introduction to Reactive Programming you've been missing
@rusllonrails
rusllonrails / POSTGRESQL | JSONB LOOP ARRAYS EXAMPLE 2
Created August 9, 2015 14:28
POSTGRESQL | JSONB LOOP ARRAYS EXAMPLE 2
CREATE OR REPLACE FUNCTION test1(in_array jsonb)
RETURNS text[] AS $$
DECLARE
js jsonb := in_array;
i jsonb;
result_ids TEXT[];
uuid text;
state text;
version text;
@Braytiner
Braytiner / Windows Defender Exclusions VS 2022.ps1
Last active May 27, 2024 21:05
Adds Windows Defender exclusions for Visual Studio 2022
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\Downloads\HeidiSQL_11.3_64_Portable') > $null
$pathExclusions.Add($userPath + '\.dotnet') > $null
@khalidx
khalidx / node-typescript-esm.md
Last active May 8, 2024 07:58
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json