19 | Lorem ipsum dolor sit amet consectetur adipisicing elit. In, quaerat voluptatibus! Repellendus tempore molestiae culpa quidem dolorum modi, velit doloribus nihil. Quis eos, perferendis voluptates consequuntur sit ex necessitatibus veritatis?
20 |
57 | );
58 | }
59 |
60 | export default App;
61 |
--------------------------------------------------------------------------------
/11-responsive-web-dev/lecture-5/dist/main.77bb5cfd.css.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["scss/main.scss","scss/settings/_font.scss","scss/settings/_colors.scss"],"names":[],"mappings":"AAaE;EACE,OAVE;;;AAcN;EACE;;AAEA;EACE;;;AAIJ;EACE;EACA;;AAEA;EACE;EACA;;AAEA;EACE;;;AAKN;EACE;EACA;EACA;;;AAGF;EAGE;EACA;;;AAGF;EAGE;EACA;;;AAMA;EAKF;IAEI;IACA,WCrES;;;;AD0EX;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AAKF;EACE,OE/EK;;;AF8EP;EACE,OE/EK;;;AF8EP;EACE,OE/EK","file":"main.77bb5cfd.css","sourceRoot":"..","sourcesContent":["@use 'sass:map';\n@import 'settings/colors';\n@import 'settings/font';\n\n$red: #555445;\n\n$breakpoints: (\n small: 576px,\n medium: 768px,\n large: 992px\n);\n\ndiv {\n p {\n color: $red;\n }\n}\n\n.wrapper {\n font-size: 3rem;\n\n &:hover {\n color: blue;\n }\n}\n\n.box {\n height: 200px;\n aspect-ratio: 1;\n\n &__small-box {\n height: 100px;\n aspect-ratio: 1;\n\n &--green {\n background: green;\n }\n }\n}\n\n%button {\n cursor: pointer;\n padding: 1rem 1.5rem;\n font-weight: bold;\n}\n\n.button-primary {\n @extend %button;\n\n background: blue;\n color: white;\n}\n\n.button-secondary {\n @extend %button;\n \n border: 1px solid blue;\n color: blue;\n}\n\n@mixin apply_media_query($key) {\n $size: map.get($breakpoints, $key);\n\n @media screen and (max-width: $size){\n @content;\n }\n}\n\n.red {\n @include apply_media_query(large){\n background: blue;\n font-size: $font-large;\n }\n}\n\n@for $i from 1 through 12 {\n .col-#{$i} {\n flex: 0 0 (100/(12/$i));\n }\n}\n\n@each $key, $value in $colors {\n .text-#{$key} {\n color: $value;\n }\n}","$font-small: 10px;\n$font-med: 15px;\n$font-large: 20px;","$red: red;\n$white: white;\n$primary: blue;\n\n$colors: (\n red: $red,\n whiye: $white,\n primary: $primary\n)"]}
--------------------------------------------------------------------------------
/09-node-express-server/task-list-http-server/server.js:
--------------------------------------------------------------------------------
1 | const express = require('express')
2 | const app = express()
3 |
4 | /**
5 | * Imagine there is a list of tasks like this:
6 | * 1. Enroll to Scaler
7 | * 2. Learn Node.js
8 | * 3. Learn React.js
9 | * 4. Get a job
10 | * 5. Get a girlfriend/boyfriend
11 | *
12 | */
13 |
14 | /**
15 | * When GET request is sent to 127.0.0.1:4114/tasks,
16 | * response will be
17 | * [
18 | * 'Enroll to Scaler',
19 | * 'Learn Node.js',
20 | * 'Learn React.js',
21 | * 'Get a job',
22 | * 'Get a girlfriend/boyfriend'
23 | * ]
24 | */
25 | app.get('/tasks', (req, res) => {
26 |
27 | })
28 |
29 | /**
30 | * If GET request is sent to 127.0.0.1:4114/tasks/1,
31 | * Then response will be
32 | *
33 | * 'Enroll to Scaler'
34 | *
35 | * If GET request is sent to 127.0.0.1:4114/tasks/2
36 | * Then response will be
37 | *
38 | * 'Learn Node.js'
39 | */
40 |
41 | app.get('/tasks/:id', (req, res) => {
42 |
43 | // BONUS: figure out how `:id` part works
44 | })
45 |
46 | app.delete('/tasks/:id', (req, res) => {
47 |
48 | // Delete task with given id
49 | })
50 |
51 | /**
52 | * When POST request is sent to 127.0.0.1:4114/tasks,
53 | * with the body:
54 | * { "task": "Complete NodeJS Assignment" }
55 | *
56 | * Then a new task will be added to the list.
57 | *
58 | * 6. Complete NodeJS Assignment
59 | */
60 |
61 | app.post('/tasks', (req, res) => {
62 |
63 | })
64 |
65 | app.listen(4114, () => {
66 | console.log('server started on http://127.0.0.1:4114')
67 | })
68 |
69 | /**
70 | * BONUS:
71 | * - Save the tasks to a file tasks.json
72 | * - Update the file every time a new task is created/deleted
73 | * - When server is restarted, old tasks should be available
74 | * - Read the file at server start to load the saved tasks
75 | */
--------------------------------------------------------------------------------
/06-react-ii/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | Netflix Landing
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/07-react-movie-db/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/13-typescript/typescript-react-1/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/13-typescript/index.js:
--------------------------------------------------------------------------------
1 | var __assign = (this && this.__assign) || function () {
2 | __assign = Object.assign || function(t) {
3 | for (var s, i = 1, n = arguments.length; i < n; i++) {
4 | s = arguments[i];
5 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6 | t[p] = s[p];
7 | }
8 | return t;
9 | };
10 | return __assign.apply(this, arguments);
11 | };
12 | // Strict Type Assignment
13 | var abc = 23;
14 | // abc = "something";
15 | console.log(abc);
16 | // Strict Typing Lists
17 | var list1 = [45, 56, 78];
18 | // let list2: string[] = ["bipin", "is", "teaching", 5]
19 | var list3 = [45, true, "s"];
20 | console.log(list1, list3);
21 | var random = "random";
22 | random = 24;
23 | // random = true;
24 | var font = "italic";
25 | var myCar;
26 | // myCar.something = true;
27 | // myCar.something = "random";
28 | // myCar.random = "random";
29 | // Strong Typing a Function
30 | function addtwo(x, y) {
31 | return (x + y).toString();
32 | }
33 | console.log(addtwo(2, 3));
34 | var newTuple = [23, "b", true, 54];
35 | // Angle brackets contain the generic part
36 | // Generics in functions
37 | // function getArray(items: any[]): any[] {
38 | // return new Array().concat(items)
39 | // }
40 | var lastElement = function (arr) {
41 | return arr[arr.length - 1];
42 | };
43 | var l1 = lastElement([1, 2, 3]);
44 | var l2 = lastElement(['a', 'b', 'c']);
45 | var l3 = lastElement([1, 'a', 3]);
46 | var makeArray = function (x, y) {
47 | return [x, y];
48 | };
49 | var a1 = makeArray(5, 6);
50 | var a2 = makeArray(5, 'b');
51 | var a3 = makeArray(null, '5'); // You can add unions while calling a function with generic type
52 | ;
53 | var makeFullName = function (obj) {
54 | return __assign(__assign({}, obj), { fullName: obj.firstName + " " + obj.lastName });
55 | };
56 | var f1 = makeFullName({
57 | firstName: "something",
58 | lastName: "sinclair",
59 | age: 25,
60 | random: true
61 | });
62 | var something;
63 | var me;
64 |
--------------------------------------------------------------------------------
/11-responsive-web-dev/lecture-2/styles.css:
--------------------------------------------------------------------------------
1 | :root {
2 | font-size: 14px;
3 | }
4 |
5 | /* button {
6 | background: unset;
7 | border: unset;
8 | } */
9 |
10 | .flex-container {
11 | display: flex;
12 | position: relative;
13 | border: 1px solid black;
14 | justify-content: space-evenly;
15 | align-items: center;
16 | /* justify-content: space-evenly;
17 | align-items: start;
18 | align-content: start;
19 | flex-wrap: wrap;
20 | height: 100vh; */
21 | height: 100vh;
22 | flex-direction: column;
23 |
24 | }
25 |
26 | .box {
27 | background: grey;
28 | border: 2px solid red;
29 | width: 100px;
30 | color: white;
31 | font-weight: 7000;
32 | }
33 |
34 | .box-1 {
35 | min-height: 100px;
36 | /* flex-shrink: 0; */
37 | /* flex: 1; */
38 | /* align-self: flex-start; */
39 | justify-self: center;
40 | }
41 |
42 | .box-2 {
43 | min-height: 200px;
44 | /* min-width: 100px; */
45 | /* flex-grow: 2; */
46 | /* flex-basis: 300px; */
47 | justify-self: flex-start;
48 | }
49 |
50 | .box-3 {
51 | min-height: 300px;
52 | /* flex-grow: 1; */
53 | /* flex-basis: 0; */
54 | align-self: flex-end;
55 | }
56 |
57 | .main-axis {
58 | position: absolute;
59 | top: 50%;
60 | left: 0;
61 | width: 100%;
62 | height: 2px;
63 | background: pink;
64 | }
65 |
66 | .cross-axis {
67 | position: absolute;
68 | top: 0;
69 | left: 50%;
70 | width: 2px;
71 | height: 100%;
72 | background: cyan;
73 | }
74 |
75 | button {
76 | border: 1px solid blue;
77 | border-radius: 2px;
78 | padding: 5px 10px;
79 | }
80 |
81 | button:hover {
82 | background: blue;
83 | color: white;
84 | }
85 |
86 | .container {
87 | border: 1px solid red;
88 | /* height: 100px; */
89 | max-width: 600px;
90 | margin: 0 auto;
91 | height: 100vh;
92 | position: relative;
93 | /* if there is any absolute item inside, position it relative to this parent */
94 | }
95 |
96 | img {
97 | max-width: 100%;
98 | height: 200px;
99 | position: absolute;
100 | bottom: 0;
101 | right: 0;
102 | }
103 |
104 | @media (min-width: 1000px) {
105 | .container {
106 | display: flex;
107 | }
108 |
109 | img {
110 | margin-right: 30px;
111 | }
112 | }
--------------------------------------------------------------------------------
/13-typescript/typescript-react-1/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `npm start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will also see any lint errors in the console.
16 |
17 | ### `npm test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `npm run build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `npm run eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 |
36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37 |
38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39 |
40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
--------------------------------------------------------------------------------
/06-react-ii/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/07-react-movie-db/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/13-typescript/typescript-react-1/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/12-hangman/styles/components/_hangman.scss:
--------------------------------------------------------------------------------
1 | .hangman-container {
2 | position: relative;
3 | padding-left: 10rem;
4 | padding-top: 8rem;
5 | box-sizing: border-box;
6 | height: calc(760px + 2rem);
7 | }
8 |
9 | .pole {
10 | position: absolute;
11 | height: 750px;
12 | top: 2rem;
13 | left: 3rem;
14 | border-left: 10px solid $pink-dark;
15 | border-top: 10px solid $pink-dark;
16 | width: 10rem;
17 | // z-index: -1;
18 |
19 | &::after {
20 | content: "";
21 | height: 5.5rem;
22 | width: 10px;
23 | background: $pink-dark;
24 | position: absolute;
25 | right: 0;
26 | }
27 | }
28 |
29 | .hangman {
30 | position: relative;
31 |
32 | &__element {
33 | opacity: 0.25;
34 |
35 | &:nth-child(1) {
36 | height: 100px;
37 | width: 100px;
38 | border-radius: 50%;
39 | border: 10px solid $dark-color;
40 | }
41 |
42 | &:not(:first-child) {
43 | height: 100px;
44 | width: 10px;
45 | background: $dark-color;
46 | }
47 |
48 | &:nth-child(2) {
49 | position: absolute;
50 | height: 300px;
51 | left: 55px;
52 | }
53 |
54 | &:nth-child(3) {
55 | position: absolute;
56 | transform: rotate(45deg);
57 | top: 150px;
58 | left: 20px;
59 | }
60 |
61 | &:nth-child(4) {
62 | position: absolute;
63 | transform: rotate(-45deg);
64 | top: 150px;
65 | left: 90px;
66 | }
67 |
68 | &:nth-child(5) {
69 | position: absolute;
70 | transform: rotate(45deg);
71 | top: 400px;
72 | left: 20px;
73 | }
74 |
75 | &:nth-child(6) {
76 | position: absolute;
77 | transform: rotate(-45deg);
78 | top: 400px;
79 | left: 90px;
80 | }
81 | }
82 | }
83 |
84 | @for $i from 1 through 6 {
85 | .hangman-#{$i} {
86 | @for $j from 1 through $i {
87 | .hangman__element:nth-child(#{$j}) {
88 | opacity: 1;
89 | }
90 | }
91 |
92 | @if $i == 6 {
93 | .hangman__element:nth-child(1) {
94 | &::after {
95 | content: "● ●";
96 | font-size: 3rem;
97 | color: $dark-color;
98 | position: absolute;
99 | }
100 |
101 | &::before {
102 | content: "(";
103 | font-size: 3rem;
104 | position: absolute;
105 | font-family: sans-serif;
106 | transform: rotate(90deg);
107 | font-weight: bold;
108 | top: 60px;
109 | left: 50px;
110 | }
111 | }
112 | }
113 | }
114 | }
--------------------------------------------------------------------------------
/12-hangman/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 | .pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | web_modules/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Optional stylelint cache
58 | .stylelintcache
59 |
60 | # Microbundle cache
61 | .rpt2_cache/
62 | .rts2_cache_cjs/
63 | .rts2_cache_es/
64 | .rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | .node_repl_history
68 |
69 | # Output of 'npm pack'
70 | *.tgz
71 |
72 | # Yarn Integrity file
73 | .yarn-integrity
74 |
75 | # dotenv environment variable files
76 | .env
77 | .env.development.local
78 | .env.test.local
79 | .env.production.local
80 | .env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | .cache
84 | .parcel-cache
85 |
86 | # Next.js build output
87 | .next
88 | out
89 |
90 | # Nuxt.js build / generate output
91 | .nuxt
92 | dist
93 |
94 | # Gatsby files
95 | .cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | .vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | .temp
105 | .cache
106 |
107 | # Docusaurus cache and generated files
108 | .docusaurus
109 |
110 | # Serverless directories
111 | .serverless/
112 |
113 | # FuseBox cache
114 | .fusebox/
115 |
116 | # DynamoDB Local files
117 | .dynamodb/
118 |
119 | # TernJS port file
120 | .tern-port
121 |
122 | # Stores VSCode versions used for testing VSCode extensions
123 | .vscode-test
124 |
125 | # yarn v2
126 | .yarn/cache
127 | .yarn/unplugged
128 | .yarn/build-state.yml
129 | .yarn/install-state.gz
130 | .pnp.*
131 |
--------------------------------------------------------------------------------
/13-hangman-frontend/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 | .pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | web_modules/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Optional stylelint cache
58 | .stylelintcache
59 |
60 | # Microbundle cache
61 | .rpt2_cache/
62 | .rts2_cache_cjs/
63 | .rts2_cache_es/
64 | .rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | .node_repl_history
68 |
69 | # Output of 'npm pack'
70 | *.tgz
71 |
72 | # Yarn Integrity file
73 | .yarn-integrity
74 |
75 | # dotenv environment variable files
76 | .env
77 | .env.development.local
78 | .env.test.local
79 | .env.production.local
80 | .env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | .cache
84 | .parcel-cache
85 |
86 | # Next.js build output
87 | .next
88 | out
89 |
90 | # Nuxt.js build / generate output
91 | .nuxt
92 | dist
93 |
94 | # Gatsby files
95 | .cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | .vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | .temp
105 | .cache
106 |
107 | # Docusaurus cache and generated files
108 | .docusaurus
109 |
110 | # Serverless directories
111 | .serverless/
112 |
113 | # FuseBox cache
114 | .fusebox/
115 |
116 | # DynamoDB Local files
117 | .dynamodb/
118 |
119 | # TernJS port file
120 | .tern-port
121 |
122 | # Stores VSCode versions used for testing VSCode extensions
123 | .vscode-test
124 |
125 | # yarn v2
126 | .yarn/cache
127 | .yarn/unplugged
128 | .yarn/build-state.yml
129 | .yarn/install-state.gz
130 | .pnp.*
131 |
--------------------------------------------------------------------------------
/01-html-101/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
11 |
heading 1
12 |
heading 2
13 |
heading 3
14 |
heading 4
15 |
heading 5
16 |
heading 6
17 | this is some normal text
18 |
this is a paragraph
19 |
this is a div
20 | this is a span
21 |
22 | This is bold text
23 |
24 | This is italic text
25 |
26 | This is underline text
27 |
28 | JS
29 |
30 |
Lists
31 |
32 |
33 |
aidgf
34 |
aidgf
35 |
aidgf
36 |
aidgf
37 |
38 |
39 |
40 |
aidgf
41 |
aidgf
42 |
aidgf
43 |
aidgf
44 |
45 |
46 |
47 |
aidgf
48 |
aidgf
49 |
aidgf
50 |
aidgf
51 |
52 |
53 |
54 |
55 |
aidgf
56 |
aidgf
57 |
aidgf
58 |
aidgf
59 |
60 |
61 |
62 |
aidgf
63 |
aidgf
64 |
aidgf
65 |
aidgf
66 |
67 |
68 |
69 |
aidgf
70 |
aidgf
71 |
aidgf
72 |
aidgf
73 |
74 |
75 |
Nested Lists
76 |
77 |
78 |
one
79 |
80 |
one point one
81 |
one point two
82 |
83 |
84 |
two
85 |
three
86 |
87 |
88 |
Form Elements
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 | A
99 | B
100 | C
101 |
102 | A
103 | B
104 | C
105 |
106 | Apple
107 | Banana
108 | Chikoo
109 |
110 |
Google Search
111 |
115 |
116 |
117 |
--------------------------------------------------------------------------------
/06-react-ii/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `yarn start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will also see any lint errors in the console.
16 |
17 | ### `yarn test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `yarn build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `yarn eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 |
36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37 |
38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39 |
40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
48 | ### Code Splitting
49 |
50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51 |
52 | ### Analyzing the Bundle Size
53 |
54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55 |
56 | ### Making a Progressive Web App
57 |
58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59 |
60 | ### Advanced Configuration
61 |
62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63 |
64 | ### Deployment
65 |
66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67 |
68 | ### `yarn build` fails to minify
69 |
70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
71 |
--------------------------------------------------------------------------------
/07-react-movie-db/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `yarn start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will also see any lint errors in the console.
16 |
17 | ### `yarn test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `yarn build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `yarn eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 |
36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37 |
38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39 |
40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
48 | ### Code Splitting
49 |
50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51 |
52 | ### Analyzing the Bundle Size
53 |
54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55 |
56 | ### Making a Progressive Web App
57 |
58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59 |
60 | ### Advanced Configuration
61 |
62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63 |
64 | ### Deployment
65 |
66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67 |
68 | ### `yarn build` fails to minify
69 |
70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
71 |
--------------------------------------------------------------------------------
/11-responsive-web-dev/lecture-4/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
43 |
44 |
45 |
46 |
47 |
48 |
54 |
55 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/13-typescript/index.ts:
--------------------------------------------------------------------------------
1 | // Strict Type Assignment
2 | let abc: number = 23;
3 | // abc = "something";
4 |
5 | console.log(abc);
6 |
7 | // Strict Typing Lists
8 | let list1: number[] = [45,56,78];
9 | // let list2: string[] = ["bipin", "is", "teaching", 5]
10 | let list3: any[] = [45, true, "s"]
11 |
12 | console.log(list1, list3);
13 | // console.log(something)
14 |
15 | // Custom Types
16 | type style = number | string; // Union of two types
17 | type decoration = "bold" | "italic";
18 |
19 | let random: style = "random";
20 | random = 24;
21 | // random = true;
22 |
23 | let font: decoration = "italic";
24 |
25 | // let a: number = 24;
26 | // console.log(a.toString());
27 |
28 | // Custom Types for Objects
29 | interface Car {
30 | year: number,
31 | model: string,
32 | electric: boolean,
33 | [key: string]: any // This would give me capability to add extra key value pairs to my object
34 | }
35 |
36 | let myCar: Car;
37 | // myCar.something = true;
38 | // myCar.something = "random";
39 | // myCar.random = "random";
40 |
41 | // Strong Typing a Function
42 | function addtwo(x: number, y: number): string {
43 | return (x+y).toString();
44 | }
45 |
46 | console.log(addtwo(2,3))
47 |
48 | // TypeScript has Tuples
49 | // A tuple is a fixed length list with datatype of each element predefined
50 | type myTuple = [number, string, boolean, number?]; // ? -> Makes an element optional
51 | let newTuple: myTuple = [23, "b", true, 54]
52 | // let newerTuple: myTuple = [];
53 |
54 |
55 | // GENERICS IN TYPESCRIPT
56 | type numArray = Array;
57 | type numnumArray = Array;
58 | // Angle brackets contain the generic part
59 |
60 | // Generics in functions
61 | // function getArray(items: any[]): any[] {
62 | // return new Array().concat(items)
63 | // }
64 |
65 | const lastElement = (arr: Array) => {
66 | return arr[arr.length - 1]
67 | }
68 |
69 | const l1 = lastElement([1,2,3]);
70 | const l2 = lastElement(['a','b','c']);
71 | const l3 = lastElement([1,'a',3]);
72 |
73 | const makeArray = (x: X, y: Y) => {
74 | return [x, y];
75 | }
76 |
77 | const a1 = makeArray(5,6);
78 | const a2 = makeArray(5,'b');
79 | const a3 = makeArray(null, '5'); // You can add unions while calling a function with generic type
80 |
81 | // Extension in generics -> Interfaces
82 |
83 | // const makeFullName = (obj: {
84 | // firstName: string;
85 | // lastName: string;
86 | // }) => {
87 | // return {
88 | // ...obj,
89 | // fullName: obj.firstName + " " + obj.lastName
90 | // }
91 | // }
92 |
93 | // const f1 = makeFullName({
94 | // firstName: "something",
95 | // lastName: "sinclair",
96 | // age: 25
97 | // })
98 |
99 | // We need to ensure that two fields exist for sure but other fields can also exist
100 |
101 | interface basics {
102 | firstName: string;
103 | lastName: string;
104 | };
105 |
106 | const makeFullName = (obj: T) => {
110 | return {
111 | ...obj,
112 | fullName: obj.firstName + " " + obj.lastName
113 | }
114 | }
115 |
116 | const f1 = makeFullName({
117 | firstName: "something",
118 | lastName: "sinclair",
119 | age: 25,
120 | random: true
121 | })
122 |
123 | // Generics with Interfaces
124 | interface Tablet {
125 | id: string;
126 | position: number;
127 | data: T
128 | }
129 |
130 | type numberTablet = Tablet;
131 |
132 | let something: numberTablet;
133 |
134 | // Debatable feature of interfaces
135 | interface Person {
136 | name: string;
137 | hungry: boolean;
138 | }
139 |
140 | interface Person {
141 | hangry: boolean
142 | }
143 |
144 | // Interface declaration merging in TS
145 |
146 | type personType = Person;
147 | let me: personType;
--------------------------------------------------------------------------------
/11-responsive-web-dev/lecture-5/.cache/39/79c466aa54ca26e0de387b42bb814c.json:
--------------------------------------------------------------------------------
1 | {"id":"scss/main.scss","dependencies":[{"name":"/Users/bipinkalra/Documents/Scaler/edge-webdev-2021/11-responsive-web-dev/lecture-5/scss/main.scss","includedInParent":true,"mtime":1642264286540},{"name":"/Users/bipinkalra/Documents/Scaler/edge-webdev-2021/11-responsive-web-dev/lecture-5/scss/settings/_colors.scss","includedInParent":true,"mtime":1642264195521},{"name":"/Users/bipinkalra/Documents/Scaler/edge-webdev-2021/11-responsive-web-dev/lecture-5/scss/settings/_font.scss","includedInParent":true,"mtime":1642263742696},{"name":"_css_loader","parent":"/Users/bipinkalra/Documents/Scaler/edge-webdev-2021/11-responsive-web-dev/lecture-5/scss/main.scss","resolved":"/Users/bipinkalra/Documents/Scaler/edge-webdev-2021/11-responsive-web-dev/lecture-5/node_modules/parcel-bundler/src/builtins/css-loader.js"},{"name":"/Users/bipinkalra/Documents/Scaler/edge-webdev-2021/11-responsive-web-dev/lecture-5/package.json","includedInParent":true,"mtime":1642262168205}],"generated":{"css":"div p {\n color: #555445;\n}\n\n.wrapper {\n font-size: 3rem;\n}\n.wrapper:hover {\n color: blue;\n}\n\n.box {\n height: 200px;\n aspect-ratio: 1;\n}\n.box__small-box {\n height: 100px;\n aspect-ratio: 1;\n}\n.box__small-box--green {\n background: green;\n}\n\n.button-secondary, .button-primary {\n cursor: pointer;\n padding: 1rem 1.5rem;\n font-weight: bold;\n}\n\n.button-primary {\n background: blue;\n color: white;\n}\n\n.button-secondary {\n border: 1px solid blue;\n color: blue;\n}\n\n@media screen and (max-width: 992px) {\n .red {\n background: blue;\n font-size: 20px;\n }\n}\n\n.col-1 {\n flex: 0 0 8.3333333333;\n}\n\n.col-2 {\n flex: 0 0 16.6666666667;\n}\n\n.col-3 {\n flex: 0 0 25;\n}\n\n.col-4 {\n flex: 0 0 33.3333333333;\n}\n\n.col-5 {\n flex: 0 0 41.6666666667;\n}\n\n.col-6 {\n flex: 0 0 50;\n}\n\n.col-7 {\n flex: 0 0 58.3333333333;\n}\n\n.col-8 {\n flex: 0 0 66.6666666667;\n}\n\n.col-9 {\n flex: 0 0 75;\n}\n\n.col-10 {\n flex: 0 0 83.3333333333;\n}\n\n.col-11 {\n flex: 0 0 91.6666666667;\n}\n\n.col-12 {\n flex: 0 0 100;\n}\n\n.text-red {\n color: red;\n}\n\n.text-whiye {\n color: white;\n}\n\n.text-primary {\n color: blue;\n}","js":"var reloadCSS = require('_css_loader');\n\nmodule.hot.dispose(reloadCSS);\nmodule.hot.accept(reloadCSS);"},"sourceMaps":{"css":{"mappings":[{"source":"scss/main.scss","name":null,"original":{"line":14,"column":2},"generated":{"line":1,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":15,"column":4},"generated":{"line":2,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":5,"column":6},"generated":{"line":2,"column":9}},{"source":"scss/main.scss","name":null,"original":{"line":19,"column":0},"generated":{"line":5,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":20,"column":2},"generated":{"line":6,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":22,"column":2},"generated":{"line":8,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":23,"column":4},"generated":{"line":9,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":27,"column":0},"generated":{"line":12,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":28,"column":2},"generated":{"line":13,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":29,"column":2},"generated":{"line":14,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":31,"column":2},"generated":{"line":16,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":32,"column":4},"generated":{"line":17,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":33,"column":4},"generated":{"line":18,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":35,"column":4},"generated":{"line":20,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":36,"column":6},"generated":{"line":21,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":41,"column":0},"generated":{"line":24,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":42,"column":2},"generated":{"line":25,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":43,"column":2},"generated":{"line":26,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":44,"column":2},"generated":{"line":27,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":47,"column":0},"generated":{"line":30,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":50,"column":2},"generated":{"line":31,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":51,"column":2},"generated":{"line":32,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":54,"column":0},"generated":{"line":35,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":57,"column":2},"generated":{"line":36,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":58,"column":2},"generated":{"line":37,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":64,"column":2},"generated":{"line":40,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":69,"column":0},"generated":{"line":41,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":71,"column":4},"generated":{"line":42,"column":4}},{"source":"scss/main.scss","name":null,"original":{"line":72,"column":4},"generated":{"line":43,"column":4}},{"source":"scss/settings/_font.scss","name":null,"original":{"line":3,"column":13},"generated":{"line":43,"column":15}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":47,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":48,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":51,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":52,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":55,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":56,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":59,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":60,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":63,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":64,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":67,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":68,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":71,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":72,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":75,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":76,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":79,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":80,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":83,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":84,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":87,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":88,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":77,"column":2},"generated":{"line":91,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":78,"column":4},"generated":{"line":92,"column":2}},{"source":"scss/main.scss","name":null,"original":{"line":83,"column":2},"generated":{"line":95,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":84,"column":4},"generated":{"line":96,"column":2}},{"source":"scss/settings/_colors.scss","name":null,"original":{"line":5,"column":9},"generated":{"line":96,"column":9}},{"source":"scss/main.scss","name":null,"original":{"line":83,"column":2},"generated":{"line":99,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":84,"column":4},"generated":{"line":100,"column":2}},{"source":"scss/settings/_colors.scss","name":null,"original":{"line":5,"column":9},"generated":{"line":100,"column":9}},{"source":"scss/main.scss","name":null,"original":{"line":83,"column":2},"generated":{"line":103,"column":0}},{"source":"scss/main.scss","name":null,"original":{"line":84,"column":4},"generated":{"line":104,"column":2}},{"source":"scss/settings/_colors.scss","name":null,"original":{"line":5,"column":9},"generated":{"line":104,"column":9}}],"sources":{"scss/main.scss":"@use 'sass:map';\n@import 'settings/colors';\n@import 'settings/font';\n\n$red: #555445;\n\n$breakpoints: (\n small: 576px,\n medium: 768px,\n large: 992px\n);\n\ndiv {\n p {\n color: $red;\n }\n}\n\n.wrapper {\n font-size: 3rem;\n\n &:hover {\n color: blue;\n }\n}\n\n.box {\n height: 200px;\n aspect-ratio: 1;\n\n &__small-box {\n height: 100px;\n aspect-ratio: 1;\n\n &--green {\n background: green;\n }\n }\n}\n\n%button {\n cursor: pointer;\n padding: 1rem 1.5rem;\n font-weight: bold;\n}\n\n.button-primary {\n @extend %button;\n\n background: blue;\n color: white;\n}\n\n.button-secondary {\n @extend %button;\n \n border: 1px solid blue;\n color: blue;\n}\n\n@mixin apply_media_query($key) {\n $size: map.get($breakpoints, $key);\n\n @media screen and (max-width: $size){\n @content;\n }\n}\n\n.red {\n @include apply_media_query(large){\n background: blue;\n font-size: $font-large;\n }\n}\n\n@for $i from 1 through 12 {\n .col-#{$i} {\n flex: 0 0 (100/(12/$i));\n }\n}\n\n@each $key, $value in $colors {\n .text-#{$key} {\n color: $value;\n }\n}","scss/settings/_font.scss":"$font-small: 10px;\n$font-med: 15px;\n$font-large: 20px;","scss/settings/_colors.scss":"$red: red;\n$white: white;\n$primary: blue;\n\n$colors: (\n red: $red,\n whiye: $white,\n primary: $primary\n)"},"lineCount":null}},"error":null,"hash":"dce59cf9e85c768009cf682581fa7101","cacheData":{"env":{}}}
--------------------------------------------------------------------------------
/13-typescript/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | /* Visit https://aka.ms/tsconfig.json to read more about this file */
4 |
5 | /* Projects */
6 | // "incremental": true, /* Enable incremental compilation */
7 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8 | // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
9 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
10 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12 |
13 | /* Language and Environment */
14 | "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16 | // "jsx": "preserve", /* Specify what JSX code is generated. */
17 | // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
18 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
20 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */
22 | // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
23 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25 |
26 | /* Modules */
27 | "module": "commonjs", /* Specify what module code is generated. */
28 | // "rootDir": "./", /* Specify the root folder within your source files. */
29 | // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
30 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
31 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
32 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
33 | // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
34 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */
35 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
36 | // "resolveJsonModule": true, /* Enable importing .json files */
37 | // "noResolve": true, /* Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project. */
38 |
39 | /* JavaScript Support */
40 | // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
41 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
42 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
43 |
44 | /* Emit */
45 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
46 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */
47 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
48 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
49 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
50 | // "outDir": "./", /* Specify an output folder for all emitted files. */
51 | // "removeComments": true, /* Disable emitting comments. */
52 | // "noEmit": true, /* Disable emitting files from a compilation. */
53 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
54 | // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
55 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
56 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
57 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
58 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
59 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
60 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
61 | // "newLine": "crlf", /* Set the newline character for emitting files. */
62 | // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */
63 | // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
64 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
65 | // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
66 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
67 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
68 |
69 | /* Interop Constraints */
70 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
71 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
72 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
73 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
74 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
75 |
76 | /* Type Checking */
77 | "strict": true, /* Enable all strict type-checking options. */
78 | // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
79 | // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
80 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
81 | // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
82 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
83 | // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
84 | // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
85 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
86 | // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
87 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
88 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
89 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
90 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
91 | // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
92 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
93 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
94 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
95 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
96 |
97 | /* Completeness */
98 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
99 | "skipLibCheck": true /* Skip type checking all .d.ts files. */
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/11-responsive-web-dev/lecture-5/dist/main.77bb5cfd.js:
--------------------------------------------------------------------------------
1 | // modules are defined as an array
2 | // [ module function, map of requires ]
3 | //
4 | // map of requires is short require name -> numeric require
5 | //
6 | // anything defined in a previous bundle is accessed via the
7 | // orig method which is the require for previous bundles
8 | parcelRequire = (function (modules, cache, entry, globalName) {
9 | // Save the require from previous bundle to this closure if any
10 | var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
11 | var nodeRequire = typeof require === 'function' && require;
12 |
13 | function newRequire(name, jumped) {
14 | if (!cache[name]) {
15 | if (!modules[name]) {
16 | // if we cannot find the module within our internal map or
17 | // cache jump to the current global require ie. the last bundle
18 | // that was added to the page.
19 | var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
20 | if (!jumped && currentRequire) {
21 | return currentRequire(name, true);
22 | }
23 |
24 | // If there are other bundles on this page the require from the
25 | // previous one is saved to 'previousRequire'. Repeat this as
26 | // many times as there are bundles until the module is found or
27 | // we exhaust the require chain.
28 | if (previousRequire) {
29 | return previousRequire(name, true);
30 | }
31 |
32 | // Try the node require function if it exists.
33 | if (nodeRequire && typeof name === 'string') {
34 | return nodeRequire(name);
35 | }
36 |
37 | var err = new Error('Cannot find module \'' + name + '\'');
38 | err.code = 'MODULE_NOT_FOUND';
39 | throw err;
40 | }
41 |
42 | localRequire.resolve = resolve;
43 | localRequire.cache = {};
44 |
45 | var module = cache[name] = new newRequire.Module(name);
46 |
47 | modules[name][0].call(module.exports, localRequire, module, module.exports, this);
48 | }
49 |
50 | return cache[name].exports;
51 |
52 | function localRequire(x){
53 | return newRequire(localRequire.resolve(x));
54 | }
55 |
56 | function resolve(x){
57 | return modules[name][1][x] || x;
58 | }
59 | }
60 |
61 | function Module(moduleName) {
62 | this.id = moduleName;
63 | this.bundle = newRequire;
64 | this.exports = {};
65 | }
66 |
67 | newRequire.isParcelRequire = true;
68 | newRequire.Module = Module;
69 | newRequire.modules = modules;
70 | newRequire.cache = cache;
71 | newRequire.parent = previousRequire;
72 | newRequire.register = function (id, exports) {
73 | modules[id] = [function (require, module) {
74 | module.exports = exports;
75 | }, {}];
76 | };
77 |
78 | var error;
79 | for (var i = 0; i < entry.length; i++) {
80 | try {
81 | newRequire(entry[i]);
82 | } catch (e) {
83 | // Save first error but execute all entries
84 | if (!error) {
85 | error = e;
86 | }
87 | }
88 | }
89 |
90 | if (entry.length) {
91 | // Expose entry point to Node, AMD or browser globals
92 | // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
93 | var mainExports = newRequire(entry[entry.length - 1]);
94 |
95 | // CommonJS
96 | if (typeof exports === "object" && typeof module !== "undefined") {
97 | module.exports = mainExports;
98 |
99 | // RequireJS
100 | } else if (typeof define === "function" && define.amd) {
101 | define(function () {
102 | return mainExports;
103 | });
104 |
105 | //