Skip to content

Instantly share code, notes, and snippets.

Avatar
🐶

haya14busa haya14busa

🐶
View GitHub Profile
@haya14busa
haya14busa / main.go
Created Nov 1, 2016
サンプル: Golangにおけるinterfaceをつかったテストで mock を書く技法
View main.go
package main
import (
"context"
"fmt"
)
type GitHub interface {
CreateRelease(ctx context.Context, opt *Option) (string, error)
GetRelease(ctx context.Context, tag string) (string, error)
View vimrc_urls.txt
https://raw.githubusercontent.com/alwei/dotfiles/3760650625663f3b08f24bc75762ec843ca7e112/.vimrc
https://raw.githubusercontent.com/anekos/my-config/0afcd78455743a4d3fad31674136428052dc6ebe/.vimrc
https://raw.githubusercontent.com/sigwyg/dotfiles/8c70c4032ebad90a8d92b76b1c5d732f28559e40/.vimrc
https://raw.githubusercontent.com/basyura/vimfiles/ee086f25b8c58b8ea6bf025d26ebc11ae50e6ca1/rc/vimrc
https://raw.githubusercontent.com/osyo-manga/vimrc/9ef0ca9757abcdaa11c76024aa551f0b473624bf/vimrcs/default/vimrc
https://raw.githubusercontent.com/rhysd/dotfiles/8228ebaeab0e022ee7161d0eb9fc633876b0be41/vimrc
https://raw.githubusercontent.com/ebc-2in2crc/vimrc/f1ed88bf0d3668ebf8d702def40625d435f545cd/_vimrc
https://raw.githubusercontent.com/rbtnn/reading-vimrc/a92dae61200f50bd771f3a30c4f5fa06738c9aac/.vimrc
https://raw.githubusercontent.com/ujihisa/config/8c513ac93429e27ce27e6020a7d48e728b809169/_vimrc
https://gist.githubusercontent.com/thinca/3675965/raw/5739da5abedef838ed49b8328d9b29e3dd78bed4/bundle.vim
View reading_vimrc_url_126.txt
https://raw.githubusercontent.com/alwei/dotfiles/3760650625663f3b08f24bc75762ec843ca7e112/.vimrc
https://raw.githubusercontent.com/anekos/my-config/0afcd78455743a4d3fad31674136428052dc6ebe/.vimrc
https://raw.githubusercontent.com/sigwyg/dotfiles/8c70c4032ebad90a8d92b76b1c5d732f28559e40/.vimrc
https://raw.githubusercontent.com/basyura/vimfiles/ee086f25b8c58b8ea6bf025d26ebc11ae50e6ca1/rc/vimrc
https://raw.githubusercontent.com/osyo-manga/vimrc/9ef0ca9757abcdaa11c76024aa551f0b473624bf/vimrcs/default/vimrc
https://raw.githubusercontent.com/rhysd/dotfiles/8228ebaeab0e022ee7161d0eb9fc633876b0be41/vimrc
https://raw.githubusercontent.com/ebc-2in2crc/vimrc/f1ed88bf0d3668ebf8d702def40625d435f545cd/_vimrc
https://raw.githubusercontent.com/rbtnn/reading-vimrc/a92dae61200f50bd771f3a30c4f5fa06738c9aac/.vimrc
https://raw.githubusercontent.com/ujihisa/config/8c513ac93429e27ce27e6020a7d48e728b809169/_vimrc
https://gist.githubusercontent.com/thinca/3675965/raw/5739da5abedef838ed49b8328d9b29e3dd78bed4/bundle.vim
View goal.go
package main
import (
"fmt"
)
func main() {
fmt.Println(g("al"))
fmt.Println(g()("al"))
fmt.Println(g()()("al"))
View 2018-06-16-071451.go
package main
import (
"context"
"fmt"
"net/http"
"github.com/bradleyfalzon/ghinstallation"
"github.com/google/go-github/github"
)
@haya14busa
haya14busa / header
Created May 28, 2018
GitHub Apps installation webhook created event
View header
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
GitHub check suite requested webhook
View check_suite_requested.json
{
"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",
View incsearch-fix.patch
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);
}
View vimrc-incsearch-highlight.vim
augroup vimrc-incsearch-highlight
autocmd!
autocmd CmdlineEnter [/\?] :set hlsearch
autocmd CmdlineLeave [/\?] :set nohlsearch
augroup END
View gist:ff1e09dbe8d21f7bc6731cdd37fe2d81
$ 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)