Open terminal and type:
1. Create a directory at ~/bin:
mkdir ~/bin
2. Copy sublime executable to your ~/bin directory:
var Webflow = Webflow || []; | |
Webflow.push(function () { | |
// Find example element | |
var $element = $('.resize-demo'); | |
var $parent = $element.parent(); | |
// Listen for optimized resize event | |
Webflow.resize.on(function () { | |
function vhost { | |
sudo ~/.dotfiles/osx/mamp_vh.sh $1 | |
} |
// Helps with this problem: | |
// http://stackoverflow.com/questions/8059914/express-js-hbs-module-register-partials-from-hbs-file | |
var hbs = require('hbs'); | |
var fs = require('fs'); | |
var partialsDir = __dirname + '/../views/partials'; | |
var filenames = fs.readdirSync(partialsDir); |
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Database Name: " | |
read -e dbname | |
echo "Database User: " | |
read -e dbuser | |
echo "Database Password: " |
<?php | |
/** | |
* Function to get terms only if they have posts by post type | |
* @param $taxonomy (string) taxonomy name eg: 'post_tag','category'(default),'custom taxonomy' | |
* @param $post_type (string) post type name eg: 'post'(default),'page','custom post type' | |
* | |
* | |
* Usage: | |
* list_terms_by_post_type('post_tag','custom_post_type_name'); |