This file contains 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 | |
/** | |
* TL EVENTS | |
* | |
* Functionality for adding time, date for events, displaying them by week, etc. | |
* This assumes your events are posts in the "Events" category, but could easily be | |
* extended to other stuff. | |
*/ |
This file contains 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
function my_comment_listing($comment, $args, $depth){ | |
$GLOBALS['comment'] = $comment; ?> | |
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>"> | |
<?php do_action( 'genesis_before_comment' ); ?> | |
<div class="comment-header"> | |
<div class="comment-author vcard"> |
This file contains 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
find . -type f -newer '[filename]' -print0 | xargs -0 -I {} cp {} [dirname] | |
# replace strings in a file without creating a backup. the -i parameter would create a backup if you so desired | |
sed -i '' 's/techliminal/localhost/g' [filename] | |
# find all the javascript files and list them | |
find . -name *.js -print | xargs ls -l | |
# change the owner of all the javascript files | |
# Looks like the sudo has to be on the xargs / chown part of the operation |
This file contains 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
Genesis_image will return full HTML (it may not be what you are looking for). | |
This file contains 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
<html> | |
<head> | |
<script type='text/javascript' src='jquery-1.11.1.min.js'></script> | |
<script type='text/javascript'> | |
$( document ).ready(function() { | |
console.log( "ready!" ); | |
}); | |
</script> |
This file contains 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
rename table wp_79_posts to wp_tmp_posts, wp_79_postmeta to wp_tmp_postmeta, wp_79_terms to wp_tmp_terms, wp_79_term_taxonomy to wp_tmp_term_taxonomy, wp_79_term_relationships to wp_tmp_term_relationships, wp_79_p2p to wp_tmp_p2p, wp_79_p2pmeta to wp_tmp_p2pmeta; | |
create table wp_79_posts like wp_posts; | |
INSERT wp_79_posts SELECT * FROM wp_posts; | |
create table wp_79_postmeta like wp_postmeta; | |
INSERT wp_79_postmeta SELECT * FROM wp_postmeta; | |
-- | |
create table wp_79_terms like wp_terms; | |
INSERT wp_79_terms SELECT * FROM wp_terms; | |
create table wp_79_term_taxonomy like wp_term_taxonomy; |
This file contains 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
*/.ssh | |
.ssh/* | |
.mysql_history | |
.vim* | |
.bash* | |
.htaccess | |
*~ | |
.DS_Store | |
.svn | |
.cvs |
This file contains 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
/* | |
* Reading switches and tell to Serial. | |
* | |
*/ | |
int numPins = 2; | |
int out[] = {4,5}; | |
int in[] = {2,3}; | |
This file contains 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 | |
/* | |
* Displays in a list form an ACF repeater field with three subfields | |
* Field: urls | |
* Sub-FieldS: label, link, style, | |
* | |
*/ | |
$post = get_queried_object(); |
This file contains 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
/* | |
* Get the events for each person | |
*/ | |
$events = new WP_Query( | |
array ( | |
'post_type' => 'event', | |
'connected_type' => 'speaker_to_event', | |
'connected_items' => $speaker->ID, |