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
Sublime Text Plugins iCloud Drive | |
First Machine | |
On your first machine, use the following instructions. | |
$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/ | |
$ mkdir ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins | |
$ mv User ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins | |
$ ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins/User |
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
<div class="image-banner"> | |
<?php $banner_slider = get_post_meta( $post->ID, 'tpa_banner_slider', true ); ?> | |
<?php if (!empty($banner_slider)): ?> | |
<?php $banner_slider = explode(",",$banner_slider); | |
foreach ($banner_slider as $imageID) :?> | |
<?php $image_src = wp_get_attachment_image_src($imageID, 'full'); ?> | |
<div> | |
<img src="<?php echo $image_src[0];?>"/> |
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
add_filter("mce_external_plugins", "tomjn_mce_external_plugins"); | |
function tomjn_mce_external_plugins($plugin_array){ | |
$plugin_array['typekit'] = get_template_directory_uri().'/typekit.tinymce.js'; | |
return $plugin_array; | |
} |
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
/** | |
* Revolution Slider option type. | |
* | |
* See @ot_display_by_type to see the full list of available arguments. | |
* | |
* @param array An array of arguments. | |
* @return string | |
* | |
* @access public | |
* @since 2.0 |
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
<div class=""> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
</div> |
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
$ npm -g install localtunnel | |
/usr/local/bin/lt -> /usr/local/lib/node_modules/localtunnel/bin/client | |
[email protected] /usr/local/lib/node_modules/localtunnel | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
└── [email protected] ([email protected], [email protected], [email protected], [email protected]) | |
$ lt --port 8080 | |
your url is: https://htkzpnysxf.localtunnel.me |
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
/*=================================================================================== | |
* Add global options | |
* =================================================================================*/ | |
/** | |
* | |
* The page content surrounding the settings fields. Usually you use this to instruct non-techy people what to do. | |
* | |
*/ | |
function theme_settings_page(){ |
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
// Get visible window sizes | |
function displayWindowSize(){ | |
var e=window.innerWidth, | |
t=window.innerHeight; | |
document.getElementById("dev").innerHTML=t+"x"+e; | |
} | |
// Create DIV | |
var div=document.createElement("div"); |
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
# * * * * * command to execute | |
# ┬ ┬ ┬ ┬ ┬ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names) | |
# │ │ │ └────────── month (1 - 12) | |
# │ │ └─────────────── day of month (1 - 31) | |
# │ └──────────────────── hour (0 - 23) | |
# └───────────────────────── min (0 - 59) |
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
brew install php70-mcrypt | |
brew install php70-imagick | |
brew install homebrew/versions/mysql56 | |
Then run valet restart after each. |