start new:
tmux
start new with session name:
tmux new -s myname
<button onclick="javascript:window.print()">Print This Webpage</button> |
<?php | |
// | |
add_action('tribe_events_before_view','tribe_recurrence_schedule_meta'); | |
function tribe_recurrence_schedule_meta(){ | |
global $post; | |
// force this to run only on single event views | |
if( is_single() && tribe_is_event( $post->ID ) ){ | |
if( tribe_is_recurring_event( tribe_is_recurring_event( $post->ID ) ) ) { | |
tribe_register_meta( 'tribe_recurrence_schedule', array( |
<?php | |
/** | |
* get the proper Facebook link for events, venue and organizers. if the id is an event | |
* it will build the event by the meta id, however the second param gives the option to | |
* prettify the link but will require a request to Facebook's API which could slow response | |
* @param int $post_id | |
* @param boolean $lookup | |
* @return string | |
*/ |
<?php | |
/** | |
* get the proper Facebook link for events, venue and organizers. if the id is an event | |
* it will build the event by the meta id, however the second param gives the option to | |
* prettify the link but will require a request to Facebook's API which could slow response | |
* @param int $post_id | |
* @param boolean $lookup | |
* @return string | |
*/ |
<?php | |
// | |
add_action('tribe_events_before_view','tribe_recurrence_schedule_meta'); | |
function tribe_recurrence_schedule_meta(){ | |
global $post; | |
// force this to run only on single event views | |
if( is_single() && tribe_is_event( $post->ID ) ){ | |
if( tribe_is_recurring_event( tribe_is_recurring_event( $post->ID ) ) ) { | |
tribe_register_meta( 'tribe_recurrence_schedule', array( |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
class Main { | |
public static void main(String[] args) { | |
System.out.println("Francisco Cruz"); | |
System.out.println("This morning I came from North Bergen, NJ"); | |
System.out.println("I took a Bus to Porth Authority on 42nd Street, and then"); | |
System.out.println("I took the Seven Train to 33rd Street."); | |
System.out.println("I learned to code my first program in Java"); | |
System.out.println("I hope to learn to master Java everyday"); | |
} | |
} |
Question: | |
I work on a WordPress site where the authors usually embed Google Maps using iFrames in most posts. | |
Is there a way to disable the zoom via mouse scroll wheel on all of them using Javascript? | |
Solution: | |
I was having the same problem: when scrolling the page then the pointer becomes over the map, | |
it starts to zoom in/out the map instead of continuing scrolling the page. :( |
<!--[if (gte mso 9)|(IE)]> | |
<center> | |
<table> | |
<tr> | |
<td width="600"> | |
<![endif]--> | |
<div style="max-width: 600px; margin: 0 auto;"> | |
<p>This text will be centered and constrained to 600 pixels even on Outlook which does not support max-width CSS</p> | |
</div> | |
<!--[if mso]> |