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
// 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" | |
], |
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
;; 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) |
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
// so pointer located here (_) | |
if (true) {_} | |
// when I hit enter I got | |
if (true) { | |
_} | |
// when I hit enter I want this | |
if (true) { | |
_ |
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
[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 |
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
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') |
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
def get_angle_between_clock_arrows(h, m): | |
return abs(360/60*m - 360/12*(h - h/12*12)) |