This file contains 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"os" | |
) |
This file contains 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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
</head> | |
<body> | |
It works! | |
<div id="hoge">hoge</div> | |
<textarea id="text"></textarea> | |
<a href="javascript:foo()">foo</a> | |
<script> |
This file contains 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
resource "google_cloudbuild_trigger" "build_trigger" { | |
trigger_template { | |
branch_name = "master" | |
repo_name = "github_kaneshin_foobar" | |
dir = "cmd/foobar" | |
} | |
build { | |
images = ["gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA"] | |
step { | |
name = "gcr.io/cloud-builders/docker" |
This file contains 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
"os" | |
) | |
var ( |
This file contains 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
package main | |
import ( | |
"fmt" | |
"regexp" | |
"sync" | |
) | |
var re1 = regexp.MustCompile("hoge.*") | |
var re2 = regexp.MustCompile("foo.*") |
This file contains 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
package main | |
import "fmt" | |
type Member int | |
type Male Member | |
type Female Member | |
const ( | |
male Member = iota |
This file contains 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
package main | |
import ( | |
"context" | |
"log" | |
"net/http" | |
"time" | |
) | |
func main() { |
This file contains 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
package slackutil | |
import ( | |
"testing" | |
"github.com/stretchr/testify/assert" | |
) | |
func Test_Replacer(t *testing.T) { | |
r := NewReplacer(nil) |
This file contains 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
" use emacs key bind during command mode and a movement of insert mode | |
" start of line | |
cnoremap <c-a> <Home> | |
inoremap <c-a> <Home> | |
" back one character | |
cnoremap <c-b> <Left> | |
inoremap <c-b> <Left> | |
" delete character under cursor | |
cnoremap <c-d> <Del> | |
inoremap <c-d> <Del> |
This file contains 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
package main | |
import ( | |
"bufio" | |
"context" | |
"flag" | |
"fmt" | |
"os" | |
"os/signal" | |
"sync" |
NewerOlder