Skip to content

Instantly share code, notes, and snippets.

module github.com/bsoo/line-bot
go 1.11
require (
cloud.google.com/go v0.40.0
github.com/line/line-bot-sdk-go v6.3.0+incompatible
google.golang.org/genproto v0.0.0-20190627203621-eb59cef1c072
)
package linebot
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
package main
import (
"math/rand"
"testing"
"time"
)
func BenchmarkSlice(b *testing.B) {
s := make([]int, 100)
package main
import (
"fmt"
"math/rand"
"testing"
"time"
)
func BenchmarkSlice(b *testing.B) {
問題1
for文を使用して下記の図形を出力してください
*
***
*****
*******
*****
***
@bsoo
bsoo / Preferences.sublime-settings
Last active August 29, 2015 14:22
Preferences.sublime-settings
{
"auto_close_tags": true,
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 50,
"auto_complete_selector": "",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
@bsoo
bsoo / osx_setup.sh
Last active August 29, 2015 13:58 — forked from evalphobia/osx_setup.sh
#!/bin/bash
OS_KEY_REPEAT=2
OS_REPEAT_START=15
# keyboard
defaults write NSGlobalDomain KeyRepeat -int $OS_KEY_REPEAT # キーリピート速度
defaults write NSGlobalDomain InitialKeyRepeat -int $OS_REPEAT_START # キーリピート開始までの時間
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false # キー代用入力を無効にする
@bsoo
bsoo / Brewfile
Last active August 29, 2015 13:58 — forked from evalphobia/Brewfile
update
upgrade
tap homebrew/versions
# install homebrew-cask
tap phinze/homebrew-cask
install brew-cask
# install with homebrew