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
| function threePlusOne(number) { | |
| console.info(number); | |
| if(number === 1 || number === 0) { | |
| return number; | |
| } else { | |
| if(number%2) { | |
| threePlusOne(number * 3 + 1); | |
| } else { | |
| threePlusOne(number / 2); | |
| } |
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
| document.getElementById("selectId").selectedIndex = 2; | |
| // or | |
| document.querySelector('#select').value = 'neededValue'; |
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
| export function setSameHeight(selector) { // Делает высоту всех элементов по селектору как у самого высокого | |
| let arrayOfElements = document.querySelectorAll(selector); | |
| let maxHeight = 0; | |
| if(arrayOfElements.length > 0) { | |
| for(let i = arrayOfElements.length - 1; i >= 0; i--) { | |
| let heightOfElement = arrayOfElements[i].getBoundingClientRect().height; | |
| if(maxHeight < heightOfElement) { | |
| maxHeight = heightOfElement; | |
| } | |
| } |
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> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> |
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
| .scrollable-container { | |
| &::-webkit-scrollbar { | |
| -webkit-appearance: none; | |
| } | |
| &::-webkit-scrollbar:vertical { | |
| width: 12px; | |
| } | |
| &::-webkit-scrollbar:horizontal { | |
| height: 12px; | |
| } |
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
| git branch -d branch-after-fail-merge |
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
| git merge --abort |
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
| /* First argument: horizontal coordinate(X), | |
| Second argument: vertical coordinate(Y)*/ | |
| window.scrollTo(0, 583); |
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
| ST3-Settings-Plugins |
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
| <style> | |
| .masonry-layout { | |
| column-count: 3; | |
| -webkit-column-count: 3; | |
| column-gap: 0; | |
| -webkit-column-gap: 0; | |
| } | |
| .masonry-layout_item { | |
| break-inside: avoid; | |
| -webkit-column-break-inside: avoid; |
NewerOlder