Skip to content

Instantly share code, notes, and snippets.

@edilenedacruz
edilenedacruz / instructions.md
Created December 26, 2016 22:07 — forked from kareemgrant/instructions.md
State Capital Assignment - Ruby Hashes and Arrays

State Capital Assignment

This exercise will help you better understand Arrays and Hashes

Use the data provided in state_capitals.rb to write a program that does the following.

  1. Prints out the names of all states that have a population greater than 5 million.

  2. Returns the name of the capital when given the name of the state.

Group Expectations

Group Member Names:

Project Manager:

Defining the Relationship (DTR) Questions:

  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?

Intermediate SQL Workshop

  • Run psql
  • You may need to run CREATE DATABASE intermediate_sql;
  • To exit this shell, you can run CTRL d

Create tables

Let's create some tables in the database.

Part I: User Creation

  1. add route for new_user_path
  2. create a UsersController with new action
  3. create new.html.erb
  4. generate user model with password_digest string field
  5. uncomment gem 'bcrypt' in Gemfile and add has_secure_password in User model
  6. add create action in UsersController
  7. implement logic for creating a user
  8. set session[:user_id] in create action
@edilenedacruz
edilenedacruz / vanilla-js-cheatsheet.md
Created April 4, 2017 16:11 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet

BASH

What is the Shell/BASH?

Shell is a command language. Over time people have developed different varities of shell by adding extra features

  • BASH(Born Again SHell)
  • Other types of command processors
    • zsh - Another type of command processor that is extremely powerful. It was built off of BASH but has more features. You can customize it to autocomplete github repos. Unlike BASH, zsh does not follow POSIX standards.
  • tcsh

M4 Reflection

Fork this gist and answer these questions to reflect on your learning experiences.

  • What brought you to Turing? Desire to learn more and have a career where learning is encouraged and supported. I get bored easily and programming will keep me busy with constant learning.

  • Where do you see yourself after Turing? Having a cool job that will empower me to help other change their career paths and actually enjoy what they do. In the long run, I would love to travel while working remotely.

@edilenedacruz
edilenedacruz / partially-quantified.js
Created May 15, 2017 16:54 — forked from neight-allen/partially-quantified.js
Sample code for students to break down into different reponsibilities
function Food(name, calories) {
this.name = name;
this.calories = calories;
}
$("document").ready(function() {
time = moment();
setIndexFoods();
})
@edilenedacruz
edilenedacruz / resources.md
Created August 17, 2017 18:13 — forked from andycandrea/resources.md
A list of resources for learning Rails and relevant technologies

A list of resources that aspiring Rails developers can use to learn Rails and other relevant technologies. This list includes some resources that I see recommended all over the web--not all of which I like--as well as some hidden gems that I've found valuable. This list is intended to supplement my blog post here.

Ruby

  • Codecademy
    • One of the more well-known sites to offer interactive programming tutorials, Codecademy is probably best utilized by those who are pretty new to programming, though the Ruby tutorial is good for teaching Ruby syntax and eventually gets into some less trivial material.
  • Try Ruby
  • Pretty similar to Codecademy. Once again, it's beginner-friendly, though, as someone who knew about object-oriented programming beforehand, I found it somewhat annoying to use, as there's no page with links to the individual exercises (at le