Skip to content

Instantly share code, notes, and snippets.

View julyytran's full-sized avatar

July Tran julyytran

View GitHub Profile
@julyytran
julyytran / cfu_crud_in_sinatra.markdown
Last active February 3, 2016 20:12 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD. All the functionality expected from a database application: create, read, update, delete

  2. There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for.

  3. get /tasks shows all of the tasks

  4. get /tasks/:id shows a single task

  5. get /tasks/new show form to make a new task

  6. post /tasks makes a new task

  7. get /tasks/:id/edit shows form to update a task

  8. put /tasks/:id updates a specific task

Allyship

In previous GearUps, we've explored the ways in which we can unwittingly participate in behavior that alienates or perpetuates inequality and injustice in our workplaces and communities. What opportunities, if any, do you have to effectively challenge these issues when you encounter them? How can we use our relationships and daily interactions to effectively challenge cultural and systemic discrimination?

"Allyship" is when a person of a non-marginalized group (OR "a person of privilege") seeks to operate in solidarity with and support a marginalized group of people. Today, we will discuss some essays on the topic of allyship.

Reading (~10 Minutes)

@julyytran
julyytran / Team MountainRacoonJokers
Last active February 29, 2016 21:00 — forked from rwarbelow/setting_expectations.markdown
Team MountainRacoonJokers
## Setting Group Expectations
Group Member Names:
1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed?
Heidi: Cannot do Tuesday or Weds evening week 5, need to know in advance
Brain: Cannot do Mon evening week 5
July: Cannot do Tuesday week 5 or Saturday daytime week 5
**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI)
**Step Two**: Fork this gist.
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
* Need to consider: space, time, type of data
*insertion - good for small sets of data/if it's mostly already sorted, compares what needs to be sorted
*bubble - slow, checks through every item, no bueno
*merge - multi-branch (splits array) recursive sort, fast and stable, not going to work with a ton of data if you are doing it in the browser
@julyytran
julyytran / require-1511.markdown
Last active May 20, 2016 11:06 — forked from rrgayhart/require-1511.markdown
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?
  • A module is similar to a class in Ruby. It encapsulates a chunk of code that has related functions. Needs to be exported if it wil be used in a different file from the one it is defined in.