Skip to content

Instantly share code, notes, and snippets.

View davetayls's full-sized avatar

Dave Taylor davetayls

View GitHub Profile
@davetayls
davetayls / output1
Created July 22, 2011 15:17
output of validator.nu build
dave@daveubuntu:/usr/lib/jvm/java-6-sun/bin$ cd ~/src/checker/
dave@daveubuntu:~/src/checker$ sudo python build/build.py build
[sudo] password for dave:
"hg" pull --update -R build https://bitbucket.org/validator/build/
Not trusting file build/.hg/hgrc from untrusted user dave, group dave
Not trusting file /home/dave/src/checker/build/.hg/hgrc from untrusted user dave, group dave
warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0:7c:b4:75:ce:9b:6c:48:94:56:a1:fe not verified (check hostfingerprints or web.cacerts config setting)
pulling from https://bitbucket.org/validator/build/
warning: bitbucket.org certificate with fingerprint 81:2b:08:90:dc:d3:71:ee:e0:7c:b4:75:ce:9b:6c:48:94:56:a1:fe not verified (check hostfingerprints or web.cacerts config setting)
searching for changes
/*
Lighweight Concertina Plugin
<ul class="concertina">
<li>
<h2>header</h2>
<div>content</div>
</li>
<li>
<h2>header</h2>
<div>content</div>
/*
concertina
---------------------------------------------*/
.concertina {
clear: both;
margin: 12px 0 30px 0;
padding:0;
border-bottom:1px solid #d9d9d9;
}
.concertina:after {
@davetayls
davetayls / changetogreen.css
Created January 4, 2012 15:40
test for @import multiple times
h1 { color: green; }
@davetayls
davetayls / dabblet.css
Created February 17, 2012 13:50
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from {
transform: rotate(0deg)
translate(-150px)
rotate(0deg);
@davetayls
davetayls / jquery.collapseContainer.js
Created October 10, 2012 16:49
simple jquery collapsible container plugin
/**
jQuery.collapseContainer v0.1
Dave Taylor http://the-taylors.org
@license The MIT License (MIT)
*/
/*global define,require */
(function($){
'use strict';
@davetayls
davetayls / index.html
Created January 4, 2013 11:24
A CodePen by Dave Taylor.
<div id="scene"></div>
<script id="world" type="text/x-tmpl">
<span class="box">
<i class="front"></i>
<i class="back"></i>
</span>
</script>
@davetayls
davetayls / String.polyfills.js
Created February 7, 2013 16:42
String Extensions
/**
* Converts a string to Title case
* eg: hello how are you -> Hello How Are You
* @return {String}
*/
String.prototype.toTitleCase = function(){
return this.replace(/\w\S*/g, function(txt){
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
});
};
given([
"1234",
"^",
"<xss>",
"^",
",",
"' --",
"\""
])
.it('the name should be invalid', function(name){
@davetayls
davetayls / jquery.preventDoubleSubmit.js
Created March 5, 2013 16:23
jquery.preventDoubleSubmit
/**
* A jquery plugin to prevent a form being submitted twice
*
* You'd use this on the form itself
* $('form').preventDoubleSubmit();
*/
;(function($) {
function submitHandler(e) {
var $form = $(this);