This file contains hidden or 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
<div style={{ cursor: 'pointer', fontSize: '1rem' }}> | |
<p> You are awesome ! </p> | |
</div> |
This file contains hidden or 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
@{ | |
string pathToImage; | |
bool imgFromInternet = Model.ImageUrl.Contains("www.") || Model.ImageUrl.Contains("http"); | |
if (imgFromInternet) | |
{ | |
pathToImage = $@"{Model.ImageUrl}"; | |
} | |
else | |
{ |
This file contains hidden or 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
class BestComponentEver extends React.Component { | |
render() { // something like "place for defining view of your component" | |
return ( | |
<h1> You are awesome today! </h1> | |
); | |
} | |
}; | |
This file contains hidden or 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
//return true if every item returns true | |
let items = [ | |
{ name: 'Bike', price: 400 }, | |
{ name: 'TV', price: 1200 } | |
]; | |
let cheapPrice = 1000; | |
let everyItemsHasCheapPrice = items.every((item) => { | |
return item.price <= cheapPrice |
This file contains hidden or 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
public class Boo | |
{ | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!--bootstrap 4 via link--> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="container"> | |
<!-- #region simple template --> |
This file contains hidden or 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
------------------------------------- | |
[RU:] | |
------------------------------------- | |
Размер rem берется от тега html | |
1rem всегда равен значению, прописаному в html теге . | |
e.g. | |
html, body { //главное прописать для html | |
font-size: 16px; |
This file contains hidden or 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
[RU:] 1em всегда равен размеру шрифта данного блока | |
[EN:] 1em is always equal to the font size of this block |
This file contains hidden or 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
responsive image style | |
<style> | |
.imageBox { | |
max-width: 100%; | |
height: auto; | |
} | |
</style> |