Skip to content

Instantly share code, notes, and snippets.

View VanPaitin's full-sized avatar
💻
Gentle coder

Mayowa Pitan VanPaitin

💻
Gentle coder
View GitHub Profile
@Saarth-Jain
Saarth-Jain / tideman.c
Created October 16, 2020 05:28
CS50 Solution pset3 tideman
#include <cs50.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Max number of candidates
#define MAX 9
// preferences[i][j] is number of voters who prefer i over j
int preferences[MAX][MAX];
@bobspace
bobspace / css_colors.js
Last active April 24, 2024 13:34
All of the CSS Color names in a big javascript object.
// CSS Color Names
// Compiled by @bobspace.
//
// A javascript object containing all of the color names listed in the CSS Spec.
// This used to be a big array, but the hex values are useful too, so now it's an object.
// If you need the names as an array use Object.keys, but you already knew that!
//
// The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp
// Use it as you please, 'cuz you can't, like, own a color, man.