Skip to content

Instantly share code, notes, and snippets.

View lperez2528's full-sized avatar

Luis Perez lperez2528

View GitHub Profile
<div class= "col-100">
<h1>Create A New Survey</h1>
<form action= "/create_survey" method= "post">
<p><label for "create_title">Survey Title:</label></p>
<p><input type="text" name="create_title"></p>
<p><label for "description">Description:</p>
<p><input type="text" name="description"></p>
@lperez2528
lperez2528 / form-validator.js
Created October 17, 2013 18:26 — forked from ksolo/form-validator.js
Form Validation
// shorthand for $(document).ready();
$(function(){
//Your code...
});
@lperez2528
lperez2528 / carousel.js
Created October 17, 2013 17:32 — forked from ksolo/carousel.js
Image Carousel
@lperez2528
lperez2528 / index.html
Last active December 25, 2015 19:09 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the Socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
require 'csv'
class Recipe
attr_reader :id, :name, :description, :ingredients, :directions
def initialize(id, name, description, ingredients, directions)
@id = id
@name = name
@description = description
@ingredients = ingredients
@directions = directions
require 'csv'
class Recipe
attr_reader :id, :name, :description, :ingredients, :directions
def initialize(id, name, description, ingredients, directions)
@id = id
@name = name
@description = description
@ingredients = ingredients
@directions = directions