Skip to content

Instantly share code, notes, and snippets.

type Tree = Record<string, number | Tree>;
const getUniqueSortedNumbers = (tree: Tree) => {
const flattenSet = new Set();
const flattenTreeReq = (tree: Tree) => {
for (let node in tree) {
const value = tree[node];
if (typeof value === "number") {
const oldLog = console.log;
console.log = (...params) => {
const msg = params.map(param => `${param} "${typeof param}"`)
.join(" ");
oldLog(msg);
};
@OskarGasiorowski
OskarGasiorowski / KeyVaultHelperWrongWay.cs
Last active October 15, 2020 18:17
AppSettings and Azure KeyVault
public class KeyVaultHelper
{
private readonly IConfiguration _configuration;
public KeyVaultHelper(IConfiguration configuration)
{
_configuration = configuration;
}
public async Task<string> GetDatabaseConnectionString()