Skip to content

Instantly share code, notes, and snippets.

@ryanberry
ryanberry / gist:213195d043351c109b12
Last active August 29, 2015 14:02
Force the media query aggregator to order declarations for correct overrides
// --------------------------------------------------------------------------
// Initialise media query order
// --------------------------------------------------------------------------
@include media($large-desktop-down) { /* */ }
@include media($desktop-down) { /* */ }
@include media($tablet-down) { /* */ }
@include media($mobile-down) { /* */ }
@include media($mobile-up) { /* */ }
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
## _._ _..._ .-', _.._(`))
## '-. ` ' /-._.-' ',/
## ) \ '.
## / _ _ | \
## | a a / |
## \ .-. ;
## '-('' ).-' ,' ;
## '-; | .'
## \ \ /
## | 7 .__ _.-\ \
@ryanberry
ryanberry / card.php
Created April 22, 2016 01:17
CNG Example Card Markup
<a href="http://communitynews.com.au/joondalup-times/news/plea-made-for-underpass/" class="card card-medium post-5045 post type-post status-publish format-standard hentry category-news publication-joondalup-times">
<article itemscope="" itemtype="http://schema.org/NewsArticle">
<figure class="card-image" itemprop="image"><img class="card-image-image" alt="Plea made for underpass" src="http://communitynews.staging.hellorare.digital/wordpress/assets/d447392cWT-500x300.jpg"></figure>
<header class="card-header">
<h3 class="card-title" itemprop="name">Plea made for underpass</h3>
<div class="card-tags">
<span class="tag tag-news" itemprop="articleSection">Top Stories</span>
</div>
@ryanberry
ryanberry / article.php
Last active April 22, 2016 01:24
CNG Example Article Markup
<article class="section post-5045 post type-post status-publish format-standard hentry category-news publication-joondalup-times" id="article-5045" itemscope="" itemtype="http://schema.org/Article">
<header class="article-header">
<h1 class="article-title" itemprop="name">Plea made for underpass</h1>
<div class="article-meta">
<time class="article-meta-section article-meta-section-time" datetime="2015-12-10" itemprop="datePublished">December 10th, 2015, 12:30AM</time>

Handover - Project Information

hellorare/DPC24896B-State-Budget-Interface

  • Hosted on s3 (3 environments on 3 buckets dev/uat/production)
  • Static site generator based on http://harpjs.com/
  • Gulp based deploy scripts to push to dev and UAT

hellorare/COM26987-Community-News-Group

  • Wordpress site
  • Primary repo for the project
@mixin nth-delay($delay: 200ms) {
@for $i from 1 through 20 {
&:nth-child(#{$i}) {
animation-delay: (0.2s * $i);
}
}
}
let table = data.split(/\r?\n/).map(line => line.split(/\t/).map(Number))
let checkSum = table.reduce(
(prev, line) => (prev += Math.max(...line) - Math.min(...line)),
0,
)
console.log(checkSum)
let table = data.split(/\r?\n/).map(line => line.split(/ /))
let result = table.reduce((prev, line) => {
let seen = new Set()
let hasDuplicates = line.some(current => seen.size === seen.add(current).size)
return (prev += hasDuplicates ? 0 : 1)
}, 0)