This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file | |
* Using CasperJS to run basic code tests on various libraries. | |
*/ | |
// Define the suite of tests and give it the following properties: | |
// - Title, which shows up before any of the pass/fails. | |
// - Number of tests, must be changed as you add tests. | |
// - suite(), which contains all of your tests. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Avoid saving full screenshots and failed comparisons, but always save selector-based references. | |
visual/failed/* | |
visual/reference/* | |
!visual/reference/*baseline* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chris-fk [~/src/pjs] 🌟 phantomjs ../phantomjs/examples/netsniff.js http://fourkitchens.com | yslow --format plain -i basic | |
size: 513.7K (513750 bytes) | |
overall score: B (89) | |
url: http://fourkitchens.com/ | |
# of requests: 23 | |
ruleset: ydefault | |
page load time: 724 | |
chris-fk [~/src/pjs] 🌟 phantomjs yslow.js -i basic -f plain http://fourkitchens.com | |
size: 623.2K (623245 bytes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'rdiscount' | |
require 'nokogiri' | |
words = 0 | |
limit = 2700 | |
content = $stdin.read | |
html = RDiscount.new(content).to_html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
Modernizr.load({ | |
test: Modernizr.json, | |
nope: ['js/vendor/polyfills/json3.js'], | |
callback: function() { alert('fires 2nd'));}, | |
complete: function () { alert('fires 1st')); } | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -- Gmail -- */ | |
/* mailbox selector thing */ | |
.W0F9rd, | |
.J-N-Jz { | |
color: #28701a !important; | |
} | |
/* compose button */ | |
.T-I-KE { | |
background-image: -webkit-gradient(linear,left top,left bottom,from(#4BaD39),to(#48a136)) !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// All lines starting with "//" will not show up in the style.css | |
// However, the following lines inside "/* ... */" WILL show up. | |
// | |
// The visible comment below is there to warn any developer who | |
// opens a .css file that they need to edit the .scss versions ONLY. | |
// But you already know that because you're reading this :) | |
// | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Same as rgba(), in fact, browsers re-map hsla() to rgba() internally, | |
// except IE9 who retains it as hsla | |
Modernizr.addTest('hsla', function() { | |
setCss('background-color:hsla(120,40%,100%,.5)'); | |
return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SASS | |
.header-main ul.inline li { | |
& a:hover { | |
background-color: $dkblue; | |
} | |
&.active-trail a { | |
background-color: $dkblue; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning: Illegal offset type in unset in drupal_get_messages() (line 1791 of /var/www/git-dev.drupal.org/htdocs/includes/bootstrap.inc). | |
Warning: Illegal offset type in isset or empty in drupal_get_messages() (line 1793 of /var/www/git-dev.drupal.org/htdocs/includes/bootstrap.inc). | |
Notice: Undefined variable: search_box in include() (line 21 of /var/www/git-dev.drupal.org/htdocs/sites/all/themes/bluecheese/tpl/page.tpl.php). |