chore: rm old todos and redundant files
This commit is contained in:
parent
638a0dab57
commit
3b5bf5196e
18 changed files with 11 additions and 46 deletions
|
@ -6,8 +6,6 @@ tags: [CPU]
|
||||||
|
|
||||||
## The Little Man Computer
|
## The Little Man Computer
|
||||||
|
|
||||||
// TODO: Improve notes and learn how to use
|
|
||||||
|
|
||||||
The [Little Man Computer](https://peterhigginson.co.uk/lmc/) is a simplified computer that works on Von Neuman principles. It has all the CPU components we have detailed above. It is programmed in machine code but for simplicity it uses the denary rather than the binary number system.
|
The [Little Man Computer](https://peterhigginson.co.uk/lmc/) is a simplified computer that works on Von Neuman principles. It has all the CPU components we have detailed above. It is programmed in machine code but for simplicity it uses the denary rather than the binary number system.
|
||||||
|
|
||||||

|

|
||||||
|
|
|
@ -26,8 +26,6 @@ const courseSchema = new mongoose.Schema({
|
||||||
|
|
||||||
> This is similar to declaring a type or interface in TypeScript
|
> This is similar to declaring a type or interface in TypeScript
|
||||||
|
|
||||||
// TODO: Add printout of what the rejection will look like in the console.
|
|
||||||
|
|
||||||
#### Available data types
|
#### Available data types
|
||||||
|
|
||||||
The following data types are available:
|
The following data types are available:
|
||||||
|
|
|
@ -23,12 +23,12 @@ async function updateCourseFromQuery(id) {
|
||||||
if (!course) return;
|
if (!course) return;
|
||||||
course.set({
|
course.set({
|
||||||
isPublished: true,
|
isPublished: true,
|
||||||
author: 'A new author',
|
author: "A new author",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Instead of an object, we could also set the updated properties individually
|
// Instead of an object, we could also set the updated properties individually
|
||||||
course.isPublished = true;
|
course.isPublished = true;
|
||||||
course.author = 'Biggs Volunksire';
|
course.author = "Biggs Volunksire";
|
||||||
|
|
||||||
const result = course.save();
|
const result = course.save();
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
@ -43,10 +43,10 @@ To do this we directly use the `update` method, not `find`:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
async function updateCourseFromQuery(id) {
|
async function updateCourseFromQuery(id) {
|
||||||
const result = await Course.update({_id: id});
|
const result = await Course.update({ _id: id });
|
||||||
$set: {
|
$set: {
|
||||||
// Invoke the set operator
|
// Invoke the set operator
|
||||||
author: 'Terry Nutile';
|
author: "Terry Nutile";
|
||||||
isPublished: true;
|
isPublished: true;
|
||||||
}
|
}
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
@ -70,4 +70,4 @@ If we don't add `{new: true}`, it will return the document before the update.
|
||||||
|
|
||||||
### Updating multiple documents at once
|
### Updating multiple documents at once
|
||||||
|
|
||||||
// TODO : Add notes on this
|
// Add: notes on this
|
||||||
|
|
|
@ -43,4 +43,4 @@ A basic example of a REST API would be a series of methods corresponding to the
|
||||||
| DELETE | /api/customers/1 | Delete a customer | No, data comes from GUID |
|
| DELETE | /api/customers/1 | Delete a customer | No, data comes from GUID |
|
||||||
| POST | /api/customers | Create a new customer | Yes |
|
| POST | /api/customers | Create a new customer | Yes |
|
||||||
|
|
||||||
// TODO: Add PATCH and explain differenct from PUT
|
// Add: PATCH and explain differenct from PUT
|
||||||
|
|
|
@ -44,7 +44,7 @@ The actual location is still hidden and decided by Docker.
|
||||||
|
|
||||||
As these are anonymous they will show ups as GUIDs in the volume viewer in Docker Desktop:
|
As these are anonymous they will show ups as GUIDs in the volume viewer in Docker Desktop:
|
||||||
|
|
||||||
// TODO: add screenshot
|
// Add: screenshot
|
||||||
|
|
||||||
### Commands
|
### Commands
|
||||||
|
|
||||||
|
|
|
@ -76,5 +76,3 @@ _Parallel battery circuit diagram:_
|
||||||
### Series-parrallel
|
### Series-parrallel
|
||||||
|
|
||||||
If we want both a higher voltage and a higher current we can use series-parallel configurations. Connecting cells in series increases the voltage and connecting cells in parellel increases the current so doint both boosts the amount of both quantities.
|
If we want both a higher voltage and a higher current we can use series-parallel configurations. Connecting cells in series increases the voltage and connecting cells in parellel increases the current so doint both boosts the amount of both quantities.
|
||||||
|
|
||||||
// TODO: Add notes on series parallel once I have a better grasp of the basics of circuits.
|
|
||||||
|
|
|
@ -43,5 +43,3 @@ The relationship between current, resistance and voltage is expressed in [Ohm's
|
||||||
## Resistors
|
## Resistors
|
||||||
|
|
||||||
A resistor is an electrical component that can be used in circuits to introduce specific amounts to resistance where needed. This is typically done in order to temper the total voltage and so keep the current flowing within certain set parameters.
|
A resistor is an electrical component that can be used in circuits to introduce specific amounts to resistance where needed. This is typically done in order to temper the total voltage and so keep the current flowing within certain set parameters.
|
||||||
|
|
||||||
// TODO: Add image of different resistor types and further info on their differences and the physics behind how they work.
|
|
||||||
|
|
|
@ -18,5 +18,3 @@ _An integrated circuit and its use on a breadboard:_
|
||||||
|
|
||||||
<img align="left" width="200" src="/home/thomas/repos/computer_science/_img/integrated-circuit.jpeg">
|
<img align="left" width="200" src="/home/thomas/repos/computer_science/_img/integrated-circuit.jpeg">
|
||||||
<img width="200" src="/home/thomas/repos/computer_science/_img/breadboard-DIP.jpg">
|
<img width="200" src="/home/thomas/repos/computer_science/_img/breadboard-DIP.jpg">
|
||||||
|
|
||||||
// TODO: Add diagrams of different IC gate types
|
|
||||||
|
|
|
@ -28,11 +28,11 @@ The gate _interface_ is an abstraction that the enables the user to think of the
|
||||||
|
|
||||||
We can demonstrate this with the earlier example of a three-way AND. The diagram below represents the gate as an interface:
|
We can demonstrate this with the earlier example of a three-way AND. The diagram below represents the gate as an interface:
|
||||||
|
|
||||||
// TODO: Interface diagram
|
// Add: Interface diagram
|
||||||
|
|
||||||
Whereas this diagram presents the implementation of the gate: it shows the specific combination of gates which creates the enables the behaviour represented in the interface diagram.
|
Whereas this diagram presents the implementation of the gate: it shows the specific combination of gates which creates the enables the behaviour represented in the interface diagram.
|
||||||
|
|
||||||
// TODO: Implementation diagra>m
|
// Add: Implementation diagram
|
||||||
|
|
||||||
> Importantly, a single interface may be implemented in a variety of ways. There is a one-to-many relationship at work here. From the point of view of the user interface these differences should not be detectable. This is another example of [hardware abstraction](/Computer_Architecture/Hardware_abstraction_and_modularity.md)
|
> Importantly, a single interface may be implemented in a variety of ways. There is a one-to-many relationship at work here. From the point of view of the user interface these differences should not be detectable. This is another example of [hardware abstraction](/Computer_Architecture/Hardware_abstraction_and_modularity.md)
|
||||||
|
|
||||||
|
|
|
@ -113,8 +113,6 @@ The image below shows the propagation of an electromagnetic wave through space.
|
||||||
|
|
||||||
## Using magnetism to generate electricity
|
## Using magnetism to generate electricity
|
||||||
|
|
||||||
// TODO: Explain electrical induction, Faraday, the important role of iron and rotating coil stuff.
|
|
||||||
|
|
||||||
## Understand better:
|
## Understand better:
|
||||||
|
|
||||||
- How do EM waves relate to simple electrical circuits.
|
- How do EM waves relate to simple electrical circuits.
|
||||||
|
|
|
@ -38,4 +38,4 @@ You will want the swap to be activated every time the OS boots so add the follow
|
||||||
|
|
||||||
## Create a swap file
|
## Create a swap file
|
||||||
|
|
||||||
// TODO: Add info here
|
// Add info here
|
||||||
|
|
|
@ -9,5 +9,3 @@ tags:
|
||||||
# v8
|
# v8
|
||||||
|
|
||||||
The v8 module is useful for providing information about the resource-usage of your Node.js apps, such as memory usage and capacity.
|
The v8 module is useful for providing information about the resource-usage of your Node.js apps, such as memory usage and capacity.
|
||||||
|
|
||||||
// TODO: Add example usage
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
// TODO Add details of Helmet and examples of use.
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
categories:
|
|
||||||
- Programming Languages
|
|
||||||
tags: [python, testing]
|
|
||||||
---
|
|
||||||
|
|
||||||
# Unit testing in Python
|
|
||||||
|
|
||||||
// TODO: Complete this entry
|
|
|
@ -10,7 +10,7 @@ In Python, anonymous functions like arrow-functions in JavaScript (`() => {}`) a
|
||||||
|
|
||||||
Whilst they are unnamed, just like JS, the value they return can be stored in a variable. They do not require the `return` keyword.
|
Whilst they are unnamed, just like JS, the value they return can be stored in a variable. They do not require the `return` keyword.
|
||||||
|
|
||||||
They are most often used unnamed with the functional methods [map, filter and reduce](/Programming_Languages/Python/Syntax/Map_filter_reduce_in_Python.md)
|
They are most often used unnamed with the functional methods [map, filter](/Programming_Languages/Python/Syntax/Map_and_filter_in_Python.md) and reduce.
|
||||||
|
|
||||||
Here is the two syntaxes side by side:
|
Here is the two syntaxes side by side:
|
||||||
|
|
||||||
|
|
|
@ -131,8 +131,6 @@ echo ${PATH}
|
||||||
|
|
||||||
For example, if you wish to use `npm` commands globally (in any directory) you will need to have the requisite Node executable in your path, which you can see above.
|
For example, if you wish to use `npm` commands globally (in any directory) you will need to have the requisite Node executable in your path, which you can see above.
|
||||||
|
|
||||||
TODO: Add more info about the path when I have it.
|
|
||||||
|
|
||||||
### `SHELL`
|
### `SHELL`
|
||||||
|
|
||||||
This describes the shell that will be interpreting any commands you type in. In most cases, this will be bash by default, but other values can be set if you prefer other options.
|
This describes the shell that will be interpreting any commands you type in. In most cases, this will be bash by default, but other values can be set if you prefer other options.
|
||||||
|
|
|
@ -53,6 +53,4 @@ fi
|
||||||
|
|
||||||
## Parameter expansion
|
## Parameter expansion
|
||||||
|
|
||||||
// TODO: What is the difference betweeen `$var`, `${var}` and `"${var}"` ?
|
|
||||||
|
|
||||||
Still not very clear on this.
|
Still not very clear on this.
|
||||||
|
|
|
@ -54,13 +54,6 @@
|
||||||
|
|
||||||
## Git
|
## Git
|
||||||
|
|
||||||
- [x] What is rebasing?
|
|
||||||
- [x] What is `git switch`
|
|
||||||
- [x] What is cherry-picking
|
|
||||||
- [x] Tagging (also in relation to Git flow)
|
|
||||||
- [x] How can you rollback without a hard-reset, i.e. how can you keep the future state (from the point of view of the rolled-back branch) accessible?
|
|
||||||
- [ ] Difference between restore and reset
|
|
||||||
|
|
||||||
## JavaScript
|
## JavaScript
|
||||||
|
|
||||||
Look into these new features:
|
Look into these new features:
|
||||||
|
|
Loading…
Add table
Reference in a new issue