Skip to content

Instantly share code, notes, and snippets.

View kaneshin's full-sized avatar
💡

Shintaro Kaneko kaneshin

💡
View GitHub Profile
@kaneshin
kaneshin / main.go
Last active February 1, 2020 05:29
package main
import (
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
)
<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>
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"
package main
import (
"flag"
"fmt"
"net/http"
"os"
)
var (
package main
import (
"fmt"
"regexp"
"sync"
)
var re1 = regexp.MustCompile("hoge.*")
var re2 = regexp.MustCompile("foo.*")
package main
import "fmt"
type Member int
type Male Member
type Female Member
const (
male Member = iota
package main
import (
"context"
"log"
"net/http"
"time"
)
func main() {
package slackutil
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test_Replacer(t *testing.T) {
r := NewReplacer(nil)
" 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>
package main
import (
"bufio"
"context"
"flag"
"fmt"
"os"
"os/signal"
"sync"