text:
function log { logger -t "vpc" -- $1; }
function die {
  [ -n "$1" ] && log "$1"
  log "Configuration of HA NAT failed!"
  exit 1
}

# Sanitize PATH
PATH="/usr/sbin:/sbin:/usr/bin:/bin"

# Configure the instance to run as a Port Address Translator (PAT) to provide
# Internet connectivity to private instances.

log "Beginning Port Address Translator (PAT) configuration..."
log "Determining the MAC address on eth0..."
ETH0_MAC=$(cat /sys/class/net/eth0/address) ||
    die "Unable to determine MAC address on eth0."
log "Found MAC ${ETH0_MAC} for eth0."

VPC_CIDR_URI="http://169.254.169.254/latest/meta-data/network/interfaces/macs/${ETH0_MAC}/vpc-ipv4-cidr-block"
log "Metadata location for vpc ipv4 range: ${VPC_CIDR_URI}"

VPC_CIDR_RANGE=$(curl --retry 3 --silent --fail ${VPC_CIDR_URI})
if [ $? -ne 0 ]; then
   log "Unable to retrive VPC CIDR range from meta-data, using 0.0.0.0/0 instead. PAT may be insecure!"
   VPC_CIDR_RANGE="0.0.0.0/0"
else
   log "Retrieved VPC CIDR range ${VPC_CIDR_RANGE} from meta-data."
fi

log "Enabling PAT..."
sysctl -q -w net.ipv4.ip_forward=1 net.ipv4.conf.eth0.send_redirects=0 && (
   iptables -t nat -C POSTROUTING -o eth0 -s ${VPC_CIDR_RANGE} -j MASQUERADE 2> /dev/null ||
   iptables -t nat -A POSTROUTING -o eth0 -s ${VPC_CIDR_RANGE} -j MASQUERADE ) ||
       die

sysctl net.ipv4.ip_forward net.ipv4.conf.eth0.send_redirects | log
iptables -n -t nat -L POSTROUTING | log

log "Configuration of NAT/PAT complete."

# Install AWS CLI tool
#apt-get -y install python-pip
#pip install --upgrade awscli  && log "AWS CLI Upgraded Successfully. Beginning HA NAT configuration..."

awscmd="/usr/bin/aws"

# Set CLI Output to text
export AWS_DEFAULT_OUTPUT="text"

# Set Instance Identity URI
II_URI="http://169.254.169.254/latest/dynamic/instance-identity/document"

# Set region of NAT instance
REGION=$(curl --retry 3 --retry-delay 0 --silent --fail $II_URI | grep region | awk -F\" '{print $4}')

# Set AWS CLI default Region
export AWS_DEFAULT_REGION=$REGION

# Set AZ of NAT instance
AVAILABILITY_ZONE=$(curl --retry 3 --retry-delay 0 --silent --fail $II_URI | grep availabilityZone | awk -F\" '{print $4}')

# Set Instance ID from metadata
INSTANCE_ID=$(curl --retry 3 --retry-delay 0 --silent --fail $II_URI | grep instanceId | awk -F\" '{print $4}')

# Set VPC_ID of Instance
VPC_ID=$(${awscmd} ec2 describe-instances --instance-ids $INSTANCE_ID --query 'Reservations[*].Instances[*].VpcId') ||
  die "Unable to determine VPC ID for instance."

# Determine Main Route Table for the VPC
MAIN_RT=$(${awscmd} ec2 describe-route-tables --query 'RouteTables[*].RouteTableId' --filters Name=vpc-id,Values=$VPC_ID Name=association.main,Values=true) ||
  die "Unable to determine VPC Main Route Table."

log "HA NAT configuration parameters: Instance ID=$INSTANCE_ID, Region=$REGION, Availability Zone=$AVAILABILITY_ZONE, VPC=$VPC_ID"

# Get list of subnets in same VPC that have tag network=private
PRIVATE_SUBNETS="$(${awscmd} ec2 describe-subnets --query 'Subnets[*].SubnetId' --filters Name=availability-zone,Values=$AVAILABILITY_ZONE Name=vpc-id,Values=$VPC_ID Name=state,Values=available Name=tag:network,Values=private)"
# Substitute the previous line with the next line if you want only one NAT instance for all zones (make sure to set the autoscale group to min/max/desired 1)
#--filters Name=vpc-id,Values=$VPC_ID Name=state,Values=available Name=tag:network,Values=private)
# If no private subnets found, exit out
if [ -z "$PRIVATE_SUBNETS" ]; then
  die "No private subnets found to modify for HA NAT."
else
  log "Modifying Route Tables for following private subnets: $PRIVATE_SUBNETS"
fi
for subnet in $PRIVATE_SUBNETS; do
  ROUTE_TABLE_ID=$(${awscmd} ec2 describe-route-tables --query 'RouteTables[*].RouteTableId' --filters Name=association.subnet-id,Values=$subnet);
  # If private tagged subnet is associated with Main Routing Table, do not create or modify route.
  if [ "$ROUTE_TABLE_ID" = "$MAIN_RT" ]; then
    log "$subnet is associated with the VPC Main Route Table. HA NAT script will NOT edit Main Route Table."
  # If subnet is not associated with a Route Table, skip it.
  elif [ -z "$ROUTE_TABLE_ID" ]; then
    log "$subnet is not associated with a Route Table. Skipping this subnet."
  else
    # Modify found private subnet's Routing Table to point to new HA NAT instance id
    ${awscmd} ec2 create-route --route-table-id $ROUTE_TABLE_ID --destination-cidr-block 0.0.0.0/0 --instance-id $INSTANCE_ID &&
    log "$ROUTE_TABLE_ID associated with $subnet modified to point default route to $INSTANCE_ID."
    if [ $? -ne 0 ] ; then
      log "Route already exists, replacing existing route."
      ${awscmd} ec2 replace-route --route-table-id $ROUTE_TABLE_ID --destination-cidr-block 0.0.0.0/0 --instance-id $INSTANCE_ID
    fi
  fi
done

if [ $? -ne 0 ] ; then
  die
fi

# Turn off source / destination check
${awscmd} ec2 modify-instance-attribute --instance-id $INSTANCE_ID --no-source-dest-check &&
log "Source Destination check disabled for $INSTANCE_ID."

log "Configuration of HA NAT complete."
yum update -y aws*
. /etc/profile.d/aws-apitools-common.sh

# Configure iptables
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 0.0.0.0/0 -j MASQUERADE
/sbin/iptables-save > /etc/sysconfig/iptables


text:
<?php
require_once('../src/whatsprot.class.php');

$debug = true;

echo "####################\n";
echo "#                  #\n";
echo "# WA Register Tool #\n";
echo "#                  #\n";
echo "####################\n";

echo "\n\nUsername (country code + number without + or 00): ";
$username = trim(fgets(STDIN));

// Create a instance of WhastPort.
$w = new WhatsProt($username, '', $debug);

echo "\n\nType sms or voice: ";
$option = fgets(STDIN);

try {
    $w->codeRequest(trim($option));
} catch(Exception $e) {
    echo $e->getMessage();
    exit(0);
}

echo "\n\nEnter the received code: ";
$code = str_replace("-", "", fgets(STDIN));

try {
    $result = $w->codeRegister(trim($code));
    echo "\nYour password is: ".$result->pw."\n";
} catch(Exception $e) {
    echo $e->getMessage();
    exit(0);
}

redpajama_set_name: RedPajamaGithub


text:
package com.bitfire.postprocessing.filters;

import com.bitfire.utils.ShaderLoader;

public final class RadialDistortion extends Filter<RadialDistortion> {
	private float zoom, distortion;

	public enum Param implements Parameter {
		// @formatter:off
		Texture0("u_texture0", 0), Distortion("distortion", 0), Zoom("zoom", 0);
		// @formatter:on

		private final String mnemonic;
		private int elementSize;

		private Param (String m, int elementSize) {
			this.mnemonic = m;
			this.elementSize = elementSize;
		}

		@Override
		public String mnemonic () {
			return this.mnemonic;
		}

		@Override
		public int arrayElementSize () {
			return this.elementSize;
		}
	}

	public RadialDistortion () {
		super(ShaderLoader.fromFile("screenspace", "radial-distortion"));
		rebind();
		setDistortion(0.3f);
		setZoom(1f);
	}

	public void setDistortion (float distortion) {
		this.distortion = distortion;
		setParam(Param.Distortion, this.distortion);
	}

	public void setZoom (float zoom) {
		this.zoom = zoom;
		setParam(Param.Zoom, this.zoom);
	}

	public float getDistortion () {
		return distortion;
	}

	public float getZoom () {
		return zoom;
	}

	@Override
	protected void onBeforeRender () {
		inputTexture.bind(u_texture0);
	}

	@Override
	public void rebind () {
		setParams(Param.Texture0, u_texture0);
		setParams(Param.Distortion, distortion);
		setParams(Param.Zoom, zoom);

		endParams();
	}
}


text:
{% extends "layout.html" %}

{% block page_title %}
Add more information about the location
{% endblock %}

{% block content %}

BETA

What created the charge?

			<form action="08_creation_date" method="GET">

					<fieldset>
						<legend class="visuallyhidden">What created the charge?</legend>

								<input id="reason-1" name="reason-types" type="radio" value="agreement">
								Agreement

								<input id="reason-2" name="reason-types" type="radio" value="certificate">
								Certificate

								<input id="reason-3" name="reason-types" type="radio" value="covenants">
								Covenants

								<input id="reason-4" name="reason-types" type="radio" value="deed">
								Deed

								<input id="reason-5" name="reason-types" type="radio" value="deed-of-modification">
								Deed of modification

								<input id="reason-6" name="reason-types" type="radio" value="notice">
								Notice

								<input id="reason-7" name="reason-types" type="radio" value="order">
								Order

								<input id="reason-8" name="reason-types" type="radio" value="resolution">
								Resolution

								<input id="reason-9" name="reason-types" type="radio" value="scheme">
								Scheme

								<input id="reason-10" name="reason-types" type="radio" value="transfer">
								Transfer

								<input id="reason-11" name="reason-types" type="radio" value="undertaking">
								Undertaking

					</fieldset>

				Continue
			</form>

{% endblock %}


text:
package fr.pizzeria.doa.pizza;

import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
import java.util.stream.Collectors;

import javax.sql.DataSource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallbackWithoutResult;
import org.springframework.transaction.support.TransactionTemplate;

import fr.pizzeria.doa.mapper.PizzaMapper;
import fr.pizzeria.exception.SavePizzaException;
import fr.pizzeria.model.Pizza;

public class PizzaDaoImplJdbcTemplate implements IPizzaDao {
	private JdbcTemplate jdbcTemplate;
	private TransactionTemplate tx;
	Logger LOG = Logger.getLogger(IPizzaDao.class.toString());

	public PizzaDaoImplJdbcTemplate(DataSource datasource, PlatformTransactionManager tx) {
		this.jdbcTemplate = new JdbcTemplate(datasource);
		this.tx = new TransactionTemplate(tx);
	}

	@Override
	public Set<Pizza> findAllPizzas() {
		String sql = "SELECT * FROM PIZZA";
		return this.jdbcTemplate.query(sql, new PizzaMapper()).stream().collect(Collectors.toSet());
	}

	@Override
	public void saveNewPizza(Pizza newPizza) {
		String sql = "INSERT INTO pizza (id, nom, prix, categorie,url_image) VALUES (?, ?, ?, ?, ?)";
		this.jdbcTemplate.update(sql, newPizza.getCode(), newPizza.getNom(), newPizza.getPrix(),
				newPizza.getCategorie().name(), "");
	}

	@Override
	public void updatePizza(String code, Pizza updatePizza) {
		String sql = "UPDATE pizza SET id=?, nom=?, prix=?, categorie=? WHERE id=?";
		this.jdbcTemplate.update(sql, updatePizza.getCode(), updatePizza.getNom(), updatePizza.getPrix(),
				updatePizza.getCategorie().name(), code);
	}

	@Override
	public void deletePizza(String code) {
		String sql = "DELETE FROM pizza WHERE id=?";
		this.jdbcTemplate.update(sql, code);
	}

	@Override
	public boolean transactionInsertPizza(List<Pizza> pizzas) {
		this.tx.execute(new TransactionCallbackWithoutResult() {
			@Override
	        protected void doInTransactionWithoutResult(TransactionStatus transactionStatus) {
		        try {
		        	pizzas.stream().forEach(p -> saveNewPizza(p));
		        } catch (Exception e) {
		            transactionStatus.setRollbackOnly();
		            throw new SavePizzaException(e);
		        }
			}

		});
		return true;
	}

}


text:
<?php

declare(strict_types=1);

namespace Mcfedr\QueueManagerBundle\Driver;

class TestRetryQueueManager extends TestQueueManager
{
}


text:
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ScopedTypeVariables #-}

-----------------------------------------------------------------------------
-- |
-- Module      :  Generics.Regular.Views
-- Copyright   :  (c) 2010 Chris Eidhof
-- License     :  BSD3
--
-- Maintainer  :  chris@eidhof.nl
-- Stability   :  experimental
-- Portability :  non-portable
--
-- Generic generation of 'JSON' values. Note that the generic
-- functions are only defined for record datatypes that contain
-- a single constructor.
--
-- The code that is generated by 'gto' should be parseable by 'gfrom'.
-----------------------------------------------------------------------------
module Generics.Regular.JSON (gfrom, gto, GJSON) where

import Text.JSON
import Generics.Regular
import Generics.Regular.Extras
import Control.Applicative
import Data.List (unionBy)

-- | The function 'gfrom' tries to parse a 'JSValue'. The 'Result' datatype is used for error-messages if parsing fails.
gfrom :: (Regular a, GJSON (PF a)) => JSValue -> Result a
gfrom = fmap to . gfrom'

-- | The function 'gto' generates a 'JSValue' for all types that are an instance of 'GJSON'.
gto :: (Regular a, GJSON (PF a)) => a -> JSValue
gto = gto' . from

-- | This class is used for both generation and parsing of 'JSON'.
class GJSON f where
  gto'   :: f a -> JSValue
  gfrom' :: JSValue -> Result (f a)

instance GJSON U where
  gto'   U = JSNull
  gfrom' JSNull = Ok U
  gfrom' _      = Error "could not parse U"

instance JSON a => GJSON (K a) where
  gto' (K x) = showJSON x
  gfrom' x = K <$> readJSON x

instance (GJSON (S s f), GJSON g) => GJSON ((S s f) :*: g) where
  gto' (a :*: b) = merge (gto' a) (gto' b)
  gfrom' x       = do (:*:) <$> gfrom' x <*> gfrom' x

instance (Selector s, GJSON f) => GJSON (S s f) where
  gto' s@(S x) = JSObject $ toJSObject [(humanReadable $ selName s, gto' x)]
  gfrom' (JSObject obj) = let s = humanReadable $ selName (undefined :: S s f x)
                         in case valFromObj s obj of
                                 Ok x    -> S <$> gfrom' x
                                 Error e -> Error e
  gfrom' x              = Error $ "Expected json object, got " ++ show x

instance GJSON f => GJSON (C c f) where
  gto' (C x) = gto' x
  gfrom' x   = C <$> gfrom' x

merge :: JSValue -> JSValue -> JSValue
merge (JSObject l) (JSObject r) = JSObject (toJSObject $ mergeList (fromJSObject l) (fromJSObject r))
merge _            _            = error "Cannot merge objects."

mergeList :: [(String, JSValue)] -> [(String, JSValue)] -> [(String, JSValue)]
mergeList = unionBy (\x y -> fst x == fst y)


text:
import * as React from "react";

export interface PanelProps {
    label: string;
}

export class Panel extends React.Component<PanelProps, any> {

    public render(): React.ReactElement<any> {
        let label: string = this.props.label || "please select a label";
        return (

{label}{this.props.children}

        );
    }
}


text:
'use strict';

var express = require('express');
var controller = require('./search.controller');

var router = express.Router();

router.get('/', controller.search);

module.exports = router;


text:
//
// Copyright (c) Microsoft.  All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

namespace Microsoft.Azure.Commands.Network.Models
{
    using Newtonsoft.Json;
    using System;
    using System.Collections.Generic;

    public class PSConnectivityInformation
    {
        [JsonProperty(Order = 1)]
        public List<PSConnectivityHop> Hops { get; set; }

        [JsonProperty(Order = 1)]
        public string ConnectionStatus { get; set; }

        [JsonProperty(Order = 1)]
        public int? AvgLatencyInMs { get; set; }

        [JsonProperty(Order = 1)]
        public int? MinLatencyInMs { get; set; }

        [JsonProperty(Order = 1)]
        public int? MaxLatencyInMs { get; set; }

        [JsonProperty(Order = 1)]
        public int? ProbesSent { get; set; }

        [JsonProperty(Order = 1)]
        public int? ProbesFailed { get; set; }

        [JsonIgnore]
        public string HopsText
        {
            get { return JsonConvert.SerializeObject(this.Hops, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
        }
    }
}


text:
package org.neo4j.kernel.api.exceptions.schema;

import org.neo4j.kernel.api.TokenNameLookup;
import org.neo4j.kernel.api.constraints.PropertyConstraint;
import org.neo4j.kernel.api.exceptions.Status;

import static java.lang.String.format;

public class NoSuchConstraintException extends SchemaKernelException
{
    private final PropertyConstraint constraint;
    private final static String message = "No such constraint %s.";

    public NoSuchConstraintException( PropertyConstraint constraint )
    {
        super( Status.Schema.NoSuchConstraint, format( message, constraint ) );
        this.constraint = constraint;
    }

    @Override
    public String getUserMessage( TokenNameLookup tokenNameLookup )
    {
        return format( message, constraint.userDescription( tokenNameLookup ) );
    }
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Statistics of compound:prt in UD_Zaar-Autogramm</title>
    <link rel="root" href=""/>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../../css/jquery-ui-redmond.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style-vis.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/hint.css"/>

          home

          edit page
          issue tracker

          <gcse:search></gcse:search>

        This page pertains to UD version 2.

            It appears that you have Javascript disabled.
            Please consider enabling Javascript for this page to see the visualizations.

Treebank Statistics: UD_Zaar-Autogramm: Relations: compound:prt

This relation is a language-specific subtype of <tt>compound</tt>.
There are also 1 other language-specific subtypes of compound: <tt>compound:redup</tt>.

131 nodes (2%) are attached to their parents as compound:prt.

131 instances of compound:prt (100%) are left-to-right (parent precedes child).
Average distance between parent and child is 1.90076335877863.

The following 1 pairs of parts of speech are connected with compound:prt: <tt>VERB</tt>-<tt>PART</tt> (131; 100% instances).

# visual-style 9	bgColor:blue
# visual-style 9	fgColor:white
# visual-style 5	bgColor:blue
# visual-style 5	fgColor:white
# visual-style 5 9 compound:prt	color:blue
1	má	wò	AUX	_	Number=Plur|Person=1|Tense=Fut	2	aux	_	AlignBegin=46593|AlignEnd=46752|Gloss=1PL.FUT
2	ngêláŋ	ngeláŋ	VERB	_	VerbForm=Fin	0	root	_	AlignBegin=46752|AlignEnd=46911|Gloss=stroll
3	//=	//=	PUNCT	_	_	5	punct	_	AlignBegin=46911|AlignEnd=47071|Gloss=PUNCT
4	má	wò	AUX	_	Number=Plur|Person=1|Tense=Fut	5	aux	_	AlignBegin=47071|AlignEnd=47283|Gloss=1PL.FUT
5	yê	yel	VERB	_	VerbForm=Fin	2	parataxis	_	AlignBegin=47283|AlignEnd=47389|Gloss=see
6	=ʃí	=ʃí	PRON	_	Number=Plur|Person=3|PronType=Prs	5	obj	_	AlignBegin=47389|AlignEnd=47495|Gloss=3PL.OBJ
7	kàːsuwa	kàːsuwa	NOUN	_	_	5	dep	_	AlignBegin=47495|AlignEnd=47707|Gloss=market
8	Kímsə̂y	Kímsə	PROPN	_	Deixis=Remt	7	compound	_	AlignBegin=47707|AlignEnd=47813|Gloss=Kimsə
9	mə́n	mə́n	PART	_	_	5	compound:prt	_	AlignBegin=47919|AlignEnd=48131|Gloss=BEN
10	kóː	kóː	CCONJ	_	_	11	cc	_	AlignBegin=48342|AlignEnd=48482|Gloss=or
11	yi	yi	VERB	_	VerbForm=Fin	5	conj	_	AlignBegin=48482|AlignEnd=48622|Gloss=be
12	wuriː	wuriː	ADV	_	PronType=Int	11	xcomp	_	AlignBegin=48622|AlignEnd=48762|Gloss=how
13	?//	?//	PUNCT	_	_	2	punct	_	AlignBegin=48762|AlignEnd=48902|Gloss=PUNCT

© 2014–2021
            Universal Dependencies contributors.
            Site powered by Annodoc and brat
.


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.vaadin.addons</groupId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>pom</packaging>

    <name>Rotated Marker Leaflet plugin wrappers for Java (Vaadin) and GWT, parent POM for loosely coupled projects</name>

    <licenses>
        <license>
            <name>Apache License 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
        </license>
    </licenses>

    <contributors>
        <contributor>
            <name>Octavian Marcu</name>
            <organization></organization>
            <email></email>
        </contributor>
    </contributors>

    <properties>
        <project.build.encoding>UTF-8</project.build.encoding>
    </properties>

    <artifactId>v-leaflet-rotatedmarker-parent</artifactId>
    <modules>
        <module>g-leaflet-rotatedmarker</module>
        <module>v-leaflet-rotatedmarker</module>
    </modules>
</project>


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2016 Stormpath, Inc.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<configuration>
    <include resource="org/springframework/boot/logging/logback/base.xml"/>
    <logger name="com.stormpath" level="INFO"/>
</configuration>


text:
<!doctype html>

    <meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="Simple CSS for HTML forms - borrowed from purecss.io." />

    <title>Forms – Pure</title>

	<link rel="stylesheet" href="../css/font-awesome.css" />
	<link rel="stylesheet" href="../css/dc.pui.css" />

	<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Raleway:200" />

Panel Group

Panel with panel-default class

Panel Content

Panel with panel-primary class

Panel Content

Panel with panel-success class

Panel Content

Panel with panel-info class

Panel Content

Panel with panel-warning class

Panel Content

Panel with panel-danger class

Panel Content

Solo Panel

Panel with panel-info class

Panel Content

Pure Form

Form in a panel

			<form class="pure-form pure-form-aligned">

					Username
					<input id="name" type="text" placeholder="Username">

					Password
					<input id="aligned-password" type="password" placeholder="Password">

					Email Address
					<input id="aligned-email" type="email" placeholder="Email Address">

					<button type="submit" class="pure-button pure-button-primary">Submit</button>

			</form>

Labels

Labels in a panel

			Default
			Primary
			Success
			Info
			Warning
			Danger

Changing the icon font location

Bootstrap assumes icon font files will be located in the ../fonts/ directory, relative to the compiled CSS files. Moving or renaming those font files means updating the CSS in one of three ways:

Change the @icon-font-path and/or @icon-font-name variables in the source Less files.

Utilize the relative URLs option provided by the Less compiler.

Change the url() paths in the compiled CSS.

Use whatever option best suits your specific development setup.

Accessible icons

Modern versions of assistive technologies will announce CSS generated content, as well as specific Unicode characters. To avoid unintended and confusing output in screen readers (particularly when icons are used purely for decoration), we hide them with the aria-hidden="true" attribute.

If you're using an icon to convey meaning (rather than only as a decorative element), ensure that this meaning is also conveyed to assistive technologies – for instance, include additional content, visually hidden with the .sr-only class.

If you're creating controls with no other text (such as a <button> that only contains an icon), you should always provide alternative content to identify the purpose of the control, so that it will make sense to users of assistive technologies. In this case, you could add an aria-label attribute on the control itself.

Don't mix with other components

Icon classes cannot be directly combined with other components. They should not be used along with other classes on the same element. Instead, add a nested <span> and apply the icon classes to the <span>.

Complex Form

Form in a panel

	<form class="dc-pui-form">

				Username (invalid + instr)

					Username formatting info

				<input id="name" type="text" placeholder="Username"  />

					Username validation

				Username (invalid)

				<input id="name" type="text" placeholder="Username"  />

					Username validation

				Username (valid + instr)

					Username formatting info

				<input id="name" type="text" placeholder="Username"  />

					Username validation

				Username (valid)

				<input id="name" type="text" placeholder="Username"  />

					Username validation

				Email (invalid)

				$
				<input id="email" type="text" placeholder="Email" />

					Email validation

				Email (valid)

				$
				<input id="email" type="text" placeholder="Email" />

					Email validation

				Phone (label)

				555.888.3333

			Instructions mixed in.

				Phone (readonly)

				<input id="email" type="text" placeholder="Phone" value="555.888.3333" readonly="readonly" />

					Instructions mixed in, aligned.

				Phone (disabled)

				<input id="email" type="text" placeholder="Phone" disabled="disabled" />

				Add-ons (invalid)

				<input id="email" type="text" placeholder="Email"  />

				@designcraft.io

					add-on validation

				Add-ons (valid)

				<input id="email" type="text" placeholder="Email"  />

				@designcraft.io

					add-on validation

				Add-ons (valid + stacked)

				<input id="email" type="text" placeholder="Email"  />

					add-on validation

				Button Group

				Button Group

				Name (valid)

				<input id="first" placeholder="First" class="dc-pui-input-40"  />
				<input id="mid" placeholder="M" class="dc-pui-input-10"  />
				<input id="last" placeholder="Last"  class="dc-pui-input-40" />

					name validation

				Name (valid + stacked)

				<input id="first" placeholder="First" class="dc-pui-input-40"  />
				<input id="mid" placeholder="M" class="dc-pui-input-10"  />
				<input id="last" placeholder="Last"  class="dc-pui-input-40" />

					name validation

	            Password

				<input id="password" type="password" placeholder="Password"  />
				?

					Password validation

	            State

				<select id="state">
					<option>AL</option>
					<option>CA</option>
					<option>IL</option>
				</select>

					State validation

	            Comment

				<textarea id="comment" name="comment" class="dc-pui-textarea"></textarea>

					Comment validation

	            Comm

					<input type="radio" id="comm1" name="CertInterest" value="No" />
					 Not Interested

					<input type="radio" id="comm2" name="CertInterest" value="Yes" />
					 Interested

					<input type="radio" id="comm3" name="CertInterest" value="Maybe" />
					 Maybe

					Comm validation

	            Comm b

					<input type="radio" id="comm1b" name="CertInterestb" value="No" />
					 Not Interested

					<input type="radio" id="comm2b" name="CertInterestb" value="Yes" />
					 Interested

					<input type="radio" id="comm3b" name="CertInterestb" value="Maybe" />
					 Maybe

					Comm validation

	            Comm 2

					<input type="checkbox" id="comm21" name="CertInterest2" value="No" />
					   Not Interested

					<input type="checkbox" id="comm22" name="CertInterest2" value="Yes" />
					   Interested

					<input type="checkbox" id="comm23" name="CertInterest2" value="Maybe" />
					   Maybe

					Comm validation

	            Comm 2b

					<input type="checkbox" id="comm21b" name="CertInterest2b" value="No" />
					  Not Interested

					<input type="checkbox" id="comm22b" name="CertInterest2b" value="Yes" />
					  Interested

					<input type="checkbox" id="comm23b" name="CertInterest2b" value="Maybe" />
					  Maybe

					Comm validation

	            Comm 2c (invalid + inst)

					Username formatting info

					<input type="checkbox" id="comm21c" name="CertInterest2b" value="No" />
					  Not Interested

					Comm validation

				<button type="submit" class="pure-button pure-button-primary">Submit</button>

	</form>