sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| # Rails Application Template for Stepsies-style Applications | |
| # Usage: rails new myapp -m rails_template.rb | |
| # Configuration | |
| app_name = @app_name || ask("What is the name of your application?") | |
| # Gem additions | |
| gem_group :development, :test do | |
| gem 'brakeman', require: false | |
| gem 'rubocop-rails-omakase', require: false |
| # Basic key operators to query the JSON objects : | |
| # #> : Get the JSON object at that path (if you need to do something fancy) | |
| # -> : Get the JSON object at that path (if you don't) | |
| # ->> : Get the JSON object at that path as text | |
| # {obj, n} : Get the nth item in that object | |
| # https://www.postgresql.org/docs/9.4/functions-json.html#FUNCTIONS-JSONB-OP-TABLE | |
| # Date | |
| # date before today |
| .champ-moderator-badge-inner-wrapper { | |
| position: relative; | |
| .champ-moderator-badge-icon { | |
| background: #333333; | |
| color: white !important; | |
| border-radius: 50px; | |
| position: absolute; | |
| right: 10px; | |
| top: -5px; | |
| font-size: 10px; |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col"> | |
| <div class="below-header"> | |
| <div class="below-header-wrapper"> | |
| <h2>Welcome to Champ's live demo</h2> | |
| <p>Did you know that this isn't just a demo?<br>This is our live pre-sales Q&A and support forum. Take a look around and say "Hello".</p> | |
| </div> | |
| </div> | |
| </div> |
| calculated_hmac = Base64.strict_encode64(OpenSSL::HMAC.digest('sha256', SHARED_SECRET, data)) | |
| ActiveSupport::SecurityUtils.secure_compare(calculated_hmac, hmac_header) |
| <p>The following topics you're following has been updated:</p> | |
| {% for topic in topics %} | |
| <p> | |
| <b><a href="{{ topic.url }}" target="_blank">{{ topic.title }}</a></b> | |
| <br> | |
| Last post: {{ topic.last_post_excerpt }} | |
| </p> | |
| {% endfor %} |
| Founder to CEO | |
| How to build a great company from the ground up | |
| By Matt Mochary | |
| Table of Contents | |
| Introduction | |
| Part I -- The Beginning | |
| Chapter 1: Getting Started |
| <style type="text/css"> | |
| .post img:hover { | |
| cursor: pointer; | |
| } | |
| </style> | |
| <script type="text/javascript"> | |
| $(function() { | |
| $(document).on("click", ".post img", function(e) { | |
| var $this = $(this); |