This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================================ | |
| # Stage 0 Bootstrap - Fresh Machine Setup | |
| # Installs prerequisites then runs the main bootstrap | |
| # curl -fsSL https://bootstrap.sajarin.com | bash | |
| # ============================================================================ | |
| set -e | |
| # ============================================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include "stack.h" | |
| stack::stack() { | |
| top = nullptr; | |
| } | |
| stack::~stack() { | |
| std::cout << "In the destructor\n"; | |
| if (top != nullptr){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| year | value | |
|---|---|---|
| 2014 | 7 | |
| 2015 | 7 | |
| 2016 | 7 | |
| 2017 | 83 | |
| 2018 | 87 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |