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
// https://gamma-cveta.ru/kolerovka-krasok | |
// https://www.robotint.ru | |
// run example | |
getSimilarColors("#41594F", 60, 60, 50); | |
// utility | |
const clamp = (value, min, max) => { | |
let _value = value; | |
_value = Math.max(min, _value); |
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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}", | |
"profiles": | |
{ |
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
# Source https://medium.com/@caulfieldOwen/youre-missing-out-on-a-better-mac-terminal-experience-d73647abf6d7 | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/ivansosnin/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. |
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
ext install file-templates | |
ext install vscode-eslint | |
ext install intellij-idea-keybindings | |
ext install javascriptsnippets | |
ext install material-icon-theme | |
ext install material-theme | |
ext install nord-visual-studio-code | |
ext install prettier-vscode | |
ext install project-manager | |
ext install quokka-vscode |
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
find ./path/to/dir -mindepth 1 -type f -name "*.js" | wc -l # count files | |
find ./path/to/dir -mindepth 1 -type f -name "*.js" -exec cat {} + | wc -l # count lines | |
dir -Recurse *.txt | Get-Content | Measure-Object -Line # powershell count lines | |
Get-Childitem c:\local -Recurse | where { -not $_.PSIsContainer } | group Extension -NoElement | sort count -desc # powershell count files |
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
perl -pi -e 'chomp if eof' filename |
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
#plugins | |
apm install pigments react autoclose-html emmet sunset file-icons linter linter-eslint linter-stylelint highlight-selected simple-drag-drop-text autocomplete-modules auto-update-packages double-tag prettier-atom | |
# themes | |
apm install spacegray-dark-ui spacegray-dark-syntax |
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 number_format(number, decimals, dec_point, thousands_sep) { | |
var i, j, kw, kd, km; | |
if (isNaN(decimals = Math.abs(decimals))) { | |
decimals = 2; | |
} | |
if (dec_point == undefined) { | |
dec_point = ","; | |
} | |
if (thousands_sep == undefined) { |
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 class="control-wrapper"> | |
<div class="control-wrapper__opacity"></div> | |
<a href="javascript:void(0);" class="control simple-btn clear-btn">Очистить матрицы</a> | |
</div> | |
*/ | |
.control-wrapper { | |
padding: 1px; | |
border-radius: 3px; |
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
netstat -o -n -a | findstr :8080 # find process on port 8080 | |
taskkill /f /PID 666 # kill this process | |
taskkill /F /IM chrome.exe # kill all chrome processes |
NewerOlder