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
<h1>The results of the function are:</h1> | |
<p id="fill"></p> |
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
# 1. Get the upper bounds for the arithmetic series. | |
## Ensure that no limit reaches 1000. | |
LIMIT=999 | |
upper_for_three = LIMIT // 3 | |
upper_for_five = LIMIT // 5 | |
upper_for_fifteen = LIMIT // 15 | |
# 2. Calculate sums from within individual bounds. | |
sum_three = 3*upper_for_three*(1 + upper_for_three) / 2 |
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
REPORTER = spec | |
all: jshint test | |
test: | |
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --timeout 3000 | |
jshint: | |
jshint lib examples test index.js |
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 | |
class Paypal_Payout_Helper { | |
protected static $instance = null; | |
private function __construct() { | |
} | |
public static function get_instance() { | |
if( null == self::$instance ) { | |
self::$instance = new self; | |
} | |
return self::$instance; |
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 | |
/** | |
* @package WooCommerce API Data Builder | |
* @version 0.4 | |
*/ | |
/* | |
Plugin Name: API Data Builder | |
Description: Creates REST API endpoint & builds the JSON response from the WooCommerce API | |
Author: Josh Loomis | |
Version: 0.4 |