Skip to content

Instantly share code, notes, and snippets.

View juanghurtado's full-sized avatar

Juan G. Hurtado juanghurtado

View GitHub Profile
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd,
q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol,
ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, audio, canvas, command, datalist, details, dialog, embed, figure, footer,
header, hgroup, keygen, mark, meter, nav, output, progress, rp, rt, ruby, section, source,
time, video {
background: transparent;
border: 0;
font-size: 100%;
/* Hide without display: none; */
.internal, .hide {
display: block;
height: 1px;
left: -999em;
position: absolute;
text-indent: -999em;
top: -999em;
visibility: hidden;
width: 1px;
# #Nanoc validation task
#
# To use this validation task you need the w3c_validators gem
# gem install w3c_validators
# and run rake validate on your project root
#
require 'yaml'
require 'w3c_validators'
include W3CValidators
# #WCAG Basic wadus
#
# Using http://achecker.ca/checker/index.php
require 'raakt'
desc "WCAG basic wadus"
task :wcag_validate do
# perform a setup of all our variables
setup
/* Gives "hasLayout" property to an element (only for IE) */
#example .selector {
display: inline-block;
zoom: 1;
}
#selector .example {
/* CSS3 Standard */
border-radius: 4px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
/* Mozilla*/
-moz-border-radius: 4px;
host, port = ENV['http_proxy'].gsub("http://","").split(/:/) if ENV['http_proxy']
jQuery('.something').each(function() {
jQuery('.element', this); // Finds '.element' inside current '.something' iteration
});
// 800x600
javascript:self.resizeTo(800,600);self.moveTo((screen.availWidth-800)/2,(screen.availHeight-600)/2);
// 1024x768
javascript:self.resizeTo(1024,768);self.moveTo((screen.availWidth-1024)/2,(screen.availWidth-768)/2);
// 1280x800
javascript:self.resizeTo(1280,800);self.moveTo((screen.availWidth-1280)/2,(screen.availWidth-800)/2);
@juanghurtado
juanghurtado / jquery-plugin-template.js
Created April 27, 2011 13:33
jQuery Plugin Template
// remember to change every instance of "pluginName"
// to the name of your plugin!
;(function($) {
// here it goes!
$.fn.pluginName = function(method) {
// plugin's default options
var defaults = {