This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <head> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script> | |
| </head> | |
| <body> | |
| <div id = "app"> | |
| <canvas id = "lineChart"></canvas> | |
| <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new Vue({ | |
| el: "#app", | |
| data: { | |
| entries: [], | |
| amount :"", | |
| date :"", | |
| input2: "", | |
| setBudget: 400 | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *{ | |
| padding: 0; | |
| margin: 0; | |
| font-family: 'Lato', sans-serif; | |
| } | |
| /* The sidebar menu */ | |
| .sidenav { | |
| height: 100%; /* Full-height: remove this if you want "auto" height */ | |
| width: 150px; /* Set the width of the sidebar */ | |
| position: fixed; /* Fixed Sidebar (stay in place on scroll) */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new Vue({ | |
| el:"#app", | |
| data: { | |
| navDrawer: false | |
| }, | |
| methods: { | |
| showDrawer: function(){ | |
| this.navDrawer = !this.navDrawer; | |
| }, | |
| dismissDrawer: function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function bubbleSort(arr){ | |
| let sortOccurred = true; | |
| while (sortOccurred === true) { | |
| for(var i = 0; i < arr.length; i++){ | |
| if (arr[i] > arr[i + 1]) { | |
| var a = arr[i]; | |
| arr[i] = arr[i + 1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function generateFibonacci(length){ | |
| let sequence = [1]; | |
| for(var i = 1; i <= length; i++){ | |
| if (sequence.length === 1) { | |
| sequence[i] = 1 | |
| } | |
| else{ | |
| sequence[i] = sequence[i-1] + sequence[i - 2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function findSum(arr, sum) { | |
| var i = 0; | |
| var j = arr.length-1; | |
| var complete = false; | |
| while (complete === false) { | |
| if(arr[i] + arr[j] === sum) { | |
| complete = true; | |
| return [arr[i], arr[j]]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function binarySearch(arr, elem) { | |
| var start = 0; | |
| var end = arr.length - 1; | |
| var middle = Math.floor((start + end) / 2); | |
| while(arr[middle] !== elem && start <= end) { | |
| if(elem < arr[middle]){ | |
| end = middle - 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function subStr(str, sub) { | |
| let i = 0; | |
| let j = 0; | |
| let collected = ''; | |
| let counter = 0; | |
| let complete = false; | |
| while (complete === false) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function selectionSort(arr) { | |
| let currentMin = 0; | |
| let newMin = 0; | |
| let complete = false; | |
| while (!complete) { | |
| for (var i = currentMin; i < arr.length; i++) { |