Skip to content

Commit

Permalink
prettier auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebazhanov committed Oct 4, 2022
1 parent ccae10b commit e08f18d
Show file tree
Hide file tree
Showing 19 changed files with 203 additions and 164 deletions.
25 changes: 12 additions & 13 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand All @@ -59,8 +59,7 @@ representative at an online or offline event.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
reported to the community leaders responsible for enforcement.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down Expand Up @@ -106,7 +105,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
168 changes: 85 additions & 83 deletions README.md

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions adobe-photoshop/adobe-photoshop-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,17 +683,16 @@
- [ ] B
- [x] B and C


#### Q90. What special layer type applies nondestructive color correction to all of the layers below it ?

- [ ] layer comp
- [ ] layer comp
- [x] adjustment layer
- [ ] layer mask
- [ ] layer mask
- [ ] fill layer

#### Q91. Which command would permanently join two layers into one?

- [x] Group
- [ ] Merge
- [ ] Combine
- [x] Group
- [ ] Merge
- [ ] Combine
- [ ] Link
5 changes: 3 additions & 2 deletions agile-methodologies/agile-methodologies-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,9 @@ ITIOO isn't a thing, thin verticle slicing is refering to what work you prioriti

#### Q114. Which statement about the actor in a user story can be true?

- [ ] There must be multiple personas for each actor.
- [ ] There must be multiple personas for each actor.
- [ ] The actor does not have to be a specified role in the solution.
- [ ] The system cannot be the actor.
- [x] The actor can be the system itself.
- [x] The actor can be the system itself.

[Reference](https://tcagley.wordpress.com/2015/03/31/the-difference-between-a-persona-and-an-actor/) Actors can be a person, group, or system(s).
1 change: 1 addition & 0 deletions aws-lambda/aws-lambda-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@
- [ ] an S3 bucket event

**Explanation** (source google)

- `With DynamoDB Streams, you can trigger a Lambda function to perform additional work each time a DynamoDB table is updated. Lambda reads records from the stream and invokes your function synchronously with an event that contains stream records.`
- `These events are considered synchronous events. Simply put, it means that when somebody is calling an API Gateway, it will trigger your Lambda function. It's a synchronous event because your Lambda function has to respond to the client directly at the end of its invocation.`
- `You can use Lambda to process event notifications from Amazon Simple Storage Service. Amazon S3 can send an event to a Lambda function when an object is created or deleted.`
6 changes: 4 additions & 2 deletions aws/aws-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -825,13 +825,15 @@ aws ecs create-service \

[Reference](https://aws.amazon.com/blogs/architecture/understanding-the-different-ways-to-invoke-lambda-functions)

#### Q93. If a single instance has failed to launch within 24 hours due to some issues during a set up of Auto-scaling. Then what will happen to the Auto-Scaling condition?
#### Q93. If a single instance has failed to launch within 24 hours due to some issues during a set up of Auto-scaling. Then what will happen to the Auto-Scaling condition?

- [ ] Auto Scaling will continue to launch the instance for straight 3 days
- [x] The Auto Scaling group will be automatically terminated.
- [ ] In a separate region Auto Scaling will start an instance
- [ ] Auto Scaling will remove the scaling process

#### Q94. Point out the wrong statement.
#### Q94. Point out the wrong statement.

- [ ] Amazon Machine Instances are sized at various levels and rented on a computing/hour basis
- [ ] The metrics obtained by CloudWatch may be used to enable a feature called Auto Scaling
- [ ] A number of tools are used to support EC2 services
Expand Down
2 changes: 1 addition & 1 deletion c++/c++quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ sprite->x
- [ ] The compiler needs the data type to make sure that the pointer is not going to be used on illegal non-pointable types such as functions, labels, pointers, and references.
- [ ] The compiler needs the data type to know how much memory to allocate for the pointer, because different data types require different pointer lenghts.

#### Q82. The default executable generation on UNIX for a C++ program is ___
#### Q82. The default executable generation on UNIX for a C++ program is \_

- [ ] a.exe
- [ ] a
Expand Down
17 changes: 11 additions & 6 deletions c-(programming-language)/c-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -987,19 +987,21 @@ typedef struct{
#else
#define Y 5
#endif

int main()
{
printf("%d", Y);
return 0;
}
```

- [ ] 3
- [x] 5
- [ ] 3 or 5 depending on input
- [ ] Compile time error

#### Q65. What do the functions malloc() and calloc() allocate?

- [ ] reallocatged memory
- [ ] static memeory
- [x] dynamic memory
Expand All @@ -1011,6 +1013,7 @@ int main()
- [x] strstr(str1, str2);
- [ ] substring(str1, str2);
- [ ] strspn(str1, str2);

#### Q67. Find the output of the program?

```c
Expand All @@ -1027,21 +1030,23 @@ int main(){
}
}
```
- [ ] a=L*2
- [ ] a=L
- [ ] Error
- [x] a=L*4
- [ ] `a=L*2`
- [ ] `a=L`
- [ ] `Error`
- [x] `a=L*4`
[Reference](https://www.geeksforgeeks.org/left-shift-right-shift-operators-c-cpp/)
#### Q68. Predict the output of the following code when the **interger** variables x is initialized to 10,y to 2 and z to 0.
```c
z = x + y * x + 10 / 2 * x;
printf("value is =%d",z);
```

- [x] 80
- [ ] 170
- [ ] 31.5
- [ ] 6

[Reference](https://www.informit.com/articles/article.aspx?p=2062174&seqNum=4)
[Reference](https://www.informit.com/articles/article.aspx?p=2062174&seqNum=4)
78 changes: 53 additions & 25 deletions css/css-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@ img {
- [x] padding: 10px 10px 0px 0px;
- [ ] padding: 10px 0;
- [ ] padding: 10px 0px 10px 0px;

[Reference](https://www.w3schools.com/css/css_padding.asp)

#### Q132. How would you absolutely position an element of the logo class inside of a relatively positioned container?
Expand Down Expand Up @@ -2090,21 +2090,22 @@ img {
margin-top: 150px;
}
```

#### Q133. How would the ```<div>``` with the class .child be positioned within its container?

#### Q133. How would the `<div>` with the class .child be positioned within its container?

```html
<style>
.container{
height: 200px;
width: 200px;
}
.child{
margin: auto 0;
height: 100px;
}
.container {
height: 200px;
width: 200px;
}
.child {
margin: auto 0;
height: 100px;
}
</style>
<div class="container">
<div class="child">...</div>
<div class="child">...</div>
</div>
```

Expand All @@ -2115,65 +2116,79 @@ height: 100px;

[Reference](https://codepen.io/harsh1x4/pen/poVaQVz)

#### Q134. By default, a CSS transition is __
#### Q134. By default, a CSS transition is \_\_

- [ ] asymmetric, so that the transition going from the initial state to the end state is different from the transition going from the end state back to the initial state.
- [ ] one sided, so that there is only one transition and it goes from the initial state to the end state.
- [x] symmetric, so that the transition going from the initial state to the end state is the reverse of the transition going from the end state back to the initial state.
- [ ] one-sided, so that there is only one transition and it goes from the end state to the initial state.

[Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions)

#### Q135. Which style rule will extend the header element across an entire grid row from the first column through the last column?

- [ ] A

```css
header {
grid-column: 1/auto;
grid-column: 1 / auto;
}
```

- [x] B

```css
header {
grid-column: 1/-1;
}
```

- [ ] C

```css
header {
grid-column: -1/1;
}
```

- [ ] D

```css
header {
grid-column: 1/100%;
}
```
[Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)

[Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)

#### Q136. What rule should you apply to the img element to display the element in grayscale with no color?

- [ ] A

```css
img {
transform: grayscale(1);
}
```

- [ ] B

```css
img {
filter: grayscale(0);
}
```

- [ ] C

```css
img {
transform: grayscale(0);
}
```

- [x] D

```css
img {
filter: grayscale(1);
Expand All @@ -2183,52 +2198,65 @@ img {
[Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/grayscale)

#### Q137. To center the content of a grid cell horizontally and vertically within the cell, which style rule should you apply?

- [ ] A

```css
align-items: start;
justify-items: end;
```

- [x] B

```css
align--items: center;
justify-items: center;

```

- [ ] C

```css
align-items: middle;
justify-items: middle;
```

- [ ] D

```css
align-items: stretch;
justify-items: stretch
justify-items: stretch;
```

[Reference for align-items](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items) [Reference for justify-items](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)

#### Q138. What style rule should you use to display all input elements that have failed the validation test with a red font?

- [ ] A

```css
input.valid[false] {
color: red;
}
```

- [x] B

```css
input:invalid {
color: red;
}
```

- [ ] C

```css
input.not(valid) {
color: red;
}
```

- [ ] D

```css
input.invalid {
color: red;
Expand Down
4 changes: 2 additions & 2 deletions eclipse/eclipse-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@

#### Q38. When an assert fails where can you view the expected value as compared with the actual value?

- [x] in the Failure Trace section of the JUnit view
- [ ] in the Debug view
- [x] in the Failure Trace section of the JUnit view
- [ ] in the Debug view
- [ ] in the console
- [ ] in the Outline view
Loading

0 comments on commit e08f18d

Please sign in to comment.