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
var numberArray = [ | |
37107287533902102798797998220837590246510135740250, | |
46376937677490009712648124896970078050417018260538, | |
74324986199524741059474233309513058123726617309629, | |
91942213363574161572522430563301811072406154908250, | |
23067588207539346171171980310421047513778063246676, | |
89261670696623633820136378418383684178734361726757, | |
28112879812849979408065481931592621691275889832738, | |
44274228917432520321923589422876796487670272189318, | |
47451445736001306439091167216856844588711603153276, |
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
var termCount = 1, | |
termTotal = 1, | |
termIndex = 0; | |
current = 13, | |
discountable = {}; | |
for ( var i = 1; i < 1000000; i++ ) { | |
current = i; | |
if ( ! ( current in discountable ) ) { | |
while ( current != 1 ) { |
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
MatchColumnHeights: function( group, width ) { | |
var tallest = 0, | |
gCount, | |
subGroup, | |
splitGroup, | |
i; | |
splitGroup = []; |
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
<?php | |
/** | |
* Ajax top-cart | |
* | |
* @param array $fragments | |
* @return array | |
*/ | |
function projectnamespace_woocommerce_ajax_top_cart( $fragments ) { | |
ob_start(); | |
get_template_part( 'views/top-cart' ); |
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
/** | |
* Change WooCommerce text strings. | |
* | |
* @param string $translated | |
* @param string $text | |
* @param string $domain | |
* @return string | |
*/ | |
function projectnamespace_woocommerce_text( $translated, $text, $domain ) { | |
if ( $domain === 'woocommerce' ) { |
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
/** | |
* Product Images | |
* | |
* @return void | |
*/ | |
function projectnamespace_product_images() { | |
global $post, $product; | |
echo '<div class="images clear">'; |
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 Meta Box | |
* | |
* @return void | |
*/ | |
function projectnamespace_add_meta_box() { | |
add_meta_box( | |
'projectnamespace_meta_box_id', | |
'Meta box title', |
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 field to product options | |
* | |
* @return void | |
*/ | |
function projectnamespace_add_product_fields() { | |
woocommerce_wp_checkbox( | |
array( | |
'id' => '_projectnamespace_enquiry_only', |
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
var count = 1, | |
divisors = 0, | |
currentTriangle = 0; | |
while ( divisors <= 500 ) { | |
currentTriangle += count; | |
divisors = 0; | |
for ( var k = 1; k < currentTriangle / 2; k++ ) { |