Skip to content

Instantly share code, notes, and snippets.

View arschmitz's full-sized avatar

Alexander Schmitz arschmitz

View GitHub Profile
a {
    @include element('a');
}

body {
    @include element('body');
}

footer {
/**
 * 1. Force a vertical scrollbar - http://cbrac.co/163MspB
 * 2. `border-box`... ALL THE THINGS - http://cbrac.co/RQrDL5
 * 3. Ensure <html> always fills at least the entire viewport height
 * NOTE: Use `text-rendering` with caution - http://cbrac.co/SJt8p1
 * NOTE: Avoid the webkit anti-aliasing trap - http://cbrac.co/TAdhbH
 * NOTE: IE for Windows Phone 8 ignores `-ms-text-size-adjust` if the
 *       viewport <meta> tag is used - http://cbrac.co/1cFrAvl
 */

How it works

Cascade framework provides the following normalised default behavior for the section, article, header, footer, aside and nav elements, to make it easier for these elements to use them for defining your grid :

  • block display
  • clearfixing
  • left float
  • minimum height of 1px
  • 100% width
  • 100% max-width
/* ================================================================== *\
   Grids ($grids)
\* ================================================================== */

/**
 * Usage:
 *
 * <div class="grid">
 *     <div class="grid-item one-third">
var original;
QUnit.module( "Qunit-assert-classes ensure failures", {
setup: function() {
original = QUnit.push;
QUnit.push = function( result, actual, expected, message ){
original.call( this, !result, actual, expected, message );
};
},
teardown: function() {
$ phantomjs phantom_crash.js
Loading a web page
PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://code.google.com/p/phantomjs/issues/entry with the crash dump file attached: /tmp/8D84DEA5-3C4A-43AA-AC34-078B8B692B76.dmp
$(function(){
$( ".nav-panel" ).panel();
$( ".nav-list" ).listview();
});
OR...
$(function(){
$( "body" ).enhanceWithin();
});
// mobile extension
$.widget( "ui.textinput", $.ui.textinput, {
_enhance: function(){
if ( this.options.enhanced ) {
this._super();
} else {
this.parent = this.element.parent();
}
}
});

spider.js

A command line tool for crawling a webstite for dead links, permeant and or fatal redirects, resource load issues, and script errors. It is based on the casperJS navigation scripting and testing utility.

Command line options

--url ( Required )

Type: String Default value: 'http://localhost'

a valid url for a website. The url willThis url may be local or remote.