Skip to content

Instantly share code, notes, and snippets.

View navichok26's full-sized avatar
💜

x5113nc3x navichok26

💜
View GitHub Profile
function getCaller(context) {
return DebugSymbol.fromAddress(Thread.backtrace(context, Backtracer.ACCURATE)[0]);
}
@navichok26
navichok26 / ranger-cheatsheet.md
Created August 14, 2022 09:44 — forked from heroheman/ranger-cheatsheet.md
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@navichok26
navichok26 / README.md
Created June 14, 2021 16:01
vim themes
  • coldgreen
  • chlordane
  • understated
  • SweetCandy
  • preto
  • sean
  • smarties
  • space-vim-dark
@navichok26
navichok26 / .vimrc
Last active June 15, 2021 01:57
updateable .vimrc
call plug#begin('~/.vim/plugged')
Plug 'sheerun/vim-polyglot'
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
Plug 'plasticboy/vim-markdown'
Plug 'flazz/vim-colorschemes'
Plug 'xolox/vim-colorscheme-switcher'
for i in range(33333, 55555+1):
sum_del = 0
for d1 in range(2, int(i**0.5)+1):
if i%d1 == 0:
d1_norm = True
for j in range(2, int(d1**0.5)+1):
if d1%j == 0:
d1_norm = False
d2 = i//d1
d2_norm = True
@navichok26
navichok26 / 25.py
Created December 18, 2020 12:20
25 Задание по инфе
from math import *
for i in range(174457, 174505+1):
count_d = 0 # Кол-во делителей числа
delit = 0 # Один из делителей нужного числа
for d in range(2, round(sqrt(i))+1):
if i % d == 0: # Если i делится на d
count_d += 2
delit = d # Сохраняем меньший делитель
@navichok26
navichok26 / dracula_colors.xml
Created July 14, 2020 06:42
dracula colors for android
<color name="background">#282a36</color>
<color name="currentLine">#44475a</color>
<color name="selection">#44475a</color>
<color name="foreground">#f8f8f2</color>
<color name="comment">#6272a4</color>
<color name="cyan">#8be9fd</color>
<color name="green">#50fa7b</color>
<color name="orange">#ffb86c</color>
<color name="pink">#ff79c6</color>
<color name="purple">#bd93f9</color>
@navichok26
navichok26 / README.md
Created June 10, 2020 16:51
Как откатить\вернуть стандартный .bashrc файл
  • Делаем бекап старого .bashrc файла: mv .bashrc .bashrc.old

  • Откатываем .bashrc: cp /etc/skel/.bashrc ./

@navichok26
navichok26 / .vimrc
Created June 3, 2020 06:36
My .vimrc configuration file
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
Plug 'itchyny/lightline.vim'
Plug 'dracula/vim', { 'as': 'dracula' }
call plug#end()
syntax on
@navichok26
navichok26 / WebSocketEventListener.java
Created May 31, 2020 18:09
WebSocketEventListener example
@Component
public class WebSocketEventListener {
private static final Logger logger = LoggerFactory.getLogger(WebSocketEventListener.class);
@Autowired
private SimpMessageSendingOperations messagingTemplate;
@EventListener
public void handleWebSocketConnectListener(SessionConnectedEvent event) {