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
View gist:9c1a8d5d0a9a01fe683eefed3e4440a8
meanTemp: 73
highTemp: 95
lowTemp: 63
View scribe-weather.controllerPOST.json
{
"zone": "temperate",
"terrain": "plains",
"season": "summer",
"month": "july",
"initialMs": 0
}
@luetkemj
luetkemj / gist:a8a0b317cb58ed5ec136
Last active Aug 29, 2015
Create category on WPMS blog from another blog in the same network.
View gist:a8a0b317cb58ed5ec136
<?php
// 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.'.';
// https://codex.wordpress.org/WPMU_Functions/switch_to_blog
switch_to_blog( $switch_to );
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>
</summary>
<code class="pattern-markup language-markup">
<!-- github gists or possibly a grunt task to highlight markup here... -->
</code>
View gist:3ac035b26e4e45c07a7d
<?php
/* =============================================================================
MCE FILTERS
========================================================================== */
/**
http://wp.tutsplus.com/tutorials/theme-development/adding-custom-styles-in-wordpress-tinymce-editor/
*
inline
Name of the inline element to produce for example “span”. The current text selection will be wrapped in this inline element.
View gist:5ac8aebc9bc498409c09
##too many open files error when installing gulp for google's web starter. This did the trick
ulimit -n 1048
@luetkemj
luetkemj / quicktemplate.html
Created Apr 5, 2013
HTML: Quick Template
View quicktemplate.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The HTML5 Herald</title>
<meta name="description" content="Quick Template">
<meta name="author" content="luetkemj">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
You can’t perform that action at this time.