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
print("Solving for the hypotenuse, c, of a right triangle.") | |
a=input("input length of a:") | |
b=input("input length of b:") | |
a=float(a) | |
b=float(b) | |
c=((a**2+b**2)**0.5) | |
print(c) |
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
import math | |
print("Solving for theta of force components x and y.") | |
x=input("input force component x:") | |
y=input("input force component y:") | |
x=float(x) | |
y=float(y) | |
z=math.atan(y/x) | |
theta=math.degrees(z) | |
print(theta) |
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
import math | |
print("Solving for theta of force components x and y.") | |
x=input("input force component x:") | |
y=input("input force component y:") | |
x=float(x) | |
y=float(y) | |
z=math.atan(y/x) | |
theta=math.degrees(z) | |
w=((x**2+y**2)**0.5) | |
print(w) |
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
{ | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"prettier.useTabs": true, | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"prettier.trailingComma": "none", | |
"eslint.alwaysShowStatus": true, | |
"eslint.debug": true, | |
"eslint.validate": [ | |
"javascript", | |
"javascriptreact", |
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
$ mkdir server && cd server && npm init -y |
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
$ npm i --save express mongodb && npm i --save-dev @types/express @types/mongodb @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser dotenv eslint nodemon ts-node typescript |
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
$ touch .env .eslintrcjson tsconfig.json && mkdir src && cd src && touch index.ts && cd .. |
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
import {IconDefinition, IconLookup, IconName, IconPrefix, IconPathData, IconPack } from '@fortawesome/fontawesome-common-types'; | |
export {IconDefinition, IconLookup, IconName, IconPrefix, IconPathData, IconPack } from '@fortawesome/fontawesome-common-types'; | |
export const dom: DOM; | |
export const library: Library; | |
export const parse: { transform(transformString: string): Transform }; | |
export const config: Config; | |
export function noAuto():void; | |
export function findIconDefinition(iconLookup: IconLookup): IconDefinition; | |
export function text(content: string, params?: TextParams): Text; | |
export function counter(content: string | number, params?: CounterParams): Counter; |
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
export type IconPrefix = "fas" | "fab" | "far" | "fal" | "fad"; | |
export type IconPathData = string | string[] | |
export interface IconLookup { | |
prefix: IconPrefix; | |
// IconName is defined in the code that will be generated at build time and bundled with this file. | |
iconName: IconName; | |
} | |
export interface IconDefinition extends IconLookup { |
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
export type IconPrefix = "fas" | "fab" | "far" | "fal" | "fad"; | |
export type IconPathData = string | string[] | |
export interface IconLookup { | |
prefix: IconPrefix; | |
// IconName is defined in the code that will be generated at build time and bundled with this file. | |
iconName: IconName; | |
} | |
export type IconName = '500px' | |
OlderNewer