Skip to content

Instantly share code, notes, and snippets.

View bishless's full-sized avatar

Daniel Bishop bishless

View GitHub Profile
@bishless
bishless / change_editor_font.php
Created July 18, 2013 05:48
Customize WordPress text/html editor area
function change_editor_font(){
echo "<style type='text/css'>
#wp-content-editor-container textarea#content {
font-family: \"Meslo LG M DZ\", Consolas, monospace;
font-weight: normal;
font-size: 13px;
line-height: 1.5em;
color: #fab00d;
background-color: #222;
}
@bishless
bishless / find-and-replace-sublime
Created July 18, 2013 05:54
Find and Replace links snippet for Sublime Text 2 w/ regex
<a href=\"(.*?)\">
@bishless
bishless / Preferences.sublime-settings
Last active May 20, 2016 14:48
Sublime Text 3 User Settings
{
"always_show_minimap_viewport": true,
"auto_complete": false,
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_extra_bottom": 1,
"caret_extra_top": 1,
"caret_extra_width": 1,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Otto/schemes/Otto Oceanic.tmTheme",

TALK: Intranet with WordPress

Abstract: Building an Intranet with WordPress

Sorry SharePoint. I built a fully armed and operational corporate Intranet with WordPress.

Outlining

  1. Intro (who am I? who's BFCO?)
  2. What's an Intranet?
@bishless
bishless / gulpfile.js
Last active January 15, 2016 20:54
example WordPress theme gulpfile
var gulp = require('gulp');
var debug = require('gulp-debug');
var gutil = require('gulp-util');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var prefix = require('gulp-autoprefixer');
var filter = require('gulp-filter');
@bishless
bishless / wp-mailhog.php
Created June 2, 2017 23:03
Configure WordPress on Valet to use MailHog
<?php
/**
* @link
* @since 1.0.0
* @package TODO
*
* @wordpress-plugin
* Plugin Name: Use MailHog
* Description: Configure WordPress on Valet to use MailHog
* Version: 1.0.0
<?php
/**
* Add vcard to upload-safe files
*/
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes=array() ) {
$existing_mimes['vcard'] = 'text/vcard';
$existing_mimes['vcf'] = 'text/vcard';
return $existing_mimes;
}