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 the following line to the 'wc-mnm-template-hooks.php' file */ | |
add_action( 'woocommerce_mnm_row_item_description', 'woocommerce_template_mnm_product_description' ); | |
*********************************** | |
/** Add the following function to the 'wc-mnm-template-functions.php' file */ | |
if ( ! function_exists( 'woocommerce_template_mnm_product_description' ) ) { |
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
/** | |
* Open `\wp-content\plugins\woocommerce\includes\wc-cart-functions.php` | |
* Search for `wc_cart_totals_shipping_method_label function` | |
* Replace it with the following function | |
**/ | |
function wc_cart_totals_shipping_method_label( $method ) { | |
$label = $method->get_label(); | |
if ( $method->cost >= 0 ) { |
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
$(document).ready(function(){ | |
// Array to store all feed sources | |
var SOURCES = [ | |
{ | |
displayName: "Reddit", | |
url: "https://www.reddit.com/r/worldnews/top/.json", | |
proxyRequired: false, | |
defaultSource: false, // You can have only one default source | |
formatResponse: function(response) { |
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 main() { | |
var n = parseInt(readLine()); | |
arr = readLine().split(' '); | |
arr = arr.map(Number); | |
console.log(arr.reverse().join(' ')); | |
} |
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
// i - row | |
// j - column | |
function main() { | |
var arr = []; | |
var sum = 0; | |
var maxSum = -63; | |
for(arr_i = 0; arr_i < 6; arr_i++){ | |
arr[arr_i] = readLine().split(' '); | |
arr[arr_i] = arr[arr_i].map(Number); |
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
// Declare second integer, double, and String variables. | |
var i2; | |
var d2; | |
var s2; | |
// Read and save an integer, double, and String to your variables. | |
/* The parseInt() function parses a string argument and returns an integer of the specified radix | |
(the base in mathematical numeral systems).*/ | |
i2 = parseInt(readLine()); |
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
var tip = mealCost * tipPercent/100; | |
var tax = mealCost * taxPercent/100; | |
var totalCost = Math.round(mealCost + tip + tax); | |
console.log("The total meal cost is " + totalCost + " dollars."); |
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
process.stdin.resume(); | |
process.stdin.setEncoding('ascii'); | |
var input_stdin = ""; | |
var input_stdin_array = ""; | |
var input_currentline = 0; | |
process.stdin.on('data', function (data) { | |
input_stdin += data; | |
}); |
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
process.stdin.resume(); | |
process.stdin.setEncoding('ascii'); | |
var input_stdin = ""; | |
var input_stdin_array = ""; | |
var input_currentline = 0; | |
process.stdin.on('data', function (data) { | |
input_stdin += data; | |
}); |
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
process.stdin.resume(); | |
process.stdin.setEncoding('ascii'); | |
var input_stdin = ""; | |
var input_stdin_array = ""; | |
var input_currentline = 0; | |
process.stdin.on('data', function (data) { | |
input_stdin += data; | |
}); |
OlderNewer