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. Create a variable called test of type boolean and assign the variable the value true. | |
boolean test = true; | |
//2.Create a variable called a of type int and assign the variable the value 5. | |
int a = 5; | |
/*3.Type in an if statement that adds 1 to a if test has value true and subtracts 1 from a if test has value false. | |
Helpful hint: The DrJava interactions pane will evaluate an expression after you hit the return key if what you have typed in is a valid expression. To keep the interactions pane from evaluating your if statement prematurely, either type the entire statement in one line or place the statement inside braces { }*/ | |
if (test == true) { | |
a + 1; | |
} | |
else { |
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 logging | |
from logging.handlers import RotatingFileHandler | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def foo(): | |
paifor x in range(0, 3): |
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
machine github.com | |
login rickypai | |
password SECRET | |
machine api.github.com | |
login rickypai | |
password SECRET |
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
#!/usr/bin/env bash | |
# ======================================================================================= | |
# | |
# A simple script to test Synology NAS disk speed with hdparm, dd and fio. | |
# | |
# How to use: | |
# | |
# 1. Save synology_disk_benchmark.sh and xfio.conf to your Synology NAS | |
# 2. Make it executable: chmod +x synology_disk_benchmark.sh |