Skip to content

Instantly share code, notes, and snippets.

@yagince
yagince / no-eat.md
Last active April 19, 2024 01:18
食べられない物
  • エビ
  • カニ
  • ウニ
  • アワビ
  • カキ
  • 白子
  • あん肝
  • サザエ
  • レバー
  • 火の通ったイカ
@yagince
yagince / fbm-20161209.md
Created December 9, 2016 08:44
振り返り 12月09日

12月09日振り返り

チームレーダー 10m

  • コミュニケーション
  • モチベーション
  • 生産性
  • リリース

一番低いやつにフォーカスする

set-option -g default-shell /bin/zsh
#+----------------------------------------------------------------------------------------+
# キーバインド
#+----------------------------------------------------------------------------------------+
#プレフィックスキーを設定
unbind-key C-b
set-option -g prefix C-z
bind-key C-z send-prefix

ペアプロの心得

休憩をとる

1.定期的に休憩をとっていますか? ペアプログラミングは、精神的な体力を消耗します。定期的に休憩をとってリフレッシュすることがとても大切です。

謙虚になる

2.「色々な実装方針がある」という認識がありますか?

@yagince
yagince / bench.rb
Last active December 29, 2015 02:39
KVS Benchmarks
require 'benchmark'
require "pp"
require 'libcdb'
require 'memcached'
require 'redis'
require 'hiredis'
require 'leveldb'
CDB_FILE = "test1.cdb"
use 5.012;
sub my_push {
my $list_ref = shift;
my $item = shift;
push @$list_ref, $item;
}
my @orig = (1,2,3);
my_push \@orig, 10;
# -*- coding: utf-8 -*-
module HashExtensions
refine Hash do
def method_missing(name, *args)
self[name] || self[name.to_s] || super
end
end
end
using HashExtensions # 匿名モジュール内じゃないとusingできない
class Hash
def method_missing(name, *args)
self[name] || self[name.to_s] || super
end
end
hash = {a: "hoge"}
p hash.a
# -*- coding: utf-8 -*-
module HashExtensions
refine Hash do
def method_missing(name, *args)
self[name] || self[name.to_s] || super
end
end
end
using HashExtensions # 匿名モジュール内じゃないとusingできない