Skip to content

Instantly share code, notes, and snippets.

View EliseFitz15's full-sized avatar

Elise Fitzgerald EliseFitz15

View GitHub Profile

API Tools Recommendation

Swaggerhub

Our recommendation is to use SwaggerHub for building out our documentation and building out some mocked endpoints for partners to see. SwaggerHub is a web app that pulls together a suite of Swagger products. Among to pros listed below, Swagger is also a common documentation tool and we know some partners will be familiar with it.

API Tools Considered

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
require 'spec_helper'
require 'rspec/rails'
# Add additional requires below this line. Rails is not loaded until this point!
# Requires supporting ruby files with custom matchers and macros, etc, in
@EliseFitz15
EliseFitz15 / daily-lesson-plan.md
Last active February 23, 2016 19:24
Winter-2015-Daily-Lesson-Plan.md
@EliseFitz15
EliseFitz15 / untitled
Created January 26, 2016 20:51
datepicker.js
/**
* @preserve jQuery DateTimePicker plugin v2.4.5
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
* (c) 2014, Chupurnov Valeriy.
*/
/*global document,window,jQuery,setTimeout,clearTimeout,HighlightedDate,getCurrentValue*/
(function ($) {
'use strict';
var default_options = {
i18n: {
@EliseFitz15
EliseFitz15 / group-project-winter-15.md
Last active January 3, 2016 21:12
winter-15-group-projects

#Winter 2015 Group Project Groups

Elise's Mentor Group

###Group 1

  • Carl Venezia
  • Jie Xu
  • Lawrence Kati
  • Tali Koss

###Group 2

Active Record Associations Practice

Associations let us access our data in diverse and flexible ways, simplifying our queries and allow some of our CRUD functionality.

When we are creating apps we start with a map of our initial tables and build them out one at a time.

After we create a table we add any necessary associations. To get some practice, we will start by drawing an ER Diagram, determining the proper associations/relationships between models and test them out in pry.

Note: These are often questions you may get in a technical interview when it comes to modeling a database for an app.

@EliseFitz15
EliseFitz15 / Heroku-Deploy-with-Sinatra.md
Last active July 27, 2017 11:54
sinatra-deployment.md

Deploy a Sinatra App with Heroku

##What does this mean? Your web application - out there on the Internets for all to see! We are leaving your local development environment and heading into staging and production.

We develop our apps in many different "environments" and so far we have discussed and worked with our test environment and development environment.

To follow Agile Development Methodologies we aim to build out some functionality through testing locally, then do a release (i.e. deploy the app) and test it out in production. Once it's up we check to make sure it's running the way we expect - through QA-ing (quality assurance testing). In this stage we may also get feedback from clients or other teams. Next, we make changes and updates to those features, re-releasing the next iteration to test. Then, once those features are finished, we begin with the next set of functionality.

@EliseFitz15
EliseFitz15 / setting-up-rspec.md
Last active November 12, 2015 17:21
setting-uprspec-in-sinatra

#Setting Up RSpec

  • gem install rspec
  • In the project root set up the following file structure:
    • spec/lib/class_spec.rb
    • lib/class.rb goes in lib
  • Configure RSpec for color tests. In the root folder touch .rspec and insert "--color"
  • To reference our classes, tests files need this at the top require_relative '../../lib/class.rb'
  • To run the test type rspec spec from the root directory
@EliseFitz15
EliseFitz15 / sorting-algorithms.md
Created October 14, 2015 16:50
sorting-algorithms.rm

#Sorting Algorithms

Our computers spend a great deal of time sorting data that make it easier for us to consume in human-readable formats. As web developers, our tools can often make it easy to overlook the value of grasping concepts like sorting and the the algorithms behind their implementations.

Algorithm efficiency is a broad topic in Computer Science and listed below are a few more good resources to learn more, but today we'll go over some of the common, simpler sorting implementations.

###Selection Sort

  • Defines a sorted and unsorted portion
  • First pass finds the "smallest" in the list, assuming the first is the minimum until it finds it