Skip to content

Instantly share code, notes, and snippets.

@shidel-dev
shidel-dev / form-validator.js
Last active August 29, 2015 13:56 — forked from ksolo/form-validator.js
Form Validation
$(function() {
$("form[name='sign_up']").submit(function(event) {
event.preventDefault();
$("#errors").empty()
var email = validateEmail($("input[name='email']"));
var password = validatePassword($("input[name='password']"));
if (email == true) {
if (password == true) {
$("#errors").append("<ui>Success</ui>");
} else {
@shidel-dev
shidel-dev / zoo.js
Last active August 29, 2015 13:56 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
Zoo = {
init: function(animals) {
this.animals = animals;
},
bipeds: function() {

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.
@shidel-dev
shidel-dev / 0.2.1-boggle_class_from_methods.rb
Last active December 27, 2015 22:39 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(board)
@board=board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end
def get_row(row)