-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from LioQing/v0.2.2
v0.2.2
- Loading branch information
Showing
7 changed files
with
120 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
{ | ||
"name": "hku-timetable-viewer", | ||
"version": "0.2.1", | ||
"private": true, | ||
"homepage": "http://lioqing.github.io/hku-timetable-viewer", | ||
"dependencies": { | ||
"@emotion/react": "^11.9.0", | ||
"@emotion/styled": "^11.8.1", | ||
"@mui/icons-material": "^5.8.0", | ||
"@mui/material": "^5.8.1", | ||
"@mui/x-data-grid": "^5.13.1", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.3.0", | ||
"@testing-library/user-event": "^13.5.0", | ||
"file-saver": "^2.0.5", | ||
"lz-string": "^1.5.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-scripts": "5.0.1", | ||
"typescript": "^4.7.4", | ||
"web-vitals": "^2.1.4", | ||
"xlsx": "^0.18.5" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start WATCHPACK_POLLING=true", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@types/file-saver": "^2.0.5", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^16.11.45", | ||
"@types/react": "^18.0.15", | ||
"@types/react-dom": "^18.0.6" | ||
} | ||
} | ||
"name": "hku-timetable-viewer", | ||
"version": "0.2.2", | ||
"private": true, | ||
"homepage": "http://lioqing.github.io/hku-timetable-viewer", | ||
"dependencies": { | ||
"@emotion/react": "^11.9.0", | ||
"@emotion/styled": "^11.8.1", | ||
"@mui/icons-material": "^5.8.0", | ||
"@mui/material": "^5.8.1", | ||
"@mui/x-data-grid": "^5.13.1", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.3.0", | ||
"@testing-library/user-event": "^13.5.0", | ||
"file-saver": "^2.0.5", | ||
"lz-string": "^1.5.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-scripts": "5.0.1", | ||
"typescript": "^4.7.4", | ||
"web-vitals": "^2.1.4", | ||
"xlsx": "^0.18.5" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start WATCHPACK_POLLING=true", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
] | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@types/file-saver": "^2.0.5", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^16.11.45", | ||
"@types/react": "^18.0.15", | ||
"@types/react-dom": "^18.0.6" | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# make a function to calculate the distance between two points | ||
def distance(x1, y1, x2, y2): | ||
return ((x1-x2)**2 + (y1-y2)**2)**0.5 | ||
|
||
# calculate the distance between (0,0) and (1, 5) | ||
|
||
d = distance(0, 0, 1, 5) | ||
print(d) |