GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
- not equal
~=
- logical AND
&&
# Save this file to your computer so you can run it | |
# via the command line (Terminal) like so: | |
# $ ruby deaf_aunty.rb | |
# | |
# Your method should wait for user input, which corresponds | |
# to you saying something to your Aunty. | |
# You'll probably want to write other methods, but this | |
# encapsulates the core Aunty logic |
def to_roman(num) | |
# Your code here | |
roman_hash = { "M" => 1000, | |
"CM" => 900, | |
"D" => 500, | |
"CD" => 400, | |
"C" => 100, | |
"XC" => 90, | |
"L" => 50, | |
"XL" => 40, |
# This is how you define your own custom exception classes | |
class NoOrangesError < StandardError | |
end | |
class OrangeTree | |
def initialize | |
@age = 0 | |
@orange_on_tree = [] | |
@height = 0 |
GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
~=
&&
You need to know that Linux are have a default software: gpg
for sign the GPG key. but we are going to use Keybase instead.
Typing vagrant
from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init
-- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath>
-- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64
.vagrant up
-- starts vagrant environment (also provisions only on the FIRST vagrant up)Picking the right architecture = Picking the right battles + Managing trade-offs
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |