Skip to content

Instantly share code, notes, and snippets.

@ciacci1234
ciacci1234 / 01-MatchingAlgo.md
Last active March 16, 2018 00:24
I created a very basic matching algorithm during a hackathon.

Lessons Learned

  • For Hackathons, emphasizing how a proposed app/product solves a given pain point can be as valuable if not more valuable than the specific details of the technical implementation.
  • I discovered a handy way in Ruby to perform Array Intersection with the & operator.

Context

At the end of my bootcamp, we had a small internal hackathon. My team was assigned the hypothetical task of improving AirBnB's site to address issues of racial discrimination by hosts towards guests. Our team decided to utilize IBM Watson's Personality Insights API to analyze AirBnB users' bio descriptions (which our team proposed adding as a requirement upon signup).

The Watson analysis would quantify a user's personality and these values would help inform the matching of hosts with guests. Initially, we wanted to come up with a more involved matching algorithm, but given the short amount of time we had, I suggested a basic matching algorithm, which is what is written above.

@ciacci1234
ciacci1234 / 01-SampleAJAXForm.md
Last active March 16, 2018 00:32
AJAX'ing the user's ability to bookmark(favorite) resources to his profile page.

Lessons Learned

  • Wiring together a feature relying on AJAX.*
  • Solidified my understanding of MVC concepts.

Context

This is code from my first full-stack web application built in the final week of DevBootcamp a 5-month web development bootcamp I attended. I and four others built a meditation app for beginners that presented meditations from a variety of spiritual traditions, reminded users daily of the time they committed to the meditation, and tracked their progress along the way.

My main responsibilities included building out the practices and resources pages. The code above pertains to the bookmark functionality on the resources page, so users could save their favorite resources that supplemented their chosen meditation practice.

*The code below's fairly straightforward AJAX code utilizing jQuery and the correlating view file, but it was one of the first features for a web application which I built with little guidance from teachers or peers, and so I have fond memories of tinkering around with t