Skip to content

Instantly share code, notes, and snippets.

View code-for-coffee's full-sized avatar

James code-for-coffee

  • Chicago, IL
View GitHub Profile
@code-for-coffee
code-for-coffee / tables.text
Created June 3, 2015 19:12
Draw a diagram that represents the following tables in a database
## Diagram a Database
- Owners HAVE MANY Pets
- Pets HAVE ONE Owner
- Pets and Owners have ONE Home
- Owners have:
- ID (int) as Primary Key
- Name (string)
- PetID (int) as Foreign Key
@code-for-coffee
code-for-coffee / tables.text
Created June 3, 2015 19:12
Draw a diagram that represents the following tables in a database
## Diagram a Database
- Owners HAVE MANY Pets
- Pets HAVE ONE Owner
- Pets and Owners have ONE Home
- Owners have:
- ID (int) as Primary Key
- Name (string)
- PetID (int) as Foreign Key
@code-for-coffee
code-for-coffee / tables.text
Created June 3, 2015 19:12
Draw a diagram that represents the following tables in a database
## Diagram a Database
- Owners HAVE MANY Pets
- Pets HAVE ONE Owner
- Pets and Owners have ONE Home
- Owners have:
- ID (int) as Primary Key
- Name (string)
- PetID (int) as Foreign Key
@code-for-coffee
code-for-coffee / tables.text
Created June 3, 2015 19:12
Draw a diagram that represents the following tables in a database
## Diagram a Database
- Owners HAVE MANY Pets
- Pets HAVE ONE Owner
- Pets and Owners have ONE Home
- Owners have:
- ID (int) as Primary Key
- Name (string)
- PetID (int) as Foreign Key
@code-for-coffee
code-for-coffee / interview-erd-problem.md
Last active August 29, 2015 14:22
Draw a diagram that represents the following tables in a database

Diagram a Database

  • You should draw out a rough ERD/diagram for the listed tables.
  • You should mark which columns are the Primary Key
  • You should mark which columns are the Foreign Key
  • You should draw lines to show relationships between tables on the Foreign Keys

Details

Table Relationships

@code-for-coffee
code-for-coffee / interview-fizzbuzz.md
Last active August 29, 2015 14:22
interview-fizzbuzz

FizzBuzz

Using the language of your choice, you need to write an application. You are highly encouraged to write this in the language you are most comfortable with. You will be writing an application that prints out information to a user.

Details

  • Write a program that prints the numbers from 1 to 100.
  • For multiples of three print “Fizz” instead of the number.
  • For the multiples of five print “Buzz”.
  • For numbers which are multiples of both three and five print “FizzBuzz”

Iteration

You've been provided the following JSON file:

[
  { "name": "Lichard", "age": 24, "hobby": "writing songs" },
  { "name": "Kathew", "age": 21, "hobby": "making guacamole" },
  { "name": "Omily", "age": 27, "hobby": "sailing the lake" }
]

Classes

You need to build a class in the language of your choice. The class modeling a laptop.

Details

  • The class must contain an initialize function/method
  • The class must contain the attributes:
    • Browser
    • Operarting System
  • Brand

Create a Form

You need to create a Contact Me form. It will not use ajax but instead will just POST directly to your server. You may write this using standard HTML, ERB, or EJS.

Details

  • Your form should contain the following entries:
    • User's name
    • User's email
    • User's phone no.
  • Reason for contact request
@code-for-coffee
code-for-coffee / app.js
Created July 9, 2015 16:40
Document is ready via jQuery
$(document).ready(function(event) {
});