Skip to content

Instantly share code, notes, and snippets.

View mariomelchor's full-sized avatar

Mario Melchor | Senior Web Developer mariomelchor

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Filters</title>
<style type="text/css">
body {
margin-left: auto;
margin-right: auto;
max-width: 40em;
<!DOCTYPE html>
<html>
<head>
<title>Project Template</title>
<style type="text/css">
body {
margin-left: auto;
margin-right: auto;
max-width: 40em;
<!DOCTYPE html>
<html>
<head>
<title>Project Template</title>
<style type="text/css">
body {
margin-left: auto;
margin-right: auto;
max-width: 40em;
cubeSumSearch(1729);
function cubeSumSearch(n) {
var total = n;
for(var i = 0; i <= n; i++){
for(var j = i; j <= n; j++){
var sum = Math.pow(i, 3) + Math.pow(j, 3);
@mariomelchor
mariomelchor / functions.php
Created August 16, 2016 21:01 — forked from claudiosanches/functions.php
WooCommerce - Add Order Again button to My Orders actions
<?php
/**
* Add order again button in my orders actions.
*
* @param array $actions
* @param WC_Order $order
* @return array
*/
function cs_add_order_again_to_my_orders_actions( $actions, $order ) {
if ( $order->has_status( 'completed' ) ) {