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
void main() { | |
var deck = new Deck(); | |
print(deck); | |
// Shuffle the deck | |
deck.shuffle(); | |
print(deck.cardsWithSuit('Banana')); |
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
// Load Jribbble | |
function lunamedia_theme_load_scripts() { | |
if (!is_admin()) { | |
if(is_page_template('page-about.php')){ | |
// Register our Javascript | |
wp_register_script('jribbble', get_template_directory_uri() . '/js/jribbble.min.js', array('jquery'), false, false); | |
// Load our Javascript | |
wp_enqueue_script('jribbble'); | |
} |
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
{% capture index %}{{ 'now' | date: '%S' | times: collections.frontpage.products.size | divided_by: 60 }}{% endcapture %} | |
{% for article in blogs.blog-name.articles offset:index limit:1 %} | |
<a href="{{article.url}}">{{ article.title }}</a> | |
{% endfor %} | |