Skip to content

Instantly share code, notes, and snippets.

@wlcdesigns
wlcdesigns / wp_parse.php
Created Oct 7, 2015
WordPress Parse Push Notification
View wp_parse.php
<?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;
View gist:6ab7dc3d82d10fd4aba0
/* 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 / foundation-5-fixed-offcanvas-topbar
Created Oct 21, 2014
Foundation 5: Fixed Offcanvas Top Bar
View foundation-5-fixed-offcanvas-topbar
/* 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%;