Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Mark Luetke luetkemj

🏠
Working from home
View GitHub Profile
View wp-query-ref.php
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@luetkemj
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 {
@luetkemj
luetkemj / node-mailer.js
Last active Jan 16, 2019
Nodemailer quick setup for gmail
View node-mailer.js
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
type: 'OAuth2',
user: 'example@gmail.com',
clientId: 'XXX',
clientSecret: 'XXX',
refreshToken: 'XXX'
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 hyper settings
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Inconsolata, Monaco, Consolas, "Courier New", Courier',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@luetkemj
luetkemj / gist:2002921
Created Mar 8, 2012
WP: Plugin Header
View gist:2002921
/*
Plugin Name:
Plugin URI: http://luetkemj.com/
Description:
Author: Mark Luetke
Author URI: http://luetkemj.com
Version: 1.0
*/
View scribe*:weather.controller generateWeather: currentWeather.json
[
{
"time":0,
"forecast":{
"lowTemp":63,
"highTemp":95,
"highRH":82,
"lowRH":48,
"stormType":"multiCellLineNS",
"stormStartEstimate":"morning"
@luetkemj
luetkemj / gist:dbff2d8ec505a7b8e7a8ea0e61a4a0ec
Created Feb 14, 2017
scribe*:weather.controller hourlyWeatherWithStorms.json
View gist:dbff2d8ec505a7b8e7a8ea0e61a4a0ec
[
{
"temp":64,
"time":0,
"rh":77
},
{
"temp":67,
"time":3600000,
"rh":75
You can’t perform that action at this time.