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
// Applying Luhn's algorithm to validate credit cards | |
// Include c libraries | |
#include <stdio.h> | |
#include <cs50.h> | |
#include <math.h> | |
// Initialize implementation details | |
void finalCheck(string type, int evenList[], int len, int odd); | |
void CheckSum(long n, string type); |
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 program to encrypt messages using a Caesar cipher. | |
Usage: ./caesar key | |
- Where key is the number of places to move your letters by. | |
*/ | |
// Include libraries |
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 program that implements a substitution cipher. | |
*/ | |
// Include libraries | |
#include <stdio.h> | |
#include <cs50.h> | |
#include <string.h> | |
#include <ctype.h> |
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 <cs50.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <string.h> | |
// Max voters and candidates | |
#define MAX_VOTERS 100 | |
#define MAX_CANDIDATES 9 | |
// preferences[i][j] is jth preference for voter i |

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
let mapleader = " " | |
set history=1000 | |
set number relativenumber | |
set idearefactormode=keep | |
set incsearch | |
set ideamarks | |
set ideajoin | |
set surround | |
set easymotion |