Skip to content

Commit da33ed4

Browse files
added code we are going to work on
1 parent 384c1a6 commit da33ed4

File tree

101 files changed

+16745
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+16745
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
All notable changes to the "chatgpt" extension will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## [Unreleased]
8+
9+
- Initial release

dist/extension.js

Lines changed: 349 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/extension.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

documentation/.bin/bin.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
const {execSync} = require ('child_process');
3+
const runCommand = command => {
4+
try {
5+
execSync(`${command}`, {stdio: 'inherit'});
6+
} catch (e) {
7+
console.error ('Failed to execute ${command}', e);
8+
return false;
9+
}
10+
return true;
11+
}
12+
13+
const repoName = process.argv [2];
14+
const gitCheckoutCommand = `git clone --depth 1 https://github.com/ApplebaumIan/tu-cis-4398-docs-template.git ${repoName} && cd ${repoName} && rm -rf .git && git init && cd ..`;
15+
const installDepsCommand = `cd ${repoName}/documentation && yarn`;
16+
console.log( `Cloning the repository with name ${repoName}`);
17+
const checkedOut = runCommand (gitCheckoutCommand);
18+
if(!checkedOut) process.exit ( -1);
19+
console.log('Installing dependencies for ${repoName}');
20+
const installedDeps = runCommand (installDepsCommand);
21+
if(!installedDeps) process.exit( -1);
22+
console.log ("Congratulations! You are ready. Follow the following commands to start");
23+
console.log(`cd ${repoName}/documentation && PROJECT_NAME=${repoName} yarn start`)

documentation/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
../.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

documentation/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ PROJECT_NAME=your-project-name yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ PROJECT_NAME=your-project-name yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

documentation/babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "API Specification",
3+
"position": 7,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Please remove and replace examples where necessary."
7+
}
8+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# CalculatorModel.java
6+
(generated using [Javadoc to Markdown](https://delight-im.github.io/Javadoc-to-Markdown/))
7+
8+
## `public class CalculatorModel`
9+
10+
This is the model of this MVC implementation of a calculator. It performs the functions of the calculator and keeps track of what the user has entered.
11+
12+
* **Author:** Tom Bylander
13+
14+
## `private double displayValue`
15+
16+
This is the numeric value of the number the user is entering, or the number that was just calculated.
17+
18+
## `private double internalValue`
19+
20+
This is the previous value entered or calculated.
21+
22+
## `private String displayString`
23+
24+
This is the String corresponding to what the user. is entering
25+
26+
## `private String operation`
27+
28+
This is the last operation entered by the user.
29+
30+
## `private boolean start`
31+
32+
This is true if the next digit entered starts a new value.
33+
34+
## `private boolean dot`
35+
36+
This is true if a decimal dot has been entered for the current value.
37+
38+
## `public CalculatorModel()`
39+
40+
Initializes the instance variables.
41+
42+
## `public String getValue()`
43+
44+
* **Returns:** the String value of what was just calculated
45+
46+
or what the user is entering
47+
48+
## `public void update(String text)`
49+
50+
Updates the values maintained by the calculator based on the button that the user has just clicked.
51+
52+
* **Parameters:** `text` — is the name of the button that the user has just clicked
53+
54+
## `public double operationAdd(double rhs, double lhs)`
55+
56+
Operation to add two numbers. <pre> operationAdd(3,2); // should equal 5.0 </pre>
57+
58+
* **Parameters:**
59+
* `rhs``double` representing the right hand side of the operator
60+
* `lhs``double` representing the left hand side of the operator
61+
* **Returns:** `double`

0 commit comments

Comments
 (0)