Skip to content

Instantly share code, notes, and snippets.

View irohiroki's full-sized avatar

Hiroki Yoshioka irohiroki

View GitHub Profile
@irohiroki
irohiroki / rspec-syntax-cheat-sheet.rb
Created March 27, 2012 06:23 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
@irohiroki
irohiroki / README
Created July 2, 2012 04:05
The K combinator in JavaScript
This is a leaner version of K combinator and can be included directly by a script tag.
See https://gist.github.com/7727 for a mature one.
@irohiroki
irohiroki / abc.rb
Created August 23, 2012 06:11
Formatting metric_abc output of your Rails app
#!/usr/bin/env ruby
#
# usage: ./abc.rb
#
# Shows the total, average, and the worst 10 methods in the project.
def pt(line)
line[/(?<=: )\d+/].to_i
end
@irohiroki
irohiroki / go-spartan.md
Last active December 29, 2015 07:28
実現したい機能に対してリソース(時間)が足りないときの開発ポリシー

緊急時の開発

本文書は、実現したい機能に対してリソース(時間)が足りないときの開発ポリシーをまとめたものである。これらのポリシーを一律にプロジェクトに適用するのが難しい場合は、機能毎に個別に適用を検討する。各項目には、機能実現の代償となるものも書き添える。

ファンシーな作り込みをしない

機能の実現に直接関係ない実装をしない。例えば、ページ遷移せずにJavaScriptでデータや画面を操作するなど。工数の少ない代替案がある場合は、開発者が仕様を提案する。

代償
module github.com/irohiroki/aws-sdk-go-v2-test
go 1.18
require github.com/aws/aws-sdk-go-v2/service/dynamodb v1.17.3
require (
github.com/aws/aws-sdk-go-v2/credentials v1.12.23 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.19 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.26 // indirect