Skip to content

Instantly share code, notes, and snippets.

View haya14busa's full-sized avatar
🐶

haya14busa haya14busa

🐶
View GitHub Profile
package main
import (
"fmt"
)
func main() {
fmt.Println(g("al"))
fmt.Println(g()("al"))
fmt.Println(g()()("al"))
@haya14busa
haya14busa / 2018-06-16-071451.go
Created June 16, 2018 07:17
find installation test
package main
import (
"context"
"fmt"
"net/http"
"github.com/bradleyfalzon/ghinstallation"
"github.com/google/go-github/github"
)
@haya14busa
haya14busa / header
Created May 28, 2018 13:36
GitHub Apps installation webhook created event
Request method: POST
content-type: application/json
Expect:
User-Agent: GitHub-Hookshot/dc07019
X-GitHub-Delivery: dd769c30-626f-11e8-9a78-3c29358cdebf
X-GitHub-Event: installation
X-Hub-Signature: sha1=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@haya14busa
haya14busa / check_suite_requested.json
Created May 28, 2018 13:31
GitHub check suite requested webhook
{
"action": "requested",
"check_suite": {
"id": 1327986,
"head_branch": "doghouse",
"head_sha": "42bb1f609122e6b79c5341119e06acb3dc7f5967",
"status": "queued",
"conclusion": null,
"url": "https://api.github.com/repos/haya14busa/reviewdog/check-suites/1327986",
"before": "cd0964ac01b0111443ab510b01d0eeecdf652d3e",
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 717a01224..ac447b26e 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1945,6 +1945,7 @@ cmdline_changed:
{
i = 0;
SET_NO_HLSEARCH(TRUE); /* turn off previous highlight */
+ redraw_all_later(SOME_VALID);
}
augroup vimrc-incsearch-highlight
autocmd!
autocmd CmdlineEnter [/\?] :set hlsearch
autocmd CmdlineLeave [/\?] :set nohlsearch
augroup END
$ if [ -n "$ASAN_OPTIONS" ]; then for log in $(find -type f -name 'asan.*' -size +0); do cat "$log"; err=1; done; fi
=================================================================
==18516== ERROR: AddressSanitizer: heap-use-after-free on address 0x606e00104940 at pc 0x758f4e bp 0x7ffdd85f87c0 sp 0x7ffdd85f87b8
READ of size 8 at 0x606e00104940 thread T0
#0 0x758f4d (/home/travis/build/vim/vim/src/vim+0x758f4d)
#1 0x4bd4f8 (/home/travis/build/vim/vim/src/vim+0x4bd4f8)
#2 0x778703 (/home/travis/build/vim/vim/src/vim+0x778703)
#3 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#4 0x77985b (/home/travis/build/vim/vim/src/vim+0x77985b)
#5 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
@haya14busa
haya14busa / inchlsearch.patch
Last active October 8, 2017 10:45
Vim inchlsearch
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 56697d51d..b52f16bf3 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -4175,7 +4175,7 @@ A jump table for the options with a short description can be found at |Q_op|.
'highlight' option. This uses the "Search" highlight group by
default. Note that only the matching text is highlighted, any offsets
are not applied.
- See also: 'incsearch' and |:match|.
+ See also: 'incsearch', 'inchlsearch' and |:match|.
@haya14busa
haya14busa / diff.patch
Created July 19, 2017 16:09
vimlparser diff
--- vim-jp/vim-vimlparser/autoload/vimlparser.vim 2017-07-19 15:49:59.859034000 +0000
+++ haya14busa/go-vimlparser/autoload/vimlparser.vim 2017-07-19 16:09:22.166189982 +0000
@@ -137,6 +137,7 @@
let s:NODE_CURLYNAMEPART = 90
let s:NODE_CURLYNAMEEXPR = 91
let s:NODE_LAMBDA = 92
+let s:NODE_PARENEXPR = 93
let s:TOKEN_EOF = 1
let s:TOKEN_EOL = 2
@haya14busa
haya14busa / gista-file
Created July 19, 2017 16:07
vimlparser diff
--- vim-jp/vim-vimlparser/autoload/vimlparser.vim 2017-07-19 15:49:59.859034000 +0000
+++ haya14busa/go-vimlparser/autoload/vimlparser.vim 2017-07-19 15:57:45.642696899 +0000
@@ -137,6 +137,7 @@
let s:NODE_CURLYNAMEPART = 90
let s:NODE_CURLYNAMEEXPR = 91
let s:NODE_LAMBDA = 92
+let s:NODE_PARENEXPR = 93
let s:TOKEN_EOF = 1
let s:TOKEN_EOL = 2