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
// INPUT: | |
// const largeSphere = { | |
// type: 'sphere', | |
// radius: 40 | |
// } | |
// const smallSphere = { | |
// type: 'sphere', | |
// radius: 10 | |
// } |
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
<div id="top" class="page"> | |
<ul> | |
<li><a href="#text__headings">Headings</a></li> | |
<li><a href="#text__paragraphs">Paragraphs</a></li> | |
<li><a href="#text__blockquotes">Blockquotes</a></li> | |
<li><a href="#text__lists">Lists</a></li> | |
<li><a href="#text__tables">Tabular data</a></li> | |
<li><a href="#text__inline">Inline elements</a></li> | |
</ul> | |
</div> |
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 | |
function featured_image($postid, $size) { | |
$image = get_post_thumbnail_id($postid); | |
$image_url = $image ? wp_get_attachment_image_src($image, $size, true) : ''; | |
$image_url = is_array($image_url) ? $image_url[0] : null; | |
return $image_url; | |
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 | |
function filter_plugin_updates( $value ) { | |
unset( $value->response['akismet/akismet.php'] ); | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); |
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 | |
if ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) ) { | |
$current_site->id = (defined( 'SITE_ID_CURRENT_SITE' ) ? constant('SITE_ID_CURRENT_SITE') : 1); | |
$current_site->domain = $domain = DOMAIN_CURRENT_SITE; | |
$current_site->path = $path = PATH_CURRENT_SITE; | |
if ( defined( 'BLOGID_CURRENT_SITE' ) ) | |
$current_site->blog_id = BLOGID_CURRENT_SITE; |
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
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType text/html "access 1 month" | |
ExpiresByType application/pdf "access 1 month" |
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 | |
/** | |
* Gravity Wiz // Gravity Forms // Limit Submissions Per Time Period (by IP, User, Role, Form URL, or Field Value) | |
* | |
* Limit the number of times a form can be submitted per a specific time period. You modify this limit to apply to | |
* the visitor's IP address, the user's ID, the user's role, a specific form URL, or the value of a specific field. | |
* These "limiters" can be combined to create more complex limitations. | |
* | |
* @version 2.8 | |
* @author David Smith <[email protected]> |
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
.modal { | |
z-index: 999999; | |
.modal-header { | |
position: relative; | |
} | |
.close { | |
font-size: 2.6rem; | |
width: 2.6rem; | |
height: 2.6rem; |
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 | |
/* in your functions.php */ | |
add_image_size( 'small', 420, 420, false ); | |
// default WP sizes, update dimensions under Settings > Media | |
// add_image_size( 'medium', 768, 768, false ); | |
// add_image_size( 'large', 1024, 1024, false ); |
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 | |
$image = get_field('section_image_1'); | |
$waldo_class = 'section-image-1'; | |
$waldo_styles = $waldo->waldoStylesArray($image, $waldo_class, $waldo_styles, $waldo_class); | |
$image = get_field('section_image_2'); | |
$waldo_class = 'section-image-2'; | |
$waldo_styles = $waldo->waldoStylesArray($image, $waldo_class, $waldo_styles, $waldo_class); |
NewerOlder