Skip to content

Instantly share code, notes, and snippets.

View drwpow's full-sized avatar

Drew Powers drwpow

View GitHub Profile
//----- functions.php -----//
$site_url = get_bloginfo('url');
$template_url = get_bloginfo('template_directory');
//----- index.php (or wherever) -----//
<?php
helpers do
def is_current_page(page)
current_page.url == page ? {:class => 'is-active'} : {}
end
def groups
sitemap.resources.select{ |resource| resource.data.type == 'page' }
.group_by { |g| g.data.group }
end
end
@drwpow
drwpow / SassMeister-input.sass
Last active August 29, 2015 14:20
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$g-columns: 12
.g-b--1of1
@for $column from 1 to $g-columns
@drwpow
drwpow / SassMeister-input.sass
Created June 4, 2015 16:05
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
$g-selector: unquote(".")
$g-columns: 12
=g-device-type($namespace: '')
@drwpow
drwpow / SassMeister-input.sass
Created June 4, 2015 16:13
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
$g-selector: unquote(".")
$g-columns: 12
=g-device-type($namespace: '')
// -------------------------------------
// Base
// -------------------------------------
.g
display: flex
margin-left: -$b-space
flex-wrap: wrap
@drwpow
drwpow / front-end-names.md
Last active September 10, 2015 19:32
Names for front-end components

Names for front-end components

Pulled from graphic design terms

Alley
Space between two columns of text. Often confused with gutter, but there’s so much confusion on both definitions they can be used interchangeably.

Boost
Large picture (usually top priority) promoting a click-through to a feature, story, or content

Byline

@drwpow
drwpow / user-testing.md
Last active September 10, 2015 17:40
User Testing
@drwpow
drwpow / distributed-pt-2.md
Created September 25, 2015 18:29
Distributed Web, Part 2 Questions
  1. What is the difference between native development (iOS, Android, OSX, Windows), websites, and web apps?
  2. What are the cost differences?
  3. Do you start with web apps always? When would you start with native first?
  4. How do you find an agency to build what you want?
  5. How do you start the development process right? What should you do beforehand to prepare?
@drwpow
drwpow / visualized-2015.md
Last active October 12, 2015 16:15
Quick list of speakers, ideas, and important links from Visualized 2015