This file contains 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
# 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 |
This file contains 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
.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; |
This file contains 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
<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> |
This file contains 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
calculated_hmac = Base64.strict_encode64(OpenSSL::HMAC.digest('sha256', SHARED_SECRET, data)) | |
ActiveSupport::SecurityUtils.secure_compare(calculated_hmac, hmac_header) |
This file contains 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
<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 %} |
This file contains 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
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 |
This file contains 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
<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); |
This file contains 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
production: | |
service: Mirror | |
primary: amazon1 | |
mirrors: | |
- amazon2 |
This file contains 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
<style type="text/css"> | |
.ajaxcart__product-meta, | |
.cart__product-property { | |
display: none; | |
} | |
</style> | |
<script type="text/javascript"> | |
var cssClasses = [".ajaxcart__product-meta", ".cart__product-property"]; | |
setInterval(function() { | |
jQuery.each(cssClasses, function(index, cssClass) { |
NewerOlder