(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
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 Author Profile Fields to User Profile | |
* | |
* @since 1.0.0 | |
* @param object $user | |
*/ | |
function ja_user_fields( $user ) { | |
?> | |
<h3>Additional Information</h3> |
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 | |
//* Do NOT include the opening php tag | |
//* ALL EXAMPLES ON THIS PAGE USE THE NEW HTML5 METHOD | |
//* Remove page titles site wide (posts & pages) (requires HTML5 theme support) | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
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 | |
/*------------------------------------------------------------------------------ | |
The functions below are executed if the install is declared to be a | |
development environment. | |
The following constants should be set in the install's wp-config.php: | |
SITE_DEV - [true/false] | |
SITE_PROD_URL - primary root URL of the production site | |
------------------------------------------------------------------------------*/ |
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 new avatar to be select as a default | |
* | |
* @since 1.0.0 | |
* @param array $defaults | |
* @return array | |
*/ | |
function ja_add_avatar_default( $defaults ) { | |
$new = get_stylesheet_directory_uri() . '/images/default-avatar.jpg'; |
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 | |
/** | |
* Custom comment heading | |
* | |
* @since 1.0.0 | |
* @param string $title | |
* @return string | |
*/ | |
function ja_comment_heading( $title ) { | |
return '<h3><strong>' . get_comments_number() . ' Responses to</strong> ' . get_the_title() . '</h3>'; |
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
--taken from http://benguild.com/2012/04/11/how-to-import-tasks-to-do-items-into-ios-reminders/#comment-1346894559 | |
--set theFileContents to (read file "Users:n8henrie:Desktop:Reminders.txt") -- Change this to the path to your downloaded text file with your tasks in it! (Note the : instead of a / between folders) Or, just name them Reminders.txt and put them in your downloads folder | |
--set theLines to paragraphs of theFileContents | |
set theLines to {"task name 1", "task name 2"} | |
repeat with eachLine in theLines | |
tell application "Reminders" | |
set mylist to list "Your List Name" | |
tell mylist | |
make new reminder at end with properties {name:eachLine, due date:date "7/10/2014 3:00 PM"} |
Alfred Workflow to add reminders to Reminders via Fantastical's amazing natural language processing.
Usage
r put laundry in dryer in 35 min
r wake up at 6:30am every day
r party on 1/1/2025 at 12am
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
// Smooth scrolling anchor links | |
function ea_scroll( hash ) { | |
var target = $( hash ); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
var top_offset = 0; | |
if ( $('.site-header').css('position') == 'fixed' ) { | |
top_offset = $('.site-header').height(); | |
} | |
if( $('body').hasClass('admin-bar') ) { |