The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
/// Convert angle | |
/// @author Chris Eppstein | |
/// @param {Number} $value - Value to convert | |
/// @param {String} $unit - Unit to convert to | |
/// @return {Number} Converted angle |
#as per http://hackercodex.com/guide/python-development-environment-on-mac-osx/ | |
# pip should only run if there is a virtualenv currently activated | |
export PIP_REQUIRE_VIRTUALENV=false | |
# cache pip-installed packages to avoid re-downloading | |
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache | |
gpip(){ | |
PIP_REQUIRE_VIRTUALENV="" pip "$@" | |
} | |
# In case there's anything in there we need: |
$('#domainName').formValidation({ | |
framework: 'bootstrap', | |
icon: { | |
valid: 'glyphicon glyphicon-ok', | |
invalid: 'glyphicon glyphicon-remove', | |
validating: 'glyphicon glyphicon-refresh' | |
}, | |
fields: { | |
ip: { | |
validators: { |
blockquote, blockquote p { | |
font-family: Hoefler Text,Baskerville Old Face,Garamond,Times New Roman,serif !important; | |
font-style: normal; | |
font-variant: normal; | |
font-weight: 500; | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
blockquote p cite { |
<VirtualHost *:80> | |
ServerAdmin mike@mzoo.org | |
ServerName localhost | |
ServerAlias *.localhost | |
VirtualDocumentRoot /Users/mikekilmer/Sites/%0 | |
php_admin_value auto_prepend_file /Applications/MAMP/conf/apache/extra/setdocroot.php | |
# content of above file | |
# $_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['SCRIPT_FILENAME']); | |
RewriteLogLevel 3 | |
RewriteLog "/Applications/MAMP/logs/rewrite.log" |
#!/bin/bash | |
# Read more: https://medium.com/@tatemz/using-wp-cli-with-docker-21b0ab9fab79#.bzqhqfa6a | |
# Also see https://github.com/chriszarate/docker-wordpress | |
if [ $# -eq 0 ] ; then | |
echo usage: directory_name | |
else | |
WPDIR="$1" | |
mkdir "$WPDIR" && cd "$WPDIR" | |
cat >> docker-compose.yml <<EOL |
#!/bin/bash | |
# Read more: https://medium.com/@tatemz/using-wp-cli-with-docker-21b0ab9fab79#.bzqhqfa6a | |
# Also see https://github.com/chriszarate/docker-wordpress | |
if [ $# -eq 0 ] ; then | |
echo usage: directory_name | |
else | |
WPDIR="$1" | |
mkdir "$WPDIR" && cd "$WPDIR" | |
cat >> docker-compose.yml <<EOL |
/** | |
* Add & remove image sizes from the "Image Sizes" panel | |
* | |
* @since 1.0.0 | |
* source: https://wpexplorer-themes.com/total/snippets/addremove-image-sizes/ | |
*/ | |
public static function cpt_image_sizes( $sizes ) { | |
// Remove "blog_post_full" image size | |
unset( $sizes['blog_post_full'] ); |