Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Saunders RobertWSaunders

View GitHub Profile
View pass_by_reference_example.rb
# these two methods appear to be the same but
# because one accepts memo as an argument
# it hackily gets away with the actual
# problem which is that `+` doesn't mutate memo
# since Ruby passes args by reference it
# works, ngl this took me sometime to find
# why one worked and the other didn't
# works
View MongoDB Single Instance
#!bin/bash
# Assignment #1 NoSQL Databases Part 2
# Class: CMPE 432 Advanced Databases
# Authors: Robert Saunders, Chris Jones
# Student Numebers: 10194030, 10177155
# Script to create a single MongoDB instance.
# This script will also create a database and import the movie and ratings data provided from taking a down sample of dataset 1.
# This script requires mongo to be installed and mongod to be installed within your PATH.
View MongoDB Replica Set Config
#!bin/bash
# Assignment #1 NoSQL Databases Part 6
# Class: CMPE 432 Advanced Databases
# Authors: Robert Saunders, Chris Jones
# Student Numebers: 10194030, 10177155
# Script to create a MongoDB replica set with two MongoDB instances.
# This script will also create a database and import the movie and ratings data provided in dataset 2.
# This script requires mongo to be installed and mongod to be installed within your PATH.
View GraphQLTestHelper Proposal
require 'pry'
module GraphQLTestHelper
def on_mutation(args: {}, &mutation_tests_block)
mutation, response = mutation_query(args: args, &mutation_tests_block)
puts mutation.selections # [{:script_tag=>[:src, :display_scope]}]
MutationEvaluator.new(self, response) do
You can’t perform that action at this time.