This file contains 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>" |
This file contains 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 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 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 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 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
# Installation on Dell XPS 9570 | |
# Connect to Internet | |
wifi-menu | |
# Sync clock | |
timedatectl set-ntp true | |
# Create three partitions: |
This file contains 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
CC = g++ | |
CFLAGS = -g -Wall -Werror | |
test: test.o | |
test.o: test.cpp | |
clean: | |
rm test *.o | |
This file contains 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
sudo reflector --country "GB" --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist |
This file contains 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
cmake_minimum_required(VERSION 3.20.0) | |
# change this to your path | |
set(CMAKE_TOOLCHAIN_FILE "E:/src/vcpkg/scripts/buildsystems/vcpkg.cmake") | |
project(demo) | |
add_executable(${PROJECT_NAME} main.cpp) | |
# use your prefix paht if the toolchain doesn't work |
This file contains 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
# Compiler | |
CC = gcc | |
# Compiler flags | |
CFLAGS = -Wall -Wextra -pedantic | |
# Source files | |
SRCS = datecode.c date_validator_helper.c main.c | |
# Object files |
OlderNewer