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
| grep -r "fa-" \ | |
| --include=\*.{rb,haml,jst,js} \ | |
| --exclude=\*xregexp\* \ | |
| --exclude-dir={public,.//app/assets/javascripts/i18n,.//app/assets/javascripts/i18n/web} \ | |
| ./ \ | |
| > icons.txt | |
| ruby -e 'File.read("./icons.txt").scan(/(fa(?:-\w+)+)/).flatten.uniq' |
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
| EventMachine::HttpRequest.use EventMachine::Middleware::JSONResponse | |
| # prepare request | |
| con = EventMachine::HttpRequest.new('https://stream.twitter.com/1.1/statuses/filter.json', { | |
| connect_timeout: 0, | |
| inactivity_timeout: 0, | |
| keepalive: true | |
| }) | |
| # plug oauth | |
| con.use EventMachine::Middleware::OAuth({...keys..}) | |
| # setup tracking |
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
| # frozen_string_literal: true | |
| require "fiber" | |
| module ActionView | |
| # == TODO | |
| # | |
| # * Support streaming from child templates, partials and so on. | |
| # * Rack::Cache needs to support streaming bodies | |
| class StreamingTemplateRenderer < TemplateRenderer #:nodoc: | |
| # Ruby fibers does not support Thread.current[:locals] |
OlderNewer