Skip to content

Instantly share code, notes, and snippets.

View brunotdantas's full-sized avatar
🏠
Working from home

Bruno Dantas brunotdantas

🏠
Working from home
View GitHub Profile
@jkdba
jkdba / MSSQL_RepetitiveReplace_fn.sql
Last active December 1, 2022 20:10
Simple function to recursively replace a pattern in a string.
CREATE FUNCTION dbo.RepetitiveReplace_fn
(
@P_String VARCHAR(MAX),
@P_Pattern VARCHAR(MAX),
@P_ReplaceString VARCHAR(MAX),
@P_ReplaceLength INT = 1
)
RETURNS VARCHAR(MAX)
BEGIN
DECLARE @Index INT;
@cassmtnr
cassmtnr / upload-image-to-s3.js
Last active August 20, 2019 03:32
upload-image-to-s3
'use strict';
let config = {
AWS = {
accessKeyId: ACCESSKEYHERE,
secretAccessKey: SECRETEACCESSKEYHERE,
region: REGIONHERE
}
}
@tianhaoz95
tianhaoz95 / open-in-gitpod.md
Last active February 29, 2024 21:43
Code to add a open in Gitpod badge

Here is your awesome Open in Gitpod badge

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/[your GitHub username]/[your repository])

Open in Gitpod