app/models/post.rb
spec/models/post.rb:42
- Open iTerm2 Preferences -> Profiles -> Default -> Advanced
| # OAuth 1, OAuth 2 | |
| # 1. Make requests | |
| # 2. Refresh access tokens | |
| # ------------------------------------------------------------------------ | |
| # OAuth 1 | |
| # options from OmniAuth::Strategies::Yahoo.default_options[:client_options] | |
| consumer_options = { | |
| :access_token_path => '/oauth/v2/get_token', | |
| :authorize_path => '/oauth/v2/request_auth', |
| // http://www.stevesouders.com/blog/2010/05/11/appendchild-vs-insertbefore/ | |
| (function(doc, script) { | |
| var firstScript = doc.getElementsByTagName(script)[0], | |
| newScript = doc.createElement(script); | |
| newScript.type = 'text/javascript'; | |
| newScript.async = true; | |
| newScript.src = ('https:' == doc.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| firstScript.parentNode.insertBefore(newScript, firstScript); |
| <!-- Use fallback for CDN hosted asset --> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script> |
| .hide-text { text-indent: -9999px; } /* stop using this, poor performance! */ | |
| /* better way to do it: */ | |
| .hide-text { text-indent: 100%; white-space: nowrap; overflow: hidden; } |
| List of Chrome URLs | |
| chrome://chrome-urls/ |