- User A (id: 'a') with the following documents
documents: [{
"id": "a_123"
"email": "[email protected]",
"phone_number": "901.111.1111",
...
}]
documents: [{
"id": "a_123"
"email": "[email protected]",
"phone_number": "901.111.1111",
...
}]
I hereby claim:
To claim this, I am signing this object:
| /* globals firebaseui */ | |
| import Ember from 'ember'; | |
| import firebase from 'firebase'; | |
| const { computed, inject: { service } } = Ember; | |
| export default Ember.Component.extend({ | |
| firebaseApp: service(), | |
| didInsertElement() { |
| require 'json' | |
| class BookMetaMerge | |
| def initialize(output_file='result_example.file') | |
| @output_file = output_file | |
| end | |
| def merge_files(file1, file2) | |
| hash_one = JSON.parse(file1) | |
| hash_two = JSON.parse(file2) |
| var Foo = { | |
| prop: 'A' | |
| } | |
| var bar = Object.create(Foo); | |
| var bad = new Object(Foo); | |
| //These are false | |
| console.log(Foo === bar); | |
| console.log(bar === bad); |
| require 'pg' | |
| require 'date' | |
| require './lib/person' | |
| require './lib/marriage' | |
| require './lib/parent' | |
| DB = PG.connect(:dbname => "family_tree") | |
| def welcome |
| class ScheduledStop | |
| attr_reader :time, :stop_id, :id | |
| def initialize(attributes) | |
| @time = Time.new(2013, 9, 12, attributes['time'][0..1].to_i, attributes['time'][3..4].to_i) | |
| @stop_id = attributes['stop_id'].to_i | |
| @id = attributes['id'].to_i | |
| end |
| class Book | |
| attr_reader :title, :isbn, :author_last_name, :author_first_name, :id, :copies, :number_of_copies | |
| def initialize(title, isbn, author_last_name, author_first_name, number_of_copies) | |
| @title = title | |
| @isbn = isbn | |
| @author_first_name = author_first_name | |
| @author_last_name = author_last_name | |
| @number_of_copies = number_of_copies |
| class Address | |
| attr_reader :contact_id, :street, :city, :state, :zip, :type, :full | |
| def initialize(contact_id, street, city, state, zip, type="") | |
| @contact_id = contact_id | |
| @street = street | |
| @city = city | |
| @state = state | |
| @zip = zip | |
| @type = type |
| class List | |
| attr_reader :name, :id | |
| def initialize(name) | |
| @name = name | |
| end | |
| def ==(another_list) | |
| self.name == another_list.name |