- Apache HTTP Server > 2.4 [https://httpd.apache.org]
- Postgres SQL Server ~10 [https://www.postgresql.org]
- Server-side language: PHP ~7.1 [http://www.php.net]
- Front-end framework:
- Bootstrap 4 [https://getbootstrap.com]
- Cosmo theme by Bootswatch [https://bootswatch.com/cosmo/]
- 3rd-party libraries:
- PHP Mailer [https://github.com/PHPMailer/PHPMailer]
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
public Class CodeQuality { | |
private static final String MESSAGE_COMMAND_HELP_PARAMETER = "Parameters: %1$s"; | |
private static final String MESSAGE_COMMAND_HELP_EXAMPLE = "Example: %1$s"; | |
private static final String MESSAGE_COMMAND_INVALID_FORMAT = "Invalid command format: %1$s"; | |
private static final String MESSAGE_DISPLAY_PERSON_DATA = "%1$s Phone Number: %2$s Email: %3$s"; | |
private static final String MESSAGE_GOODBYE = "Exiting Address Book... Good bye!"; | |
/** List of all persons in the address book. */ | |
private static final ArrayList<String> people = new ArrayList<>(); |
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 java.util.ArrayList; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) { | |
Item item1 = new Item(); | |
Item item2 = new Item(); | |
Box box1 = new Box(item1); | |
Box box2 = new Box(item2); | |
item2.setMainCard(new Card()); |
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
package classObjectDiagram; | |
public class Main { | |
public static void main(String[] args) { | |
// Step 1 | |
Address homeA = new Address("Prince George's Park"); | |
// Step 2 | |
Person a = new Person("Alfred", homeA); | |
Person b = new Person("Bruce", homeA); |
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
% This is the presentation slide for NUS CS1101S Programming Methodology. | |
% This document is meant for Studio Group by Niu Yunpeng. | |
% Made by Beamer class in Latex, compiled by MiTex. | |
\documentclass{beamer} | |
% Set the theme for the Beamer class. | |
\mode<presentation> { | |
\usetheme{Madrid} | |
} |
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
require("./utils.js"); | |
// `add` is inserted into global frame. Do not need `utils.add` anymore! | |
add(1, 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
// Imports the required libraries. | |
const https = require('https'); | |
const fs = require('fs'); | |
// Defines some constants. | |
const COURSE_HOMEPAGE = '<CHANGE_IT_HERE>'; | |
// Parses the given JSON file regarding URLs. | |
const url_json = require('./restricted_files.json'); | |
const url_list = url_json.data.getRestrictedFiles.urls; |
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
# Validates input. | |
if [[ "$1" == "" ]]; then | |
printf "Please specify the number of nodes.\n" | |
exit | |
fi | |
# Pulls the latest changes. | |
printf "Going to pull the latest changes ...\n" | |
cd /temp/yunpengn/calcite | |
git pull |
Being the most advanced open-source relational database, many of us need to install PostgreSQL for some purposes. However, sometimes you may not have sudo
privilege on an Ubuntu server. Then, how should you install PostgreSQL in this case?
Compile from source!
Next, we will show a step-by-step guide on how to install PostgreSQL on Ubuntu by compiling it from source.
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
-- Sccsid: @(#)dss.ri 2.1.8.1 | |
-- TPC-H Benchmark Version 8.0 | |
-- For table REGION | |
ALTER TABLE REGION | |
ADD PRIMARY KEY (R_REGIONKEY); | |
-- For table NATION | |
ALTER TABLE NATION | |
ADD PRIMARY KEY (N_NATIONKEY); |
OlderNewer