I hereby claim:
- I am gxespino on github.
- I am gxespino (https://keybase.io/gxespino) on keybase.
- I have a public key ASC9AsSVsPafUVpjM4OcWs7RK-yuzc7PZyarPeEWeNsmKwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
class QuadraticCalculator { | |
public: | |
string numberOfSolutions(); | |
void printSolutions(); |
When inserting objects into collections or passing as parameters to methods, most are passed as reference, Fixnum
are passed as value.
!
to methods that will change the parameters.Array#reject
instea of Array#delete_if
.class Tuner
def initialize (presets)
@presets = presets
clean
require 'pdf_forms' | |
require 'cliver' | |
input_data = { | |
ssn: '123-23-1234', | |
birthday: '02/14/1980', | |
color: 'Excella Red', | |
first_name: 'John Smith' | |
} |
{ | |
"Thin Strokes" : 2, | |
"Working Directory" : "\/Users\/gpespn", | |
"Prompt Before Closing 2" : 0, | |
"Selected Text Color" : { | |
"Green Component" : 0.6352941393852234, | |
"Blue Component" : 0.6980392336845398, | |
"Red Component" : 0.6078431606292725 | |
}, | |
"Rows" : 25, |
Day #1
Discussed:
class CheckoutMachine | |
PRODUCT_LIST = { | |
123 => { product: :chips, price: 200 }, | |
456 => { product: :salsa, price: 100 }, | |
789 => { product: :wine, price: 1000 }, | |
111 => { product: :cigarettes, price: 550 }, | |
000 => { product: :bonus_card, price: nil } | |
} | |
def initialize |
ActiveRecord cheat sheet / EXAMPLES | |
INSTALL | |
======= | |
$ gem install activerecord | |
in GEMFILE: gem ‘activerecord’ | |
REQUIRE | |
======= | |
require ‘active_record’ |