/[0-9a-zA-z-_]+/
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
#!/bin/sh | |
#whatever your SSH key is that you need to get the data from bitbucket and/or push to your environment. | |
ssh-add ~/.ssh/id_rsa | |
rm -rf projectname | |
git clone [email protected]:teamname/projectnamee.git projectname | |
cd projectname | |
#switch to whatever branch you have your code in | |
git checkout production |
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_rewrite_rules( $rules_array ) { | |
$new = array(); | |
//get the list of categories and create a rewrite rules for each. | |
// We get them in order by parent so that we can quickly build the array we need. | |
$cats = get_terms( array( 'taxonomy' => 'category', 'hide_empty' => false, 'hierarchical' => true, 'fields' => 'all', 'orderby' => 'parent')); | |
// extract the parents and build the array for generating the rules | |
$cr = array(); |
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, |
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
/* | |
* 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
*/.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
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
<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
Genesis_image will return full HTML (it may not be what you are looking for). | |