function processCharacter(char, charCode) {
let newChar = '';
if (char.match(/[A-Z]/)) {
if (charCode > 90) {
charCode -= 26;
}
newChar = String.fromCharCode(charCode);
} else if (char.match(/[a-z]/)) {- C is pass-by-value but pointers can be used for pass-by-reference parameterization
- C has 4 types of scope:
- file (declaration outside any block or parameter list)
- block (inside block or parameter list)
- function prototype (within list of parameter declarations within a function prototype)
- function (between curly brackets of a function definition)
- objects have four available storage durations, i.e., lifetimes: automatic (block scope), static (file scope, or block scope when using static specifier), thread (in concurrent programming) and allocated (dynamically allocated memory)
NOTE: Forget XAMPP for now, too much trouble getting it to work on Ubuntu. Just use Rails with an installed local PostgreSQL db.
Use XAMPP or Node's live-server as part of your development environment.
https://askubuntu.com/questions/890818/ubuntu-16-04-how-to-start-xampp-control-panel
https://developers.google.com/web/tools/chrome-devtools/javascript/breakpoints#loc
- Add a line of
debugger;anywhere in your code to create a breakpoint when running it with Chrome Developer Tools; this is similar to clicking a line number inside Chrome Dev Tools itself. - Add a conditional breakpoint by riht-clicking the line and 'add conditional breakpoint', enter a condition and press enter
- use the Breakpoints pane to manage existing breakpoints, including disabling or removing them
- use DOM change breakpoints to pause on the code that changes a DOM node or its children
- use XHR breakpoints to break when the request URL of an XHR contains a specified string
https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/
See Also: CentOS Hardening (https://wiki.centos.org/HowTos/OS_Protection)
https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/openssh/
- after making changes to ssh configuration, always restart the service:
service sshd restart
- type
pythonto enter interactive prompt and test things out/remember - PEP-8 style guide: https://www.python.org/dev/peps/pep-0008/
- type
import thisinto interactive prompt for philosophy
- integer, float, string, boolean
- lists, dictionaries, sets, frozen sets, tuples, byte, bytearray