This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Quick Contact | |
* @version 0.1 | |
*/ | |
/* | |
Plugin Name: Quick Contact | |
Plugin URI: http://techslides.com/ | |
Description: Quick Contact WordPress Plugin to make an Ajax form submission, store it in the database, and show it in a Admin backend page. | |
Version: 0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add to the body_class function | |
function condensed_body_class($classes) { | |
global $post; | |
// add a class for the name of the page - later might want to remove the auto generated pageid class which isn't very useful | |
if( is_page()) { | |
$pn = $post->post_name; | |
$classes[] = "page-".$pn; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Template Name: AJAX Page | |
* | |
* This page template responds to the request type by serving only the content for an AJAX request | |
* and the content wrapped in the parent layout for a normal request. This allows for loading the | |
* content via AJAX and the History API without the need for hash-bang URLs. | |
*/ | |
$url = rtrim($_SERVER['REQUEST_URI'],"/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_enqueue_scripts', 'prefix_admin_enqueue_scripts' ); | |
/** | |
* Print inline admin style. | |
*/ | |
function prefix_admin_enqueue_scripts() { | |
wp_add_inline_style( 'wp-admin', '#adminmenu { | |
transform: translateZ(0); | |
}' ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////// | |
// Font Variables (http://cssfontstack.com/) | |
////////////////////////////////////////////////////////////// | |
// | |
// Serif font-stacks | |
// | |
$baskerville-font-stack: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif !default; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
from os import listdir | |
from os.path import isfile, join | |
from time import sleep | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
File: OmniFocus_Due_List.scpt | |
Revision: 1.0 | |
Revised: 2015-07-01 | |
Summary: Create taskpaper list of tasks due +/- 7d from current date. | |
----------------------------------------------------------- | |
Script based on Justin Lancy (@veritrope) from Veritrope.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
!/usr/bin/env python | |
All Scripture generated by this script is from The Holy Bible, English Standard Version. Copyright ©2001 by <a href="http://www.crosswaybibles.org">Crossway Bibles</a>, a publishing ministry of Good News Publishers. Used by permission. All rights reserved. Text provided by the <a href="http://www.gnpcb.org/esv/share/services/">Crossway Bibles Web Service</a>. | |
A lot of this code is from Christian Wyglendowski found at http://www.esvapi.org/api#verse | |
Adapted for Drafts & Pythonista on iOS by @pfcbenjamin. More info at http://sweetnessoffreedom.wordpress.com/projects | |
''' | |
import sys | |
import console | |
import webbrowser |