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
@julyytran
julyytran / intermediate_sql.markdown
Last active March 24, 2016 22:50
Intermediate SQL

What's the total revenue for all items?

  • SELECT sum(revenue) FROM items;

What's the average revenue for all items?

  • SELECT avg(revenue) FROM items;

What's the minimum revenue for all items?

@julyytran
julyytran / running_production_locally.markdown
Created April 19, 2016 17:52
How to run production locally in rails

Use a different API key for each environment: test, development, production

In secrets.yml, there are tokens for each environment

In application.yml (from figaro), can set keys for different environments using figaro

rake secret to get secret token, used to sign and decode cookies, put it in application.yml Access it in secrets.yml

Add gem 'rails_12factor to gemfile to get error messages

@julyytran
julyytran / js-exercism-comparisons.markdown
Last active May 5, 2016 22:58
JS exercism comparisons

My code

##Leap

  • Responder 1 This person used nested ifs and return true/false. I think condensing the if statements into one makes for cleaner code, and it will already return true/false based on how it evaluates, so you wouldn't need to explicitly state it.
  • Responder 2 This person has an if/else if/else structure where the if and else if both return true. They could condense that into one statement to DRY it out a bit, and assign it to a variable to get rid of the if/elses.
  • Responder 3 This person did it the same way I did! I think it's a great implementation.
  • Responder 4 This person has a 4 branch if/else statement. The branches that return the same value can be
**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.
@julyytran
julyytran / scale_up_retro.md
Created June 13, 2016 16:51
Scale up suggestions

##How can we get mentors more invovled?

  • Give them earlier notice of the projects being done and people's interests
  • More accessible info about how to reach out to them
  • Make info about students' projects easily accessible

##What should we change next module?

  • Explain options earlier so we can think/plan what we want to do
  • Tailor lessons based on what groups or individual people are doing
  • Assign team leads to group projects