Skip to content

Instantly share code, notes, and snippets.

View antonk52's full-sized avatar
🏠
βšͺοΈπŸ”΄βšͺ️

Anton Kastritskii antonk52

🏠
βšͺοΈπŸ”΄βšͺ️
View GitHub Profile
@antonk52
antonk52 / make-me-a-content.md
Created October 8, 2020 10:39
make-me-a-content docs

make-me-a-content

This package helps with templated content generation for your docs/source code. It is heavily inspired by how Rome generates docs and source code.

Installation

npm install -D make-me-a-content
@antonk52
antonk52 / .vimrc
Last active September 6, 2020 22:41
example vimrc to reproduce hanging vim instance on lost focus
set nocompatible
filetype off
" load vim plug if it is not installed
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
internal/path/collections.ts:91:9 internalError/request INTERNAL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Γ— Could not find element for /Users/antonk52/Documents/dev/personal/rome/internal/js-analysis/index.ts
1. ___R$project$rome$$internal$path$collections_ts$AbsoluteFilePathMap.assert (internal/path/collections.ts:91:9)
89 β”‚ if (item === undefined) {
90 β”‚ throw new Error(`Could not find element for ${path.join()}`);
> 91 β”‚ } else {
β”‚ ^
92 β”‚ return item;
yandex browser talk
https://events.yandex.ru/lib/talks/6977/
babushka talk
https://youtu.be/_muWJOUe420ΠΉ
outdated browsers page
https://bestvpn.org/outdatedbrowser/en
express-useragent
@antonk52
antonk52 / .vimrc
Created July 9, 2019 08:38
minimal set up for flow with coc.nvim plugin
set nocompatible
filetype off
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
filetype plugin indent on
" ======= coc settings
set nocompatible
filetype off
call plug#begin('~/.vim/plugged')
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
call plug#end()
filetype plugin indent on
@antonk52
antonk52 / isMobile.js
Created September 27, 2016 23:44
Check for mobile
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPod/i);
},