Skip to content

Instantly share code, notes, and snippets.

View zanetaylor's full-sized avatar
👽

Zane Taylor zanetaylor

👽
View GitHub Profile
version: "3"
services:
web:
image: "php:7.4-apache"
restart: 'always'
depends_on:
- mariadb
restart: 'always'
ports:
@zanetaylor
zanetaylor / map.js
Created July 30, 2021 18:22
MBGL events & feature props
mbMap.on('click', 'prioritization-projects-update', function (e) {
var tmpl = $.templates("#project-popup");
var projectDetails = tmpl.render({
projID: e.features[0].properties.Join_ID,
name: e.features[0].properties.Street,
location: e.features[0].properties.Location,
pdesc1: e.features[0].properties.Primary_De,
sdesc1: e.features[0].properties.Secondary_,
@zanetaylor
zanetaylor / resume.json
Last active January 26, 2024 17:20
My resume in JSON format. Populates https://registry.jsonresume.org/zanetaylor, courtesy of jsonresume.org.
{
"meta": {
"theme": "mantra"
},
"basics": {
"name": "Zane Taylor",
"label": "Creative Web Engineer",
"email": "me@zane.im",
"website": "https://zane.im",
"summary": "A highly experienced technical leader and web engineer with a broad background and a knack for problem solving. Creative and inspired by unique challenges and complex problems. Design conscious with a strong interest in impactful, mission-driven work.",
<?php
/*
Template Name: Kitchen Sink
*/
get_header(); ?>
<div class="row">
<div class="small-12 large-12 columns" role="main">
<?php /* Start loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
@zanetaylor
zanetaylor / keybase.md
Created June 21, 2016 21:18
Keybase proof

Keybase proof

I hereby claim:

  • I am zanetaylor on github.
  • I am zanetaylor (https://keybase.io/zanetaylor) on keybase.
  • I have a public key ASCFQjlTjdRWwgE3y4DnPcQcJkqotfgwpKNtZnperJcRygo

To claim this, I am signing this object:

function custom_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
@zanetaylor
zanetaylor / wp-enable-svg.php
Last active September 1, 2015 20:44
Enable SVG uploads in WordPress
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes=array() ) {
// add the file extension to the array
$existing_mimes['svg'] = 'mime/type';
// call the modified list of extensions
@zanetaylor
zanetaylor / vertical-align.css
Last active January 3, 2016 21:39
Vertical centering w/ pizazz!
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
@zanetaylor
zanetaylor / Gruntfile.js
Created January 20, 2014 00:49
Gruntfile boilerplate for a basic Foundation 5 prototype
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Compiles Sass to CSS and generates necessary files if requested
compass: {
options: {
sassDir: 'app/assets/scss',
@zanetaylor
zanetaylor / ie9-empty-transparent-hover-fix.css
Last active January 3, 2016 15:39
IE9 empty & transparent element :hover bug workaround
background: rgba(0, 0, 0, 0);