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
| = Rubyの各バージョンリリース日 | |
| お仕事でちょっと過去のリリース日が必要になったのでまとめました。 | |
| 最近はリリースルールが決まってるのでこの後の更新は考えてないです。 | |
| == 内容の注意 | |
| * 「リリースしました的」表現がないバージョンは未記載。 | |
| * 2018/11/01現在のリリース状況。 | |
| * versionはX.Xで表示、dateは公表した日、URLはdateの根拠として利用したページへのリンク。 |
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
| # ここからダウンロードしたファイルを改変。https://gist.github.com/koseki/86778#file-sendmail-rb | |
| require "nkf" | |
| require "net/smtp" | |
| def sendmail(from, to, subject, body, host = "localhost", port = 25) | |
| body = <<EOT | |
| From: #{from} | |
| To: #{to.to_a.join(",\n ")} | |
| Subject: #{NKF.nkf("-wWMm0", subject)} | |
| Date: #{Time::now.strftime("%a, %d %b %Y %X %z")} |
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
| Sub ltrim_excel() | |
| Dim objRE | |
| Dim strText | |
| Dim strRes | |
| Dim r | |
| Set objRE = CreateObject("VBScript.RegExp") | |
| objRE.Pattern = "^ " |