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
<snippet> | |
<content><![CDATA[ | |
@include media-breakpoint-down(${1:md}){ | |
$2 | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>ind</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.python</scope> --> |
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 getTeamMembers() | |
{ | |
$args = array('post_type' => 'team', 'posts_per_page' => -1); | |
// Run a custom query | |
$loop = new WP_Query($args); | |
if ($loop->have_posts()) { | |
$i = 0; | |
$data = 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
/Applications/OBS.app/Contents/MacOS/OBS; exit |
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
test |
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
10k e951 | |
10mp e952 | |
11mp e953 | |
12mp e954 | |
13mp e955 | |
14mp e956 | |
15mp e957 | |
16mp e958 | |
17mp e959 | |
18mp e95a |
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
add_action('gform_after_submission', 'set_post_content', 10, 2); | |
function set_post_content($entry, $form) | |
{ | |
//vars | |
$id = $entry['form_id']; | |
if ($id == '3' || $id == '1' || $id == '10' || $id == '16') { | |
$date = new DateTime(); | |
$date->setTimezone(new DateTimeZone('America/Chicago')); |
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
add_filter("gform_pre_submission_1", "obtainsumvaluesfield", 1); | |
function obtainsumvaluesfield($form) | |
{ | |
// get all entries in this form | |
$entry = GFFormsModel::get_current_lead(); | |
$all = 0; | |
foreach ($form["fields"] as &$field) | |
if ($field->type == 'checkbox') { |
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
add_filter('gform_field_value_emailto', 'add_job_email'); | |
function add_job_email($value) | |
{ | |
global $post; | |
$id = $post->id; | |
$email = get_field('email_to', $id); | |
return $email; | |
} |
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
alias cl="clear" | |
alias dev="ssh -tp 22 [email protected] 'cd webapps; bash'" | |
alias rc1="ssh -tp 22 [email protected] 'cd webapps; bash'" | |
alias rc2="ssh -tp 22 [email protected] 'cd webapps; bash'" | |
alias rc3="ssh -tp 22 [email protected] 'cd webapps; bash'" | |
alias rc4="ssh -tp 22 [email protected] 'cd webapps; bash'" | |
alias rc5="ssh -tp 22 [email protected] 'cd webapps; bash'" | |
alias rc6="ssh -tp 22 [email protected] 'cd webapps; bash'" | |
alias sp5="ssh -tp 22 [email protected] 'cd apps; bash'" | |
alias sp3="ssh -tp 22 [email protected] 'cd apps; bash'" |
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
//obtain pages or post who added a relationship item - Reverse relationship posts | |
$tasks = get_posts(array( | |
'post_type' => 'task', | |
'meta_query' => array( | |
array( | |
'key' => 'task_parents', // name of custom field | |
'value' => '"' . get_the_ID() . '"', // matches exaclty "123", not just 123. This prevents a match for "1234" | |
'compare' => 'LIKE' | |
) |
OlderNewer