Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-01-23から1日間の記事一覧

Ruby | encryptor gem で暗号化・復号化を行う

概要 encryptor gem で暗号化・復号化を行う 詳細 encryptor gem で暗号化・復号化を行います。 サンプル ※要 gem install encryptor # encoding: utf-8 require "encryptor" require "tbpgr_utils" Encryptor.default_options.merge!(:key => 'encrypt_key'…

Ruby | google_drive gem でGoogleDriveの情報を取得する

概要 google_drive gem でGoogleDriveの情報を取得する 詳細 google_drive gem でGoogleDriveの情報を取得します。 サンプル ※要 gem install google_drive # encoding: utf-8 require "google_drive" session = GoogleDrive.login("ユーザー名", "パスワー…

キーワード検索による素早いブラウジング

臭い名 のんびり一番上から順にスクロールしてブラウジングしている 臭い英名 slow browsing by sequential scroll 臭い状況 必要な情報を探すためにページを上から順にスクロールしているため探すのに時間がかかる パターン名 キーワード検索による素早いブ…

Ruby | 標準入力からパスワードをechoせずに入力する

概要 標準入力からパスワードをechoせずに入力する 詳細 標準入力からパスワードをechoせずに入力します。 サンプル # encoding: utf-8 require 'io/console' require 'tbpgr_utils' print "Enter password: " password = STDIN.noecho(&:gets).chop puts pu…

TbpgrUtils | 追加要件 Array#together_selectを追加

概要 追加要件 Array#together_selectを追加 詳細 追加要件 Array#together_selectを追加します 仕様 ・Enumerable#select(find_all)のtogether版。 ・together_selectはN個の配列のイテレーションから1個の配列の結果を返却する。 N個の配列に対して、N個の…