View gist:a4dc04515cfee66aac98e1ac4f8f7ecd
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
CREATE TABLE members ( | |
member_id INT AUTO_INCREMENT, | |
name VARCHAR(100), | |
PRIMARY KEY (member_id) | |
); | |
CREATE TABLE committees ( | |
committee_id INT AUTO_INCREMENT, | |
name VARCHAR(100), | |
PRIMARY KEY (committee_id) |
View App.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
import React, { useState, useCallback } from "react"; | |
import List from "./list"; | |
function App() { | |
const [number, setNumber] = useState(0); | |
const [dark, setDark] = useState(0); | |
// const getItems = ()=>{ | |
// return [number,number+1,number+2] | |
// } |
View class-ewpapi-all-products-by-sorting-rest-controller.php
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 | |
/** | |
* All Products By Sorting. | |
* | |
* @package :ewpapi | |
*/ | |
/** | |
* | |
* Add an endpoint to show all products by sorting. |
View wordpress-developer-code-review-php.php
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 | |
/** | |
* This code retrieves course data from an external API and displays it in the user's | |
* My Account area. A merchant has noticed that there's a delay when loading the page. | |
* | |
* == By using cache == | |
*/ | |
public function add_my_courses_section() { | |
global $current_user; |