Skip to content

Instantly share code, notes, and snippets.

View Adeniyii's full-sized avatar
🛠️
Building

dayo Adeniyii

🛠️
Building
View GitHub Profile
@Adeniyii
Adeniyii / credit.c
Created August 2, 2020 09:17
Credit Card Check cs50
// 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);
@Adeniyii
Adeniyii / caesar.c
Created August 11, 2020 17:12
A program implementing Caesar's cipher to encrypt plaintext.
/*
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
@Adeniyii
Adeniyii / substitution.c
Created August 17, 2020 20:51
A program using the substitution method to encrypt messages.
/*
A program that implements a substitution cipher.
*/
// Include libraries
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
@Adeniyii
Adeniyii / runoff.c
Created September 19, 2020 20:30
cs50 runoff problem set 3
#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
@Adeniyii
Adeniyii / 🔥.gif
Created August 10, 2023 17:06 — forked from NARKOZ/🔥.gif
🔥.gif
@Adeniyii
Adeniyii / .ideavimrc
Created January 13, 2024 20:15
dotfiles
let mapleader = " "
set history=1000
set number relativenumber
set idearefactormode=keep
set incsearch
set ideamarks
set ideajoin
set surround
set easymotion