Skip to content

Instantly share code, notes, and snippets.

Mark Luetke luetkemj

Block or report user

Report or block luetkemj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
luetkemj / gist:2002921
Created Mar 8, 2012
WP: Plugin Header
View gist:2002921
Plugin Name:
Plugin URI:
Author: Mark Luetke
Author URI:
Version: 1.0
luetkemj / gist:2007213
Created Mar 9, 2012
HTML: Abbreviated Template
View gist:2007213
<!DOCTYPE html>
<title>HTML5 abbr</title>
<meta charset=utf-8>
<h1>That's it!</h1>
luetkemj / style.css
Created Mar 9, 2012
WP-CSS: Wordpress classes
View style.css
/* =============================================================================
WordPress WYSIWYG Editor Styles
========================================================================== */
.entry-content img {
margin: 0 0 1.5em 0;
max-width: 100%;
height: auto;
.alignleft, img.alignleft {
View wp-query-ref.php
// This gist is now maintained on github at
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
luetkemj / gist:2031976
Created Mar 13, 2012 — forked from bekapod/gist:2017562
CSS: Inline Block Hack
View gist:2031976
.inline-block {
display: inline-block;
/* IE7 hack to mimic inline-block on block elements */
*display: inline;
*zoom: 1;
luetkemj / quicktemplate.html
Created Apr 5, 2013
HTML: Quick Template
View quicktemplate.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>The HTML5 Herald</title>
<meta name="description" content="Quick Template">
<meta name="author" content="luetkemj">
<script src="//"></script>
View gist:5ac8aebc9bc498409c09
##too many open files error when installing gulp for google's web starter. This did the trick
ulimit -n 1048
View gist:3ac035b26e4e45c07a7d
/* =============================================================================
========================================================================== */
Name of the inline element to produce for example “span”. The current text selection will be wrapped in this inline element.
View demo-pattern.variant
<div class="pattern" id="demo-pattern.variant">
<details class="pattern-details">
<summary class="pattern-name">
demo-pattern.variant <a class="pattern-link" rel="bookmark" href="" title="View just this pattern">#</a>
<code class="pattern-markup language-markup">
<!-- github gists or possibly a grunt task to highlight markup here... -->
luetkemj / gist:a8a0b317cb58ed5ec136
Last active Aug 29, 2015
Create category on WPMS blog from another blog in the same network.
View gist:a8a0b317cb58ed5ec136
// current blog
$switch_from = get_current_blog_id();
// blog id we are switching to so we can create a category there
$switch_to = 2;
echo 'About to switch to '.$switch_to.' from '. $switch_from.'.';
switch_to_blog( $switch_to );
You can’t perform that action at this time.