Skip to content

Instantly share code, notes, and snippets.

View alirezaandersen's full-sized avatar
💭
Copy and Paste! Thank you Stack Overflow!

Ali Andersen alirezaandersen

💭
Copy and Paste! Thank you Stack Overflow!
View GitHub Profile

Outline

Blog 1: The Do's and What they don't tell about you about Android Studio

  • All the stuff you need to install that Facebook doesn't mention
  • Speak about all the blogs that cover the basic trouble shoot but never mention the server issue
  • Why no one sent the link to an easy solutions!
  • Finally figure out how to fix the issue of no server! Super Easy Have pictures with steps!

Side notes - Figured out that creating a new project requires a restart and reload for each of the projects

@alirezaandersen
alirezaandersen / pr-template.md
Last active July 18, 2016 17:39 — forked from rrgayhart/pr-template.md
Modified Quick Left PR Template

What's this PR do?

This PR is based on refactoring the quality.js - their were two places to in which repetitous code was used. 

Where should the reviewer start?

The reviewer

How should this be manually tested?

  There is no javscript testing for qaulity.js

Any background context you want to provide?

Code is much cleaner and easier to follow. 

Screenshots (if appropriate)

Totally not appropriate ;-)

@alirezaandersen
alirezaandersen / andersen_exercism_javascript1.md
Created June 23, 2016 21:06
Ali Andersen - JavaScript Exercism

##Leap My code: here

  • Responder #1 (here) A unique way of solving by using Boolean to determine if the statement is true.

  • Responder #2 (here) - This person used a if statement approach as above without the Boolean approach instead he check for divisibility by 4, and afterwards, in on line, checks for all other values.

  • Responder #3 (here) - This user decided to go with an if/else approach, returning true or false based on the condition. I do feel like this code is much easier to read then the previous ones even though it is much longer.

  • Responder #4 (here) - This user took the same approach as Responder 3 with a slight difference of assigning the function before deali

@alirezaandersen
alirezaandersen / git_key_board_short_cuts.md
Last active April 14, 2016 15:36
Git KeyBoard ShortCuts

###Site Wide Shortcuts

  • g+n Go to your notifications

###Repositiories

  • g + c Go to your repository
  • g + i Go to your issues
  • g + p Go to your pull requests

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 main key that determines the identity or uniqueness of the entry in a table Foreign key is the primary key for another table that is directly related to the current table

Write down one example of:

  • a one-to-one relationship.
  • spouse-to-spouse
@alirezaandersen
alirezaandersen / cfu_crud_in_sinatra.markdown
Last active March 23, 2016 04:10 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD.

*Create, Read, Update, Delete

  1. 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 + "/something" renders and lists all, usually in a index view; get + "/something/:id" renders an item at a time; get + "/something/new" renders a viewable form for input; post + "/something" allows an input to be submitted, and then this is redirected to a index;

Introduction to Sinatra

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

The server is a file that allows the receiver and the responder to give and get the proper out put based on the verb (POST, GET, PUT, DELETE) and the path. Whatever you put in your server file determines what the client gets back.

2. How do you pass variables into the views?

The variable that you are trying to pass needs to be considered in the “Get block” erb represents the file that you want to view

Complexity in the hospitality industry ranges mostly in the form of logistical creativity. There are many steps in creating an event from the ideal to the execution. Super Bowl for example is planned out at a minimum of 4 years out. Objective is to find a location that logistically fall within patterns of tourism which allows for easier access for millions of people, this process alone falls under several categories that one must look at before deciding the best locating, here are a few. First a projection of current team trends for the next four years is given i.e. best candidates for the next Super Bowl. Second, Tourism attraction and growth for possible location, i.e. can the city support of a million people visiting for 5 days, hotels, transportation, demographics attending, sponsorship opportunities. Next step would be determining financials, cost and profitability. The main focus with this section falls under many complicated categories, sponsorships, tax breaks, and NGI (new growth initiative) are just