Skip to content

Instantly share code, notes, and snippets.

View luetkemj's full-sized avatar
🌄
Working from home

Mark Luetke luetkemj

🌄
Working from home
View GitHub Profile
@luetkemj
luetkemj / wp-query-ref.php
Last active April 25, 2024 09:37
WP: Query $args
// 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 / gist:e93a8921ed8308fd63a4755d44d89b54
Created June 9, 2021 20:58
Bookmarklet to generate img with src from public google doc link
javascript:{const googleDocIdForYou = window.location.pathname.split('/')[3];const imgtag = `<img src="https://drive.google.com/uc?id=${googleDocIdForYou}" />`;prompt("Copy This HTML:", imgtag);};void(0)
@luetkemj
luetkemj / style.css
Created March 9, 2012 16:32
WP-CSS: Wordpress classes
/* =============================================================================
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 January 16, 2019 22:39
Nodemailer quick setup for gmail
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
type: 'OAuth2',
user: 'example@gmail.com',
clientId: 'XXX',
clientSecret: 'XXX',
refreshToken: 'XXX'
<?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.
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 March 8, 2012 19:41
WP: Plugin Header
/*
Plugin Name:
Plugin URI: http://luetkemj.com/
Description:
Author: Mark Luetke
Author URI: http://luetkemj.com
Version: 1.0
*/
[
{
"time":0,
"forecast":{
"lowTemp":63,
"highTemp":95,
"highRH":82,
"lowRH":48,
"stormType":"multiCellLineNS",
"stormStartEstimate":"morning"
[
{
"temp":64,
"time":0,
"rh":77
},
{
"temp":67,
"time":3600000,
"rh":75
[
{
"temp":64,
"time":0,
"rh":77
},
{
"temp":67,
"time":3600000,
"rh":75