Skip to content

Instantly share code, notes, and snippets.

View mrcreel's full-sized avatar

Michael R Creel mrcreel

View GitHub Profile
@mrcreel
mrcreel / fcc-random-quote-machine.markdown
Created September 13, 2017 21:47
FCC-Random Quote Machine
@mrcreel
mrcreel / fcc-local-weather-station.markdown
Created September 19, 2017 13:12
FCC-Local Weather Station
@mrcreel
mrcreel / fcc-wikipedia-reader.markdown
Created September 21, 2017 15:02
FCC-Wikipedia Reader
@mrcreel
mrcreel / fcc-twitch-tv.markdown
Created September 25, 2017 14:47
FCC-Twitch TV
@mrcreel
mrcreel / FCC-footer.html
Last active October 3, 2017 10:34
FreeCodeCamp-footer
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Load jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Load local javascript file -->
<script language="JavaScript" type="text/javascript" src="script.js"></script>
<!-- Load external CSS File -->
<link rel="stylesheet" type="text/css" href="styles.css">
@mrcreel
mrcreel / RomanNumeralConverter.js
Last active October 15, 2017 23:17
FCC-10_03 RomanNumerals
function convertToRoman(num) {
// Create array of Roman Numeral Combinations
var arrRomanNumerals = [
{"letter":"M","value": 1000},
{"letter":"CM","value": 900},
{"letter":"D","value": 500},
{"letter":"CD","value": 400},
{"letter":"C","value": 100},
{"letter":"XC","value": 90},
{"letter":"L","value": 50},
@mrcreel
mrcreel / DiffTwoArrays.js
Created October 13, 2017 08:40
FCC-10_02ArrayDiffs
function diffArray(arr1, arr2) {
var newArr = [];
var test1 = "";
var test2 = "";
var resArr = [];
newArr = arr1.concat(arr2);
// Same, same; but different.
@mrcreel
mrcreel / whatIsInAName.js
Created October 15, 2017 16:05
FCC-10_04 Wherefore art Thou?
function whatIsInAName(collection, source) {
// What's in a name?
var arr = [];
// Only change code below this line
function funcTrueCheck(element, index, array) {
return element === true;
}
collection.forEach(function(element, index) {
// statements
var arrResult = [];
@mrcreel
mrcreel / myReplace.js
Created October 15, 2017 16:46
FCC_10-05 Search and Replace
function myReplace(str, before, after) {
arrSentence = str.split(" ");
arrSentence.indexOf(before);
console.log(arrSentence, arrSentence.indexOf(before), before[0] === before[0]
.toUpperCase());
if (before[0] === before[0].toUpperCase()) {
after = after[0].toUpperCase() + after.slice(1);
}
arrSentence[arrSentence.indexOf(before)] = after;
str = arrSentence.join(" ");