Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kreedz's full-sized avatar

Artur Tukaev kreedz

  • Russia, Ufa
View GitHub Profile
@kreedz
kreedz / eslint.json
Created November 7, 2018 16:01 — forked from Nek/eslint.json
JS support in Emacs
// Part of package.json with eslint configuration I use.
// You'll need eslint-plugin-prettier in your dev dependencies
// and probably a bunch of other things. Eslint will complain.
// Just install what it asks for.
"eslintConfig": {
"extends": "react-app",
"plugins": [
"prettier"
],
;; list the packages you want
(setq package-list
'(treemacs))
;; list the repositories containing them
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")))
;; activate all the packages (in particular autoloads)
@kreedz
kreedz / tide-indent-when-hit-enter.ts
Created June 6, 2018 09:28
tide indent when hit enter
// so pointer located here (_)
if (true) {_}
// when I hit enter I got
if (true) {
_}
// when I hit enter I want this
if (true) {
_
[profiler-profile "24.3" cpu #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data ([completion-basic-try-completion "#<compiled 0xcf5bef>" completion--some completion--nth-completion completion-try-completion execute-extended-command--shorter execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 9 [completion-pcm--all-completions completion-pcm--find-all-completions completion-pcm-try-completion "#<compiled 0xcf5bef>" completion--some completion--nth-completion completion-try-completion execute-extended-command--shorter execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil] 5 [completion-pcm--string->pattern completion-pcm--find-all-completions completion-pcm-try-completion "#<compiled 0x1a3c4bf>" completion--some completion--nth-completion completion-try-completion execute-extended-command--shorter execute-extended-command funcall-interactively call-interactively command-execute nil nil nil
call plug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-fugitive', { 'on': [] }
Plug 'airblade/vim-gitgutter'
call plug#end()
" to deal with vim-fugitive
command! Gstatus call LazyLoadFugitive('Gstatus')
command! Gdiff call LazyLoadFugitive('Gdiff')
command! Glog call LazyLoadFugitive('Glog')
command! Gblame call LazyLoadFugitive('Gblame')
@kreedz
kreedz / get_angle_between_clock_arrows.py
Created March 31, 2016 18:52
Function to get an angle between the clock's arrows
def get_angle_between_clock_arrows(h, m):
return abs(360/60*m - 360/12*(h - h/12*12))