Skip to content

Instantly share code, notes, and snippets.

View k1LoW's full-sized avatar
🦓

Ken’ichiro Oyama k1LoW

🦓
View GitHub Profile

ctx, cencel wait := donegroup.WithCancel(ctx) ではない理由

前提: ctx, cencel wait := donegroup.WithCancel(ctx) が良い理由

  • donegroup.WithCancelwait の関連がわかりやすい。
  • cancelwait でわかりやすい

ctx, cencel wait := donegroup.WithCancel(ctx) だけをみるととても良い

なぜ wait ではなく donegroup.Wait(ctx) に分かれているのか

@k1LoW
k1LoW / test.yml
Last active April 19, 2024 10:28
desc: Example
vars:
actions: [
{
"type": "first",
"value": 1
},
{
"type": "second",
"value": 2
@k1LoW
k1LoW / book.yml
Created February 9, 2024 08:10
testdata for runn (Single file)
desc: Login and get projects.
runners:
req: https://example.com/api/v1
db: mysql://root:mypass@localhost:3306/testdb
vars:
username: alice
steps:
-
db:
query: SELECT * FROM users WHERE name = '{{ vars.username }}'
@k1LoW
k1LoW / img.md
Last active January 18, 2019 16:23
img.md

aaaa

![img](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAgAElEQVR4AezBaVCVh7348e/vec7hcNhBFBRQEHdRcIkGFFfE3VQNSZsmbZIut7293e7tzJ3emb7vnenMnbn/Tns7baY3rUkTY6om0cgOgiiLKyqC4kqURTbZzvY8v7/nBTPMGZOmtr1vwucj+hiTJn0B+f1+2tvbqaqqori4mIaGBu7fv8/TcjqdZGdns3nzZtavX09OTg7Tp09nnN/v5xe/+AX/+Z//yaNHj1BVxhmGQUREBAUFBXzzm9/EMAwuXLhAdXU1Z8+epbe3F1Ul1NSpU1m2bBkvvvgihYWFzJgxA8MwUFVs26a7u5ubN2/y5ptv8s477zAyMoJt20zkcDhIT09n+fLlPP/882zbto2IiAhM0+SzqCpBIkLQ/fv3OXnyJO+88w7V1dU8evQI27YJ5Xa7mTlzJkuXLmXPnj3s27ePiIgIPi9VJUhEGDcyMsLDhw8pKSnhzTff5MqVKzx69AjbtvksM2bMYNmyZezYsYMNGzYwc+ZMoqKimMi2bXp6ejh//jzvvvsupaWl3L9/H1UllNPpJDMzk5dffpk9e/aQmZlJREQEn5dt2/h8PlpaWqiqquLDDz/k1KlT+Hw+QhmGQUJCAtOnT6e/v5/79+9j2zZ/C6fTSXR0NN///vf5wQ9+QExMDA6Hg08j+hiTJn0B+f1+bt++TXV1NSdOnKC+vp6Ojg6eltPpJCsri02bNrFhwwaWL1/OjBkzGOf3+/mv//ovfvGLX9Df308gEGCcYRhERESwefNmXn/9ddxuN1evXqWyspKGhgZ6enoIBAKESkhIYOnSpTz//PMUFhYyc+ZMXC4XqoplWTx48IBr165x4MAB/vznPzM6Oopt24wTERwOB3PmzCE3N5cvfelLbNy4kYiICAzD4NOoKiLCRDdu3ODkyZMcOnSIU6dOMTw8jG3bhIqJiSEjI

CREATE TABLE a (
order_no TEXT NOT NULL,
detail_no TEXT NOT NULL,
amazon_item_id TEXT NOT NULL,
divided_delivery_charge TEXT NOT NULL,
divided_cod_fee TEXT NOT NULL,
registration_date TEXT NOT NULL,
registration_id TEXT NOT NULL,
update_date TEXT NOT NULL,
update_id TEXT NOT NULL
@k1LoW
k1LoW / piculet.tf
Created September 1, 2017 09:32
Test environment for Piculet `eval $(terraform output | sed 's/ //g' | sed 's/^/export /')` Raw
variable "region" {
default = "ap-northeast-1"
}
provider "aws" {
region = "${var.region}"
}
data "aws_caller_identity" "current" {}
@k1LoW
k1LoW / roadworker.tf
Last active September 1, 2017 09:26
Test environment for Roadworker `eval $(terraform output | sed 's/ //g' | sed 's/^/export /')`
variable "region" {
default = "ap-northeast-1"
}
variable "availability_zones" {
type = "list"
default = ["ap-northeast-1a", "ap-northeast-1c"]
}
provider "aws" {
region = "${var.region}"
require 'date'
require 'fileutils'
Dir.glob('page-*').each do |f|
content = File.read(f)
title = content.partition("\n")[0]
body = content.partition("\n")[2]
next if body.empty?
next if title.split(' ').empty?
splitted = title.split(' ')
@k1LoW
k1LoW / fusic20.md
Last active December 9, 2018 01:36
Fusicの20の信条

Fusicの20の信条

  • 働く人がイキイキとしている
  • デキる人になる
  • とことん働き、とことん遊ぶ
  • 尖る
  • 常に+αを考える
  • 速く
  • 全力でやる
  • 諦めが悪い