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
<script src="http://assets.sbnation.com/features/2013-NHL-Preview/tentpole.min.js"></script> | |
<script type="text/javascript"><!-- | |
jQuery(function($) { $('.feature-body').css("height",$(window).height()) }); | |
// --></script> |
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
select billings.cost, employees.name | |
from ( | |
select cost, employee_id from past_billings | |
union | |
select (hours * rate) as cost from future_billings | |
) billings | |
join employees on employees.id = billings.employee_id; |
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
select stuff.*, if( | |
exchange_rate.rate is null, | |
(select rate from exchange_rates order by month desc limit 1), | |
exchange_rate.rate | |
) | |
from stuff | |
left outer join exchange_rate on exchange_rate.stuff_id = stuff.id; |
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
( | |
select transactions.*, exchange_rate.rate | |
join exchange_rate on transcations.month = exchange_rate.month | |
) | |
union | |
( | |
select predictions.*, (select rate from exchange_rate order by month desc limit 1) as rate | |
) |
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
<% data.stories.each_slice(4) do |chunk| %> | |
<div class="m-box"> | |
<% chunk.each do |d| %> | |
<div class="m-boxes__quarter" style="background-image: url('<%= d.image %>');"> | |
<h6><a href="<%= d.url %>" target="new"><%= d.headline %></a></h6> | |
</div> | |
<% end %> | |
</div> | |
<% end %> |
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
<div style="width: 970px; margin: 0 auto; clear: both;"> | |
<!-- ad markup goes here --> | |
</div> |
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
<a href="javascript:(function($) {var ad = $('<p>').css({ backgroundColor: 'red', height: '0' }); $('#article-body, .entry-body').first().find('p, h1, h2, h3, h4, h5, h6, blockquote').eq(2).before(ad); ad.animate({ height: '250px' }, 'fast'); })(jQuery)">Test mid-body ad</a> | |
<p>^---- Drag this to your bookmarks toolbar.</p> | |
<p>Click it on any chorus article page to insert a red box where the ad would appear.</p> | |
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
{ | |
"startLength": 0, | |
"endLength": 394, | |
"ops": [ | |
{ | |
"value": "Quill Rich Text Editor", | |
"attributes": { | |
"size": "18px" | |
} | |
}, |
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
$schema: 'http://json-schema.org/draft-04/schema#' | |
type: object | |
properties: | |
ops: | |
type: array | |
items: | |
oneOf: | |
- type: object | |
properties: | |
insert: |
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
{ | |
type: 'embed', | |
tag: 'IFRAME', | |
add: function(node, data) { | |
node.classList.add('pullquote'); | |
node.setAttribute('data-pullquote', data.value); | |
node.setAttribute('src', '/iframe/pullquote.html'); | |
return node; | |
}, | |
remove: function(node) { |