This file contains 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
import os | |
''' | |
from http://www.salemmarafi.com/code/recursively-rename-files-to-their-parent-folders-name/ | |
Function: renameFiles | |
Parameters: | |
@path: The path to the folder you want to traverse | |
@depth: How deep you want to traverse the folder. Defaults to 99 levels. | |
''' |
This file contains 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 | |
# Перекодирует рекурсивно в текущем каталоге имена | |
# файлов и каталогов в транслит. | |
shopt -s nullglob | |
for NAME in * ; do | |
filename=$(basename "$NAME"); | |
extension=${filename##*.}; | |
filename=${filename%.*}; |
This file contains 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
cat -n .zsh_history | sort -t ';' -uk2 | sort -nk1 | cut -f2- > .zhistory |
This file contains 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
input:-webkit-autofill, | |
input:-webkit-autofill::first-line, | |
input:-webkit-autofill:hover, | |
input:-webkit-autofill:focus, | |
textarea:-webkit-autofill, | |
textarea:-webkit-autofill:hover, | |
textarea:-webkit-autofill:focus, | |
select:-webkit-autofill, | |
select:-webkit-autofill:hover, | |
select:-webkit-autofill:focus { |
This file contains 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
if !empty($WAYLAND_DISPLAY) | |
let g:clipboard = { | |
\ 'name': 'wayland-strip-carriage', | |
\ 'copy': { | |
\ '+': 'wl-copy --foreground --type text/plain', | |
\ '*': 'wl-copy --foreground --type text/plain --primary', | |
\ }, | |
\ 'paste': { | |
\ '+': {-> systemlist('wl-paste --no-newline | tr -d "\r"')}, | |
\ '*': {-> systemlist('wl-paste --no-newline --primary | tr -d "\r"')}, |
This file contains 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
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
" Navigate key | |
nnoremap <F2> :NERDTreeToggle<cr> | |
nnoremap <C-S-L> :tabn<CR> | |
nnoremap <C-S-H> :tabp<CR> |
This file contains 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
* { | |
background-image: none; | |
} | |
window { | |
background-color: rgba(46, 52, 64, 0.9); | |
} | |
button { | |
background-color: #2e3440; | |
border-style: solid; | |
border-width: 0px; |
This file contains 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
let regex; | |
/* matching a specific string */ | |
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
/* wildcards */ | |
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
This file contains 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
className="(.+?)" | |
className={css.$1} |
NewerOlder