Skip to content

Instantly share code, notes, and snippets.

View larry-dalmeida's full-sized avatar

Larry D Almeida larry-dalmeida

View GitHub Profile
@larry-dalmeida
larry-dalmeida / assignment_01.md
Created February 12, 2025 07:11
dicts, file searching, yaml parsing

Unique Yaml Fields

Problem Statement

Given this folder that contains subfolders folders, each with one Chart.yaml file, find all the unique values of annotations.category field and return the count of each value.

Examples

find_unique_categories("./charts/bitnami")
@larry-dalmeida
larry-dalmeida / assignment_00.md
Last active February 6, 2025 06:35
Assignment 00

Memorable Username Generator

Problem Statement

Passwords can be hard to remember, especially if you use different passwords for different websites and don't always have access to a secure password vault.

Write a function generate_memorable_password(custom_word: str, words: int) -> str that generates a strong, secure and memorable password.

Constraints

@larry-dalmeida
larry-dalmeida / vscode-snippets.json
Last active December 23, 2019 15:40
Useful VS Code snippets for React development by Alican (a great colleague of mine)
{
"Component": {
"prefix": "%ccomp",
"body": [
"import * as React from 'react';",
"import styled from 'styled-components';",
"",
"export interface ${1:Component}Props {}",
"",
"interface ${1:Component}State {}",
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->