Skip to content

Instantly share code, notes, and snippets.

@sajarin
sajarin / bootstrap.sh
Last active December 31, 2025 00:20
Stage 0 bootstrap - installs prerequisites and runs main bootstrap
#!/bin/bash
# ============================================================================
# Stage 0 Bootstrap - Fresh Machine Setup
# Installs prerequisites then runs the main bootstrap
# curl -fsSL https://bootstrap.sajarin.com | bash
# ============================================================================
set -e
# ============================================================================
#include <iostream>
#include "stack.h"
stack::stack() {
top = nullptr;
}
stack::~stack() {
std::cout << "In the destructor\n";
if (top != nullptr){
year value
2014 7
2015 7
2016 7
2017 83
2018 87
def fizzbuzz(n):
if n % 3 == 0 and n % 5 == 0:
return 'FizzBuzz'
elif n % 3 == 0:
return 'Fizz'
elif n % 5 == 0:
return 'Buzz'
else:
return str(n)