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
# Detection | |
# --------- | |
hook global BufCreate .*\.(hbs) %{ | |
set buffer filetype handlebars | |
} | |
# Highlighters | |
# ------------ |
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
import Ember from 'ember'; | |
export default Ember.Object.extend({ | |
model: null, | |
subpath: null, | |
dynamicModelProperty: Ember.computed('model', 'subpath', function() { | |
let subpath = this.get('subpath'); | |
if ( subpath ) { |
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
var postsData = [ | |
{ | |
title: 'Introducing Telescope', | |
url: 'http://sachagreif.com/introducing-telescope/' | |
}, | |
{ | |
title: 'Meteor', | |
url: 'http://meteor.com' | |
}, | |
{ |
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
$('h2').on('mouseout', function() { | |
$(this).closest('article').find('.read-more').css({'font-size': '14px'}); | |
}); |
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
<article> | |
<h2>Yet another headline</h2> | |
<a class="read-more" href="#">read more...</a> | |
<div class="more"> | |
<p>Another tasty story...</p> | |
</div> | |
</article> | |
<article> | |
<h2>Even another headline!!!!</h2> |
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
<h2>A really intriguing headline!</h2> | |
<a class="read-more" href="#">read more...</a> | |
<div class="more"> | |
intrigue: | |
<ol> | |
<li>To effect by secret scheming or plotting.</li> | |
<li>To arouse the interest or curiosity of: Hibernation has long intrigued biologists. | |
[From French intriguer, to plot, from Italian intrigare, to plot, from Latin intrīcāre, to entangle; see intricate.]</li> | |
</ol> |
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
<h2>A really intriguing headline!</h2> | |
<a class="read-more">read more...</a> | |
<div class="more"> | |
intrigue: | |
<ol> | |
<li>To effect by secret scheming or plotting.</li> | |
<li>To arouse the interest or curiosity of: Hibernation has long intrigued biologists. | |
[From French intriguer, to plot, from Italian intrigare, to plot, from Latin intrīcāre, to entangle; see intricate.]</li> | |
</ol> |
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
var total = 4 + parseFloat("3.5"); | |
alert(total); // shows "7.5"! |
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
var total = 4 + parseInt("2"); | |
alert(total); // shows "6" again! |
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
var total = 4 + "2"; | |
alert(total); // shows "42" |
NewerOlder