Skip to content

Instantly share code, notes, and snippets.

@Cspeisman
Cspeisman / carousel.js
Last active December 22, 2015 09:58 — forked from ksolo/carousel.js
Image Carousel
@Cspeisman
Cspeisman / form-validator.js
Last active December 22, 2015 09:48 — forked from ksolo/form-validator.js
Form Validation
// shorthand for $(document).ready();
$(function(){
$("form[name='sign_up']").submit(validatePassword);
});
function validateEmail(){
var email = $("[name='email']").val()
var email_validate = /\w+\@.+\.\w{2,}/
if (email_validate.test(email) == false ){
@Cspeisman
Cspeisman / zoo.js
Created September 5, 2013 14:52 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------

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.