Skip to content

Instantly share code, notes, and snippets.

@wlcdesigns
wlcdesigns / foundation-5-fixed-offcanvas-topbar
Created October 21, 2014 20:19
Foundation 5: Fixed Offcanvas Top Bar
/* Instead of fixing the top-bar only, let's fix the entire offcanvas into position and make the main-section class scrollable */
/* Add the "fixed" class to the "off-canvas-wrap" like so: */
<div class="off-canvas-wrap fixed" data-offcanvas>
/* ...and add the following to your Style Sheet: */
body,html{
height:100%;
@wlcdesigns
wlcdesigns / gist:6ab7dc3d82d10fd4aba0
Created May 30, 2015 18:10
Vertial Align Sass Mixins
/* Vertically and horizontally center relative positioned elements */
@mixin vertical-align
{
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
@wlcdesigns
wlcdesigns / wp_parse.php
Created October 7, 2015 20:47
WordPress Parse Push Notification
<?php
/*
* IMPORTANT: YOU MUST DOWNLOAD THE ParsePlatform PHP SDK IN ORDER FOR THIS TO WORK:
* https://github.com/ParsePlatform/parse-php-sdk
*/
require('parse-php-sdk-master/autoload.php');
use Parse\ParseObject;
use Parse\ParseQuery;