Skip to content

Instantly share code, notes, and snippets.

View BenMansley's full-sized avatar
💭
🐝

Ben Kolya BenMansley

💭
🐝
View GitHub Profile
@BenMansley
BenMansley / input.scss
Created August 3, 2022 14:08
Generated by SassMeister.com.
/* Variables and Style Rules */
$fontSize: 1.1em;
$hexaPurple: #883fff;
$hexaBlue: #1bb4ff;
$hexaAqua: #00eaf6;
$hexaGreen: #009490;
$hexaRed: #e32553;
@BenMansley
BenMansley / input.scss
Created July 27, 2022 16:05
Generated by SassMeister.com.
$fontSize: 20px;
$hexaPurple: #883fff;
p {
@BenMansley
BenMansley / closest-country-population.js
Last active June 29, 2021 13:50
Function to get the closest country population to a given number
const populations = {
'China': 1439323776,
'India': 1380004385,
'United States': 331002651,
'Indonesia': 273523615,
'Pakistan': 220892340,
'Brazil': 212559417,
'Nigeria': 206139589,
'Bangladesh': 164689383,
'Russia': 145934462,
{"v":"5.5.5","fr":29.9700012207031,"ip":0,"op":60.0000024438501,"w":300,"h":601,"nm":"Comp 1","ddd":0,"assets":[],"fonts":{"list":[{"origin":0,"fPath":"","fClass":"","fFamily":"Helvetica","fWeight":"","fStyle":"Medium","fName":"Helvetica-Medium","ascent":70.7992553710938}]},"layers":[{"ddd":0,"ind":1,"ty":5,"nm":"{!}","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":60,"s":[150,300,0],"e":[150,300,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":69,"s":[150,300,0],"e":[166,152,0],"to":[2.667,-24.667,0],"ti":[0,-20.333,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":100,"s":[166,152,0],"e":[150,422,0],"to":[0,20.333,0],"ti":[1,1,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":120,"s":[150,422,0],"e":[160,146,0],"to":[-1,-1,0],"ti":[0,20.333,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":160,"s":[160,146,0],"e":[150,300,0],"to":[0,-20.333,0],"ti