Skip to content

Instantly share code, notes, and snippets.

View marinacor1's full-sized avatar

Marina Corona marinacor1

View GitHub Profile
@marinacor1
marinacor1 / Job Profiling
Created July 26, 2016 05:12
Job profiling assignment
5 Companies:
1. Go Spot Check
Alumni: Nathan Oswiany- Go Spot Check
Go Spot Check - Rails, JavaScript, Backbone
Pros: Close proximity, 100% pairing, great culture, well liked, Turing alum works there, free food, parking, fast growing
Cons: Smaller company, don't know where it'll be in future
Contacted recruiter, will send resume and apply
2. Sendgrid
Title: An Introduction to React
1. Short overview of React and its history
2. Few examples of React in real life (with images)
3. Quick tutorial of how to build a react site
4. Last thoughts on React.
@marinacor1
marinacor1 / Asset Pipeline Scavenger Hunt
Created April 20, 2016 17:49
Learning about asset pipeline
What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
Combine folders into one. We want to concatenate to save space, make it easier to file/ find. Reduce the number of requests that a browser makes to render a web page. (faster loading)
http://www.jddesign.co.uk/products/concat/readme/concatdialog.png
What does it mean to precompile files? What does this have to do with coffeescript and sass files?
A precompiled header is file that is precompiled to make it faster to process.
What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?
Start up the server for Catch 'em All (rails s) and navigate to http://localhost:3000/assets/application.js. Then open up the code for application.js in your text editor. Why are these not the same?
git stash: stores the latest changes you've made to a secret chamber and returns your working directory to the match the last commit (can get it back by using git pop)
git stash apply: restores the git stash, potentially on top of a different commit
git shortlog: summarizes git log output (commits re grouped by author and title)
<img width='1224' height='1154' title='' alt='' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABMgAAASCCAYAAABHDdAFAAAMGWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSCAktEAEpoTdBepXeBQHpYCMkAUIJIRBU7OiigmsXC1Z0FUTBtQCyqIgoFhYBe90goqKsiwUbKm+SALruK9873zd3/pw558x/zp25mQFA0Z4lEGSiSgBk8fOEkYE+zPiERCZJDBCAA3lgAJgsdq7AOyIiFEAZ7f8u725CayjXLCWx/jn+X0WZw81lA4BEQJzMyWVnQXwcAFyTLRDmAUDogHqD2XkCCX4LsaoQEgSASJbgVBnWkuBkGbaW2kRH+kLsBwCZymIJUwFQkMRn5rNTYRwFAcTWfA6PD/FuiD3YaSwOxGKIJ2RlZUOsSIXYNPm7OKl/i5k8FpPFSh3Ds...
git commit --amend: fixes most recent commit, can edit or combine staged changes with the previous commit
git reset --hard(with commit number) : takes your current branch back to point of
## Models, Databases, Relationships in Rails
#### What is the difference between a primary key and a foreign key? Where would we find a primary key?
What would it be called by default? Where would we find a foreign key? What is the naming convention for a foreign key?
Primary key is the unique identifier within a table. Foreign key is the unique identifier of another table that has a relationship with the table.
By default it is the ID. A foreign key will be in the other table and will have a name that starts with the other table name (ex. students) and id.
So an example would be student_id.
#### Write down one example of:
* a `one-to-one `relationship. Person to sandwich. Bicycle to owner. A business to CEO.

Immigration and Technology

Brief introduction

  • Title and my background, TFA, Immigrant

Norms

  • Things we can agree upon:
  • Not everyone is born in the same conditions
  • It is human nature to want to survive
@marinacor1
marinacor1 / cfu_crud_in_sinatra.markdown
Last active March 23, 2016 04:12 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD. 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. GET -retrieves info that comes in request POST - creates a new piece of information from the request PUT - updates specific information that is in the request

Introduction to Sinatra

1. What is the purpose of the server file (routing)?

It includes the HTTP verbs and determines what the server will do (i.e. what verb and path, like POST '/')

2. How do you pass variables into the views?

You can use a hash like :locals {:number => number}

3. How can we interpolate ruby into a view (html)?

We can use <% = ruby thing you want to show %>