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
| // enums3.rs | |
| // Address all the TODOs to make the tests pass! | |
| // Solved by refering to other peoples attempts, then by trial & error | |
| // Passes all the tests. | |
| enum Message { | |
| // TODO: implement the message variant types based on their usage below | |
| ChangeColor((u8, u8, u8)), | |
| Echo(String), |
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
| // A safer way to get user data, limited to size of Buffer | |
| #include <stdio.h> | |
| #define BUFFER_SIZE 15 | |
| int main(int argc, char const *argv[]) | |
| { | |
| printf("Please enter your name: "); | |
| char name[BUFFER_SIZE]; | |
| fgets(name, sizeof(name), stdin); |
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 <vector> | |
| using namespace std; | |
| class List | |
| { | |
| private: | |
| static vector<int> Numbers; | |
| public: |
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
| colorscheme delek | |
| :let mapleader = " " | |
| set timeout timeoutlen=500 " Set timeout length to 500 ms | |
| function! ToggleLineNumber() | |
| if v:version > 703 | |
| set norelativenumber! | |
| endif | |
| set nu! |
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 | |
| # M. Crouch 09/03/2020 - Inspiration by Popey Youtube channel | |
| # Command Arg: Date string eg. 20200309 | |
| # Refer to http://iso.qa.ubuntu.com/qatracker/milestones/408/builds for date string | |
| # Check for argument | |
| if [ "$1" == "" ] | |
| then | |
| echo "You must provide the date of the image." | |
| echo "I.e <20200309>" |
NewerOlder