Skip to content

Instantly share code, notes, and snippets.

View stevenYouhana's full-sized avatar
🎯
Focusing

Steven stevenYouhana

🎯
Focusing
View GitHub Profile
@stevenYouhana
stevenYouhana / index.html
Created April 22, 2019 07:43
Pomodoro Clock
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<div id='root'></div>
{
"author": "Steven",
"name": "hello-express",
"version": "0.0.1",
"description": "A simple Node app built on Express, instantly up and running.",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
const UNITS = {
'ONE HUNDRED': 100,
'TWENTY': 20,
'TEN': 10,
'FIVE': 5,
'ONE': 1,
'QUARTER': 0.25,
'DIME': 0.1,
'NICKEL': 0.05,
'PENNY': 0.01
function rot13(str) { // LBH QVQ VG!
const A_Z = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
function repLetter(L) {
if(L > 'M') {
return A_Z[(A_Z.indexOf(L)-13)];
}
else return A_Z[(A_Z.indexOf(L)+13)];
}
function convertToRoman(num) {
const BASE = {
'M': 1000,
'CM': 900,
'D': 500,
'CD': 400,
'C': 100,
'XC': 90,
'L': 50,