This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
/* | |
* http://benhowdle.im/2014/01/29/easy-peasy-equal-heights/ | |
*/ | |
function sameHeights(selector) { | |
var selector = selector || '[data-equal-height]'; | |
query = document.querySelectorAll(selector), | |
elements = query.length, | |
max = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uploads latest screengrabs to S3 Bucket | |
# | |
# Requires: s3tools.org & S3 Bucket | |
function grabgo { | |
screengrabs_location=$(defaults read com.apple.screencapture location) | |
file_name=$(ls -t $screengrabs_location | head -n1) | |
s3cmd put --acl-public --guess-mime-type "$screengrabs_location$file_name" s3://bucketname | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function elongate() { | |
file_path=$(pwd) | |
file_name=$(basename "${1}") | |
file_ext="${file_name##*.}" | |
file_name="${file_name%.*}" | |
loop_by=10 | |
if [ "$2" ] | |
then | |
loop_by=${2} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --pretty=format:"%h%x09%ad%x09%s" -10 | mail -s "Repo Updates: $(date)" [email protected] -f [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* project filters | |
* | |
* @package project | |
*/ | |
function project_page_title( $title, $sep ) { | |
global $wp_query; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://public-api.wordpress.com/rest/v1/sites/www.mosaicrooms.org | |
{ | |
"ID": 71655423, | |
"name": "The Mosaic Rooms", | |
"description": "Contemporary Culture from the Arab World", | |
"URL": "http://www.mosaicrooms.org", | |
"jetpack": true, | |
"subscribers_count": 0, | |
"is_private": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section> | |
<h1 id="main">Styleguide</h1> | |
<p>The purpose of this HTML is to help determine what default settings are and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.</p> | |
<hr> | |
<h1 id="headings">Headings</h1> | |
<h1>h1. Heading</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var cssmin = require('gulp-cssmin'); | |
gulp.task('sass', function() { | |
gulp.src('./assets/scss/*.scss') | |
.pipe(sass({ | |
includePaths: require('node-bourbon').includePaths, | |
logErrorToConsole: true | |
})) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
/*---BODY and MAIN---*/ | |
body{ | |
background-image: url(""); | |
background-repeat: no-repeat; | |
background-position: center top; | |
background-attachment: scroll; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Post Type Switcher | |
* | |
* Allow switching of a post type while editing a post (in post publish section) | |
* | |
* @package PostTypeSwitcher | |
* @subpackage Main | |
*/ |