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
/** | |
* @param {any} obj query object | |
* @param {any} numPrefix | |
* @param {any} tempKey | |
* @returns {string} ready querystring | |
*/ | |
export function httpBuildQuery( | |
obj: any, | |
numPrefix?: any, | |
tempKey?: any, |
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
#!/bin/bash | |
echo -en "\033[38;5;77mcheckout master \033[0m\n" | |
git checkout master | |
echo "end checkout master" | |
echo -en "\033[38;5;77mmerge dev \033[0m\n" | |
git merge dev | |
echo "end merge dev" | |
echo -en "\033[38;5;77mpush master \033[0m\n" | |
git push |
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
sudo add-apt-repository ppa:gezakovacs/ppa | |
sudo apt-get update | |
sudo apt-get install unetbootin |
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
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt-get install apt-transport-https | |
sudo apt-get update | |
sudo apt-get install code |
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
sudo apt autoremove youtube-dl -y | |
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl | |
sudo chmod a+rx /usr/local/bin/youtube-dl |
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 getPostfixYear(age) { | |
if(isNaN(parseInt(age))){ | |
return age; | |
} | |
let postfix, count; | |
age = Math.abs(age) | |
postfix = 'лет'; | |
count = parseInt(age) % 100; | |
if (!(count >= 5 && count <= 20)) { | |
count = count % 10; |
NewerOlder