From 2c4157b62fb921ee77e0079fae372d1e94643a08 Mon Sep 17 00:00:00 2001 From: Trevor Moy <51927676+trevmoy@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:30:25 -0400 Subject: [PATCH 1/5] Update faq/syllabus.md --- faq/syllabus.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/faq/syllabus.md b/faq/syllabus.md index 4398208..b1c4de9 100644 --- a/faq/syllabus.md +++ b/faq/syllabus.md @@ -66,3 +66,17 @@ excerpts or screenshots embedded in it. They should be markdown files in your KWL repo. I recommend myst markdown. ``` +## Why won't my experience badge workflow contain the new changes after I edit the workflow? +```{toggle} +If you find that a workflow you may have made changes to are not properly reflecting your workflow changes is because you may not be running the workflow correctly. + +To correctly execute an action in GitHub you should: + +1. Make sure you are in the actions tab in your repository +2. On the left side of the screen the specific workflows should be available to select. +3. Select the desired workflow. +4. At the top of the workflow runs there should be an option to run the workflow. +5. Select Run Workflow to run the most recent and up to date workflow. + +This should help correct the workflow if it was causing issues. +``` \ No newline at end of file From 36c4eb5fa5351cd7dd127cee55dc1e131c85c73b Mon Sep 17 00:00:00 2001 From: Trevor Moy <51927676+trevmoy@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:34:28 -0400 Subject: [PATCH 2/5] Update faq/syllabus.md --- faq/syllabus.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/faq/syllabus.md b/faq/syllabus.md index b1c4de9..4398208 100644 --- a/faq/syllabus.md +++ b/faq/syllabus.md @@ -66,17 +66,3 @@ excerpts or screenshots embedded in it. They should be markdown files in your KWL repo. I recommend myst markdown. ``` -## Why won't my experience badge workflow contain the new changes after I edit the workflow? -```{toggle} -If you find that a workflow you may have made changes to are not properly reflecting your workflow changes is because you may not be running the workflow correctly. - -To correctly execute an action in GitHub you should: - -1. Make sure you are in the actions tab in your repository -2. On the left side of the screen the specific workflows should be available to select. -3. Select the desired workflow. -4. At the top of the workflow runs there should be an option to run the workflow. -5. Select Run Workflow to run the most recent and up to date workflow. - -This should help correct the workflow if it was causing issues. -``` \ No newline at end of file From be4e509286363fea90b8d032e03fe614abb4e6cf Mon Sep 17 00:00:00 2001 From: Trevor Moy <51927676+trevmoy@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:18:15 -0500 Subject: [PATCH 3/5] Update 2023-10-19.md typo --- notes/2023-10-19.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes/2023-10-19.md b/notes/2023-10-19.md index ba314df..df64776 100644 --- a/notes/2023-10-19.md +++ b/notes/2023-10-19.md @@ -5,7 +5,7 @@ kernelspec: --- -# Why did we learn the plubming commands? +# Why did we learn the plumbing commands? You will not typically use them on a day to day basis, but they are a good way to see what happens at the interim steps and make sure that you have the right understanding of what git does. @@ -1061,4 +1061,4 @@ save your command history to `2023-10-19-log.txt` and put that file in your KWL ```{note} due to scheduling issues this will be late today -``` \ No newline at end of file +``` From 342909e0432ce4005d45f6767f4feecf605441a3 Mon Sep 17 00:00:00 2001 From: Trevor Moy <51927676+trevmoy@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:34:03 -0500 Subject: [PATCH 4/5] Added resources/understanding-logic-gates.md --- resources/understanding-logic-gates.md | 82 ++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 resources/understanding-logic-gates.md diff --git a/resources/understanding-logic-gates.md b/resources/understanding-logic-gates.md new file mode 100644 index 0000000..85441a8 --- /dev/null +++ b/resources/understanding-logic-gates.md @@ -0,0 +1,82 @@ +# Understanding Logic Gates + +## What are logic gates? + +Logic gates are used in digital circuits to preform logical functions in most electronics used today. + +There are many types of logic gates, the four main gates we will look at are AND, OR, XOR, and NAND. + +To understand how each one operates we can use truth tables to provide a better visual understanding. + +Note: truth tables use 0's and 1's as input to get its output. + +### AND Gate + +AND gates use the logic of if input A and input B are both value 1 then the output is 1. So if either of input A or B are value 0 then the output is 0. + +Truth Table: +| A | B | A AND B | +| --- | --- | :---: | +| 0 | 0 | 0 | +| 0 | 1 | 0 | +| 1 | 0 | 0 | +| 1 | 1 | 1 | + +### OR Gate + +OR gates use the logic of if input A or input B are value 1 then the output is 1. So if one of the inputs are 1 then the output; regardless of the other input, is also 1. + +Truth Table: +| A | B | A OR B | +| --- | --- | :---: | +| 0 | 0 | 0 | +| 0 | 1 | 1 | +| 1 | 0 | 1 | +| 1 | 1 | 1 | + +### XOR Gate + +XOR gates use the logic of if either input A or input B are value 1 then the output is 1 but if both are the same value then the output is 0. So if one of the inputs are a 1 then the output is 1, if both inputs are the same value then the output is 0. + +Truth Table: +| A | B | A XOR B | +| --- | --- | :---: | +| 0 | 0 | 0 | +| 0 | 1 | 1 | +| 1 | 0 | 1 | +| 1 | 1 | 0 | + +### NAND Gate + +NAND gates use the logic of if the inverse of input A has a value of 1 or if both input A and B are 0 then the output will be 1; otherwise, if the inverse of input A is 0 and input B is 1 then the output is 0. + +Truth Table: +| A | B | A NAND B | +| --- | --- | :---: | +| 0 | 0 | 1 | +| 0 | 1 | 1 | +| 1 | 0 | 1 | +| 1 | 1 | 0 | + +## Some Practice to learn the logic operations better + +A great way to understand and familiarize yourself with logic operators is to write functions for each logic gate in a program that take input A and B as parameters and return the output. + +Here is an example of an AND gate program in python: + +```{toggle} + +def andgate(inputA, inputB) -> list: + output = [] + for i in range(0,4): + if(inputA[i] == 1 && inputB[i] == 1): + output[i] == 1 + elif(inputA[i] != 1): + output[i] == 0 + return output + +``` + +## External resources + +- [Online Logic Simulator](https://lodev.org/logicemu/) \ No newline at end of file From c070cfc0089df6f069eac97268e46fc65772d409 Mon Sep 17 00:00:00 2001 From: Trevor Moy <51927676+trevmoy@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:43:34 -0500 Subject: [PATCH 5/5] Added resources/understanding-logic-gates.md --- resources/understanding-logic-gates.md | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/resources/understanding-logic-gates.md b/resources/understanding-logic-gates.md index 85441a8..492edf2 100644 --- a/resources/understanding-logic-gates.md +++ b/resources/understanding-logic-gates.md @@ -62,20 +62,9 @@ Truth Table: A great way to understand and familiarize yourself with logic operators is to write functions for each logic gate in a program that take input A and B as parameters and return the output. -Here is an example of an AND gate program in python: +#### Challenge -```{toggle} - -def andgate(inputA, inputB) -> list: - output = [] - for i in range(0,4): - if(inputA[i] == 1 && inputB[i] == 1): - output[i] == 1 - elif(inputA[i] != 1): - output[i] == 0 - return output - -``` +In your Inclass repo, create a program that contains each logic gate as a function and post your experience to the [discussions page](https://github.com/introcompsys/discussion-fa23-community/discussions). ## External resources