Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
jefeish committed Jun 24, 2024
1 parent 9e2ca33 commit d8be2e3
Show file tree
Hide file tree
Showing 20 changed files with 479 additions and 555 deletions.
5 changes: 0 additions & 5 deletions .idea/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/libraries/CaosDef_Std_Lib.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

Binary file added copilot-prompt-cheat-sheet.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion demos/Node-calculator/solution/calculator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @desciption: A claculator module that can add, subtract, multiply, modulo,
* @description: A claculator module that can add, subtract, multiply, modulo,
* exponent and divide by taking in two numbers and an operator.
* It throws an error if the operator is invalid or if the second
* number is zero and the operator is division.
Expand Down
5 changes: 4 additions & 1 deletion demos/Node-calculator/solution/tests/calculator.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/**
* @description Test cases for calculator.js
* Write me unit tests for all the operations in my calculator.js file
* This class provides unit tests for all the operations
* in my calculator.js file.
*/

// import the calculator function
const calculator = require('../calculator');

// test cases for the calculator function


3 changes: 3 additions & 0 deletions docs/images/office-hours.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<link rel="stylesheet" href="revealjs/plugin/highlight/monokai.css">
</head>

<body>overview-what_copilot
<body>
<div class="reveal">
<div class="slides">
<section data-transition="slide" data-markdown="slides/cover.md">slides/cover.md</section>
<section data-transition="slide" data-markdown="slides/cover-office-hours.md">slides/cover.md</section>

<section data-transition="slide" data-markdown="slides/getting-started.md">slides/getting-started.md</section>
<!-- <section data-transition="slide" data-markdown="slides/ide-config.md">slides/ide-config.md</section> -->
Expand All @@ -28,9 +28,9 @@

<section data-transition="slide" data-markdown="slides/tips-techniques.md">slides/tips-techniques.md</section>

<section data-transition="slide" data-markdown="slides/chapter-qa.md">slides/capter-qa.md</section>
<!-- <section data-transition="slide" data-markdown="slides/chapter-qa.md">slides/capter-qa.md</section>
<section data-transition="slide" data-markdown="slides/copilot-exercises.md">slides/copilot-exercises.md</section>
<section data-transition="slide" data-markdown="slides/copilot-exercises.md">slides/copilot-exercises.md</section> -->

<section data-transition="slide" data-markdown="slides/chapter-lets-build.md">slides/chapter-lets-build.md</section>
</div>
Expand All @@ -55,7 +55,7 @@
// Optional libraries used to extend on reveal.js
dependencies: [
// Title-Footer plugin
{ src: 'revealjs/plugin/title-footer/title-footer.js', async: true, callback: function() { title_footer.initialize('','GitHub Expert Services - @jefeish @evgenyrahman @karlwithak1',null); } }
{ src: 'revealjs/plugin/title-footer/title-footer.js', async: true, callback: function() { title_footer.initialize('','GitHub Expert Services - @jefeish',null); } }
]
});
</script>
Expand Down
3 changes: 2 additions & 1 deletion docs/revealjs/plugin/title-footer/title-footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
letter-spacing: 0em;
padding-top: 0.5vh;
padding-bottom: 0.5vh;
background-color: transparent;
/* background-color: transparent; */
background-color: aqua;
}

/* Bottom position for the Title-Footer footer when both progress bar and TOC-Progress are visible */
Expand Down
4 changes: 2 additions & 2 deletions docs/revealjs/plugin/title-footer/title-footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ title_footer.initialize = function (title, footer, background) {
var createHeaderFooter = function (id) {
var header_footer = document.createElement(id === 'header' ? 'header' : 'footer');
header_footer.setAttribute('id', 'title-' + id);
header_footer.setAttribute('style', 'background:' + this.background + '; text-align: ' + (id === 'header' ? 'right' : 'left') + '; padding: 0 20px;');
header_footer.setAttribute('style', 'background:' + this.background + '; text-align: ' + (id === 'header' ? 'right' : 'left') + '; padding: 0 10px;');

var header_footer_p = document.createElement('p');
header_footer_p.style.display = 'flex'; // Set the display to flex
header_footer_p.style.alignItems = 'center'; // Center items vertically
header_footer_p.style.marginTop = id === 'header' ? '0px' : '-10px'; // Add negative top margin to move the SVG and the text up
header_footer_p.style.marginTop = id === 'header' ? '0px' : '-15px'; // Add negative top margin to move the SVG and the text up
header_footer_p.style.justifyContent = id === 'header' ? 'flex-end' : 'flex-start'; // Align items to the right if it's a header, otherwise to the left

// Create a container for the SVG
Expand Down
Loading

0 comments on commit d8be2e3

Please sign in to comment.