Skip to content

Instantly share code, notes, and snippets.

View aaiezza's full-sized avatar

Alessandro Aiezza aaiezza

View GitHub Profile
@aaiezza
aaiezza / resume.json
Last active October 16, 2024 13:34
My resume
{
"meta": {
"theme": "kendall"
},
"basics": {
"name": "Alessandro Aiezza II",
"label": "",
"picture": "https://gravatar.com/avatar/65795826871526fcc3bfead5e339cecd?size=256",
"email": "[email protected]",
"phone": "(585) 698-4228",
@aaiezza
aaiezza / README.md
Created July 20, 2024 18:17
Coding Exercise: Connected Sinks in a Pipe System

Part 3 - Coding Exercise: Connected Sinks in a Pipe System

In this exercise, you will write code to solve a problem. Your code must be in either Python (preferred) or JavaScript—solutions in other languages will not be accepted! You can write your code using any IDE you want.

Problem We have a pipe system represented by a 2D rectangular grid of cells. There are three different types of objects located in cells in the grid, with each cell having either 0 objects or 1 object:

  • Source: There is 1 source in the system. It is represented by the asterisk character '*'.

  • Sinks: There are an arbitrary number of sinks in the system. They are each represented by a different uppercase letter ('A', 'B', 'C', etc.).

@aaiezza
aaiezza / zfsCommands.md
Last active December 1, 2023 17:31
ZFS

Here are some helpful commands for managing ZFS and ZPool on Ubuntu

VDEV

Useful for populating /etc/zfs/vdev_id.conf:

printDisks() {
    for i in /dev/sd[b-i]; do
        fdisk -l $i
@aaiezza
aaiezza / README.md
Last active November 8, 2022 21:54
Loggly Event Delta Calculation

How to use this

Pre-requisites

  • Install R
  • run install.packages('parsedate') in your r shell

Use the script

  1. Get your Loggly results for some event and export the results as a csv.
@aaiezza
aaiezza / Pipfile
Last active April 3, 2023 16:13
Power Up Rewards | The partial pin code problem
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
requests = "*"
[dev-packages]
pytest = "*"
@aaiezza
aaiezza / EmployerRetirementContributionCalculator.java
Last active November 24, 2021 20:06
Calculate 401K employer match based on a tiered-contribution-matching system
package challenge;
import static challenge.EmployerRetirementContributionCalculator.EmployeeContribution.employeeContribution;
import static challenge.EmployerRetirementContributionCalculator.EmployerContribution.Tier.Percentage.REMAINING_AMOUNT;
import challenge.EmployerRetirementContributionCalculator.EmployerContribution.Amount;
import challenge.EmployerRetirementContributionCalculator.EmployerContribution.EmployeeContributionMatched;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
@aaiezza
aaiezza / CombinationsOfDice.java
Last active August 22, 2021 15:49
Produce combinations of dice
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class CombinationsOfDice {
public List<int[]> execute(final int numberOfDice, final int numberOfSidesPerDice) {
final List<int[]> list = new ArrayList<>();
final int[] combination = new int[numberOfDice];
int index;
@aaiezza
aaiezza / RandomOptionChooser.java
Created April 21, 2021 14:33
Choose a random option
import static java.util.Collections.shuffle;
import static java.util.stream.Collectors.collectingAndThen;
import static java.util.stream.Collectors.toList;
import java.util.Optional;
import java.util.stream.Collector;
import java.util.stream.Stream;
public class RandomOptionChooser {
public Optional<Option> randomlyChooseAnOption(@lombok.NonNull final String... options) {
@aaiezza
aaiezza / CombinationGetter.java
Created March 7, 2021 21:04
Algorithm for iterating through combinations of numbers
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class CombinationGetter {
public List<int[]> getCombinations(final int n, final int min, final int k) {
final List<int[]> list = new ArrayList<>();
@aaiezza
aaiezza / loz_windwaker_checklist.md
Last active July 17, 2024 22:38
The Legend of Zelda: Wind Waker | Game Checklist
-------------------------------------------------------------------------------

                                     POWER
                          THE          ^          THE
                       LEGEND         ^^^         LEGEND
                           OF        ^^^^^        OF
                        ZELDA       ^^^^^^^       ZELDA
                            -      ^       ^      -
 THE ^^^ ^^^ THE