Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
@kaleb
kaleb / designer.html
Created July 10, 2014 20:03
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="kzh-typeahead">
<template>
<style>
:host {
position: absolute;
<!DOCTYPE html>
<html>
<head>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" />
<meta charset=utf-8 />
<title>Form Accessibility</title>
</head>
<body>
<div class="container">
<form class="form-horizontal" action="javascript:void 0">
.menu {
background-color:white;
border:1px solid red;
}
@kaleb
kaleb / dabblet.css
Created September 17, 2013 20:25
Untitled
[type=radio] {
display:none;
}
span {
cursor: pointer;
text-align: center;
padding:15px;
background-color: #eee;
border-radius: 100px;
@kaleb
kaleb / dabblet.css
Created September 17, 2013 20:21
Untitled
[type=radio] {
display:none;
}
span {
cursor: pointer;
text-align: center;
font-family: sans-serif;
font-size: 14px;
font-weight: bold;
@kaleb
kaleb / dabblet.css
Created September 17, 2013 20:21 — forked from colynb/dabblet.css
Radio Button Hack - CSS Only
input[type=radio] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
cursor: pointer;
text-align: center;
font-family: sans-serif;
@kaleb
kaleb / Constructor.js
Created July 1, 2013 13:40
JavaScript Notes for a friend
function Constructor() {
// Private member only accessible w/in constructor
var privateVariable;
// Can access private members
this.privilegedMethod = function() {
//...
};
}
@kaleb
kaleb / fixed-length-regex.jison
Last active December 10, 2015 14:18
The plan is to use this in a html5 form pattern attribute masker http://zaach.github.com/jison/try/ http://jsfiddle.net/kaleb/aWpec/
%{
/*
* code
*/
function xerox(que, quanto) {
var ary = [];
while(quanto--) ary.push(que);
return ary;
}
%}
@kaleb
kaleb / XDG.vim
Last active January 17, 2022 23:16
VIM XDG Configuration
" XDG Environment For VIM
" =======================
"
" References
" ----------
"
" - http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
" - http://tlvince.com/vim-respect-xdg
"
if empty($XDG_CACHE_HOME)