-
jq — https://jqlang.github.io/jq/ — "like sed for JSON data"
There are several options available for installing jq. I prefer to use Homebrew:
brew install jq
Help Tag | Very Magic (\v) | Magic (\m) | No Magic (\M) | Very No Magic \V |
---|---|---|---|---|
/^ | ^ | ^ | ^ | \^ |
/$ | $ | $ | $ | \$ |
/\~ | ~ | ~ | \~ | \~ |
/* | * | * | \* | \* |
/. | . | . | \. | \. |
/\[] | [] | [] | \[] | \[] |
/\+ | + | \+ | \+ | \+ |
/\< | < | \< | \< | \< |
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
FUNCTION Profile1() | |
Defined: ~/Documents/Source/playground/profile.vim line 2 | |
Called 1 time | |
Total time: 2.985510 | |
Self time: 2.985510 | |
count total (s) self (s) | |
1 0.000020 let a = 'a' | |
1 0.000002 let b = 'b' | |
1 0.000001 let c = 'c' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
":[range]SortUnfolded[!] [i][u][r][n][x][o] [/{pattern}/] | |
" Sort visible lines in [range]. Lines inside closed folds | |
" are kept intact; sorting is done only on the first line | |
" of the fold; the other lines inside the fold move with | |
" it as a unit. | |
" Copyright: (C) 2018 Israel Chauca | |
" 2012 Ingo Karkat | |
" The VIM LICENSE applies to this scriptlet; see ':help copyright'. | |
" Inspiration: | |
" http://stackoverflow.com/questions/13554191/sorting-vim-folds |
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
#!/bin/bash | |
# https://smithje.github.io/bash/2013/07/08/moon-phase-prompt | |
get_phase_day () { | |
local lp=2551443 | |
local now=$(date -ju +"%s") | |
local newmoon=592500 | |
local phase=$((($now - $newmoon) % $lp)) | |
echo $(((phase / 86400) + 1)) | |
} |
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
" Raimondi @ Freenode | |
" | |
" - Next | |
" - Previous | |
" - Jump to start | |
" - Jump to end | |
" - Jump to N | |
" - Jump by N | |
" - List color schemes | |
" - Refresh color scheme list |
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
# comments example for .dat or .ledger files | |
@smallexample | |
; This is a single line comment, | |
# and this, | |
% and this, | |
| and this, | |
* and this. | |
# If you have a deeply nested tree of accounts, | |
# it may be convenient to define an alias, for example: |
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
Processing file /var/folders/rc/owing things:ng your code!bx05jw0000gn/T/nvimGL5Ztr/1.elm | |
ERRORSp97nn03xncbwbx05jw0000gn/T/nvimGL5Ztr/1.elm |
NewerOlder