| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title> Ajax Example </title> | |
| </head> | |
| <body> | |
| <section> |
| var arrayOfLight = function(number) { | |
| arr = []; | |
| for (var i = 0; i <= number; i++) { | |
| arr[i] = i; | |
| } | |
| return arr; | |
| }; |
| -- Let's briefly talk about Postgres's facilities for looking at schemas, and getting help | |
| help | |
| \? | |
| \l | |
| \d | |
| -- Now let's talk about transactions. Not relevant to your life right now, but super relevant | |
| -- if you graduate and your first boss gives you access to the production database. Forget | |
| -- for now, but later if you find yourself in that situation, google! | |
| begin; |
ARGV is a convention in programming which refers to the “argument vector,” in basic terms a variable that contains the arguments / parameters passed to a program through the command line.
Typically an array with contains each argument in a certain position within the array. This may work differently in languages other than Ruby.
For programmers who are new to Object Oriented Programming, the ideas behind classical inheritance can take some getting used to. This article walks you through the syntax of defining class inheritance in Ruby with explanations of each OOP feature along the way. You will have created many inheriting classes and used them in Ruby code by the end of this exercise.
Create a new Ruby code file and copy the code examples into it as you go. Run the file with the provided driver code and read the output. Try writing your own driver code to try things out new concepts as they're introduced.