- 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 |
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
printf "Program starts at %s.\n" "$(date)" | |
printf "Going to clean and create new folder ...\n" | |
rm -rf imdb-datasets-ftp/ imdb-queries/ | |
mkdir imdb-datasets-ftp/ | |
printf "Going to download datasets from FTP server ...\n" | |
wget http://homepages.cwi.nl/~boncz/job/imdb.tgz | |
tar -xvzf imdb.tgz -C imdb-datasets-ftp/ | |
rm -f imdb.tgz |
Follow the steps below:
- Download the latest remote_syslog2 client.
- Unzip the file by
tar -xvzf remote_syslog_linux_amd64.tar.gz
. - Modify the configuration inside
example_config.yml
. It should be ideally something similar as:
files:
- path: app.log
tag: app_name
OlderNewer