Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / carousel.js
Last active December 24, 2015 00:49 — forked from ksolo/carousel.js
Image Carousel

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 / client.html
Last active May 13, 2016 16:01
Web socket chat server
<html>
<!-- Forked from a JSFiddle, available here: http://jsfiddle.net/rxcwyypv/2/ -->
<head>
<title>WebSocket Echo Test</title>
<script>
function init() {
websocket = new WebSocket("ws://localhost:8080/read");
websocket.onopen = function() { document.getElementById("output").innerHTML += "<p>> CONNECTED</p>"; };