英題:Fluentd Hacking Guide
30分しかないため斜線部分は今回省く
- Fluentd の起動シーケンスとプラグインの読み込み
Fluentd の設定ファイルのパース- Input Plugin から Output Plugin にデータが渡る流れ
| class Symbol | |
| def call(*argv) | |
| case | |
| when block_given? | |
| -> obj { self.to_proc[obj, *argv, &proc] } | |
| when argv.size > 0 | |
| -> obj { self.to_proc[obj, *argv] } | |
| else | |
| self.to_proc | |
| end |
以下Android公式ドキュメント Migrating to WebView in Android 4.4 の翻訳です。 間違いなどあればぜひご指摘ください。拙いですが誰かの役に立てば幸いです。
Android 4.4(API レベル 19)では、Chrominium ベースの新しい WebView が紹介されました。この変更で、WebView のパフォーマンス向上し、最新の Web ブラウザに追いつくために、HTML5、CSS3やJavaScript を標準サポートします。WebView を使っているアプリは、Android 4.4 以上からはこれらのアップデートの恩恵を受けることになります。
本ドキュメントは WebVeiew の変更点について説明します。なお、その変更は Android 4.4 以上、つまり targetSdkVersion を "19" 以上にした場合です。
Note: targetSdkVersion を "18" 以下にした場合、WebView は以下で述べるような挙動をすることを避けるために、"quirks モード" になります。これは、パフォーマンス向上と Web 標準に対応するためです。
| # thanks to @rainchen | |
| class BaseUploader < CarrierWave::Uploader::Base | |
| storage :file | |
| after :remove, :delete_empty_upstream_dirs | |
| # e.g.: "uploads/venue/photo/000/000/003/thumb_Limoni_-_overall-resized-1.jpg" | |
| def store_dir | |
| "#{base_store_dir}/#{model_id_partition}" | |
| end |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| Twitter API 1.1 の現行APIの制限 | |
| (REST API v1.1 Limits per window by resource) | |
| https://dev.twitter.com/docs/rate-limiting/1.1/limits | |
| ・15分辺り最大何回実行できるか | |
| Timelines | |
| GET statuses/mentions_timeline 15回 | |
| GET statuses/user_timeline 180回/user, 300回/application |