- Download this application skeleton.
- Convert the app to use AJAX.
- Add any files you changed to your gist and submit your code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Begin HTTP Server | |
server { | |
listen 80; # IPv4 | |
server_name localhost; | |
## Parametrization using hostname of access and log filenames. | |
access_log logs/localhost_access.log; | |
error_log logs/localhost_error.log; | |
## Root and index files. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Shorthand for $(document).ready(); | |
$(function() { | |
// Your code goes here... | |
var slideNum = 0; | |
var slideLength = 2; | |
var slideWidth = $('.carousel').width(); | |
$('#previous_frame').on('click', function() { | |
if (--slideNum < 0) slideNum = slideLength; | |
$('.frames').animate({ | |
left: -slideNum * slideWidth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shorthand for $(document).ready(); | |
$(function() { | |
//Your code... | |
$('form[name="sign_up"]').submit(function(e) { | |
e.preventDefault(); | |
var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; | |
var email = $('input[name="email"]').val(); | |
var password = $('input[name="password"]').val(); | |
var errorsOut = ""; //concatenation baby | |
if (email.length == 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shorthand for $(document).ready(); | |
$(function(){ | |
//Your code... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
function Zoo() {}; | |
//constructor | |
Zoo.init = function(animals) { | |
this.animals = animals; | |
}; | |
//biped method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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. | |
*/ |
Exercise #187: Give me a list of all invoices from Redmond, WA sorted from low-to-high by total
SELECT * FROM invoices WHERE billing_city = 'Redmond' ORDER BY total ASC;
Exercise #188: Give me a list of all invoices from Redmond, WA sorted from high-to-low by total
SELECT * FROM invoices WHERE billing_city = 'Redmond' ORDER BY total DESC;
Exercise #189: Give me a list of all invoices from Germany sorted from high-to-low by total
NewerOlder