Client-side form validation is a notoriously painful development experienece. Yet, despite HTML5 constraint validation—a series of APIs designed to make form validation way easier—being implemented in most browsers, no one actually uses it. In this talk you'll see why. We'll discuss constraint validation's pain points, and how you can overcome them in your own applications. Come learn how to use HTML5 form validation today!
This file contains hidden or 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
Test gist for playing with the GitHub API. |
The following code adds a [placeholder] class name to the <body>
element:
document.body.classList.add( "foo-bar" );
Question: How should the class name inserted at [placeholder] be formatted?
This file contains hidden or 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
module.exports = function( grunt ) { | |
"use strict"; | |
var version = "2.1.1", | |
exclude = [ "ajax" ], | |
dest = "jquery-built.js" | |
exclude.forEach(function( module, index ) { | |
exclude[ index ] = "-" + module; | |
}); |
This file contains hidden or 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
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt" | |
# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png | |
# A big thanks to \amethyst on Freenode | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color | |
elif infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>jQuery 2.1.0 Parse/Execute Test</title> | |
</head> | |
<body> | |
<script>var start = new Date();</script> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<entries> | |
<entry type="method" name="jQuery.widget"> | |
<title>Widget Factory</title> | |
<signature> | |
<argument name="name" type="String"> | |
<desc>The name of the widget to create, including the namespace.</desc> | |
</argument> | |
<argument name="base" type="Function" optional="true"> | |
<desc>The base widget to inherit from. This must be a constructor that can be instantiated with the `new` keyword. Defaults to <code>jQuery.Widget</code>.</desc> |
This file contains hidden or 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
diff --git a/README.md b/README.md | |
index 9731e95..7c730ce 100644 | |
--- a/README.md | |
+++ b/README.md | |
@@ -50,8 +50,8 @@ cd jquery-ui | |
# Install the node module dependencies | |
npm install | |
-# Run the build task | |
-grunt build |
This file contains hidden or 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
package com.tj; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
public class TestServlet extends HttpServlet { |