Skip to content

Instantly share code, notes, and snippets.

View lsaville's full-sized avatar

Lee Saville lsaville

  • Denver, CO
View GitHub Profile

I have a more complicated system:

  • materials one large ball jar three smaller jars one plastic strainer a bowl (to do the sifting) a chopstick (to do the stirring) a rag (to cover the big jar)

Record Endpoints

  • GET /api/v1/merchants
  • GET /api/v1/merchants/:id
  • GET /api/v1/merchants/find?parameters
    • id: Search based on primary key
    • name: Search based on the name attribute
    • created_at: Search based on the created_at timestamp
    • updated_at: Search based on the updated_at timestamp
  • GET /api/v1/merchants/find_all?parameters
  • Same parameters as above.

##Contributing to Factory Girl #####Why We've all used FactoryGirl in our rails projects and it would be great to get some understanding into how it works by cracking it open while contributing to an issue

#####What I found an issue opened a few days ago that claims factorygirl will ignore similarly named fields and fail when trying to override these fields in the creation of the object.

#####I Need To setup a simple rails project with a product model with those same fields to reproduce the error. I'll also need to crack open/familiarize myself with how factorygirl does it's magic, pontentially starting with the lead that was mentioned in the issue AttributeAssigner#alias_names_to_ignore. I'll also need to look more closely into their contribution policies.

Goals

######Elixir *current status *what success looks like *resources *mentors *meet-ups/conferences *ideas *talk ideas

Speaking Javascript

Chapter 3

What was interesting?

It's interesting that javascript can be both functional and object oriented. I'd love to have more time to dig into the differences between the two paradigms and learn about which features of a given language are a hard-stop from using it in one style or another. I had no idea that built-in map() and reduce() functions are a feature of functional languages. This seems very familiar from Ruby. Javascript failing silently is an intimidating feature and we'll have to be extra vigilant about syntax and the rules that are in play. I found most if not all of this chapter interesting, although portions of the reading (notably some computer science terms) I didn't understand fully.

Do you think the reading was valuable?

I do think the reading was valuable. It's a very short chapter but lays out something of a high level map/orientation for Javascript. I personally find it a great resource to later revisit and look into the different languages tha

Instructions

  • Fork this gist
  • Do 5 JavaScript exercisms
  • Compare your completed exercises to five answers that other folks got, writing a comment of what you saw when comparing the answer
  • Fill in the template below with your work

My Submission

hello-world

  1. Transferable Skills
  2. People skills * Interview, draw out * Communicate well, in person * Serve, care for, follow instructions faithfully
  3. Skills with Data/Ideas * Use my intuition * Visualize, including three dimensions
  • Synthesize, combine parts into a whole

WorkaDay

Pitch

The project provides a central organizational structure for the parties involved in a construction project (supervisor, home-owner, worker).

Problem

When a construction crew has multiple jobs in a day the details of the jobs and what the crew needs to do are often confused. The workers might show up to a location not knowing the exact nature of the job and not having any contact with the home-owner. The home-owner is able to communicate concerns/vital details to the actual workers that will be doing that job (since they communicate with the supervisor).

@lsaville
lsaville / rails_projects_and_testing.md
Created January 1, 2017 23:34 — forked from epintozzi/rails_projects_and_testing.md
Setting up rails and testing

Generate a new project without the included testing and with a postgres database:

rails new MyApp --skip-turbolinks --skip-spring -T --database=postgresql

Add VCR

group :test do
  gem 'vcr'
  gem 'webmock'