Skip to content

Instantly share code, notes, and snippets.

View MikeiLL's full-sized avatar

Mike iLL Kilmer MikeiLL

View GitHub Profile
@MikeiLL
MikeiLL / SassMeister-input.scss
Created June 14, 2016 04:12 — forked from KittyGiraudel/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// 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:
@MikeiLL
MikeiLL / gist:cfc26649751cf0336d51e3debd58b2c6
Created October 8, 2016 15:20
Bootstrap FormValidation Domain Name or IP address
$('#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
@MikeiLL
MikeiLL / Contract Killer 3.md
Last active March 23, 2017 23:15 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

#!/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'] );
/**
* Generate single crumb html
*
* @since 3.6.0
*/
public static function get_crumb_html( $label, $link, $class = '', $rel = '' ) {
$scope = self::get_scope();
$class = $class ? ' class="'. esc_attr( $class ) .'"': '';
$rel = $rel ? ' rel="'. esc_attr( $rel ) .'"': '';
return '<span '. $scope . $class . $rel .'><a href="'. esc_url( $link ) .'" title="'. esc_attr( $label ) .'" itemprop="url" content="'. esc_url( $link ) .'"><span itemprop="title">'. esc_html( $label ) .'</span></a></span>';