Skip to content

Instantly share code, notes, and snippets.

View joshfitzgerald's full-sized avatar

Josh Fitzgerald joshfitzgerald

  • Slickdeals
  • Las Vegas
View GitHub Profile
@melissacabral
melissacabral / HTML5 starter.html
Last active October 12, 2015 14:47
Simple HTML5 starting point for day 2 demo
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="description" content="DESCRIPTION" />
<title>SITE NAME - SITE DESCRIPTION</title>
<link rel="stylesheet" href="RESET_STYLESHEET_URL" media="screen" />
<link rel="stylesheet" href="STYLESHEET_URI" media="screen" />
</head>
@seanislegend
seanislegend / map-reverse.scss
Created November 19, 2014 14:00
Reverse the order of a SASS map.
@function mapReverse ($map) {
$result: null;
@if type-of($map) == "map" {
$keys: map-keys($map);
$map-reversed: ();
@for $i from length($keys) through 1 {
$map-reversed: map-merge(
$map-reversed,
@mor10
mor10 / functions.php
Created July 11, 2016 23:44
Custom page template with no sidebar for Twenty Sixteen child theme
<?php
/**
* Adds custom classes to the array of body classes.
*
* @param array $classes Classes for the body element.
* @return array (Maybe) filtered body classes.
*/
function wpcampus_body_classes( $classes ) {
// Adds a class of no-sidebar to custom no-sidebar page template.
if ( is_page_template('page-no-sidebar.php') ) {
@Jakobud
Jakobud / _map-sort.scss
Last active June 20, 2022 14:50
Sort a SASS map
/// map-sort
/// Sort map by keys
/// @param $map - A SASS map
/// @returns A SASS map sorted by keys
/// @requires function list-sort
/// @author Jake Wilson <jake.e.wilson@gmail.com>
@function map-sort($map) {
$keys: list-sort(map-keys($map));
$sortedMap: ();
@each $key in $keys {