| 良い戦略 | 悪い戦略 | |
|---|---|---|
| 出発点 | 構造的課題の診断 | 願望・希望からの逆算 |
| 集中 | 選択と集中がある | すべてやろうとする |
| 形 | 実行可能な仮説 | スローガンやKPIの羅列 |
| 成果 | 行動を変える | 会議だけが盛り上がる |
This file contains hidden or 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 strict'; | |
| const crypto = require('crypto'); | |
| exports.handler = (event, context, callback) => { | |
| const request = event.Records[0].cf.request; | |
| const headers = request.headers; | |
| const method = request.method; | |
| const body = Buffer.from(request.body.data, 'base64').toString(); |
This file contains hidden or 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
| #!/bin/bash | |
| # コマンドライン引数から入力ファイル名を取得 | |
| if [ "$#" -ne 1 ]; then | |
| echo "使用方法: $0 [input-file]" | |
| exit 1 | |
| fi | |
| INPUT_FILE="$1" |
This file contains hidden or 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
| if defined?(FactoryBot) | |
| module FactoryBot | |
| module Syntax | |
| module Default | |
| class DSL | |
| # Custom DSL for ActiveModelSerializers::Model | |
| # Original: https://github.com/thoughtbot/factory_bot/blob/v5.0.2/lib/factory_bot/syntax/default.rb#L15-L26 | |
| def serializers_model_factory(name, options = {}, &block) | |
| factory = Factory.new(name, options) | |
| proxy = FactoryBot::DefinitionProxy.new(factory.definition) |
This file contains hidden or 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 aaa struct { | |
| CCC int | |
| } |
This file contains hidden or 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" | |
| "sync" | |
| ) | |
| type Fetcher interface { | |
| // Fetch returns the body of URL and | |
| // a slice of URLs found on that page. |
This file contains hidden or 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 ( | |
| "golang.org/x/tour/tree" | |
| "fmt" | |
| ) | |
| // Walk walks the tree t sending all values | |
| // from the tree to the channel ch. | |
| func Walk(t *tree.Tree, ch chan int) { |
This file contains hidden or 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 ( | |
| "golang.org/x/tour/pic" | |
| "image" | |
| "image/color" | |
| ) | |
| type Image struct{ | |
| width int |
This file contains hidden or 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 ( | |
| "io" | |
| "os" | |
| "strings" | |
| ) | |
| type rot13Reader struct { | |
| r io.Reader |
This file contains hidden or 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 "golang.org/x/tour/reader" | |
| type MyReader struct{} | |
| func (r MyReader) Read(b []byte) (int, error) { | |
| for i := range b { | |
| b[i] = 'A' | |
| } |
NewerOlder