Skip to content

Instantly share code, notes, and snippets.

Question

LIFE EXPERIENCES

  • Tell us about an experience from your life that has influenced your development as a person.

  • Describe your most meaningful achievement that has made an impact in your community

  • Tell us about something you have learned from someone who is very different from you?

@kmazanec
kmazanec / carousel.js
Last active December 24, 2015 00:49 — forked from ksolo/carousel.js
Image Carousel
@kmazanec
kmazanec / form-validator.js
Created September 26, 2013 19:12 — forked from ksolo/form-validator.js
Form Validation
// shorthand for $(document).ready();
$(function(){
//Your code...
});
@kmazanec
kmazanec / form-validator.js
Last active December 24, 2015 00:40 — forked from ksolo/form-validator.js
Form Validation
// shorthand for $(document).ready();
function verifyEmail (email) {
var em_re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return em_re.test(email);
}
$(function(){
@kmazanec
kmazanec / zoo.html
Last active December 24, 2015 00:29 — forked from dbc-challenges/zoo.js
<!DOCTYPE html>
<html lang="en">
<head>
<!--
normalize.css removes cross-browser differences in defaults, e.g.,
differences in how form elements appear between Firefox and IE
See: http://necolas.github.com/normalize.css/
-->
<!--
application.css is where you put your styles
@kmazanec
kmazanec / index.html
Last active December 24, 2015 00:19 — 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.
*/
class PokerHand
attr_reader :hand, :score
def initialize (hand)
@hand = hand
@straight = @flush = @full_house = @quad = @triple = @two_pair = @pair = false
@score = 0
end
def evaluate
hands = @hand.scan(/[cdsh]/) # Creates array for suits