Skip to content

Instantly share code, notes, and snippets.

@brandonjp
brandonjp / barleyBarHider.js
Created August 21, 2013 18:01
hides the Barley editor until ESC (or whatever key you choose) is pressed 3 times in a sec
function barleyBarHider(keyCode) { // need the keyCode? try whatthekeycode.com
var bb = jQuery('#barley-bar').children('#barley-logo').slideUp().end().hide();
var pressCount = 0;
var keyCode = typeof keyCode==="number" && ~~keyCode>0 ? ~~keyCode : 27; // use ESC key if error or NaN
jQuery(document).keyup(function(e) {
if (e.keyCode == keyCode) {
pressCount++;
if (pressCount==3) bb.show().children('#barley-logo').slideDown();
setTimeout(function(){pressCount=0},1000);
}
@brandonjp
brandonjp / dabblet.css
Created December 16, 2011 16:09 — forked from LeaVerou/dabblet.css
Previewer test
/**
* Previewer test
*/
background: #f06;
background: linear-gradient(left bottom,
hsla(340, 100%, 50%,.7), yellow);
min-width: 100px;
width: 2in;
transition-duration: 6s;
# rails application template for generating customized rails apps
#
# == requires ==
#
# * rails 2.3+, rspec, cucumber, culerity (langalex-culerity gem), machinist
#
# == a newly generated app using this template comes with ==
#
# * working user registration/login via authlogic, cucumber features to verify that it works
# * rspec/cucumber/culerity for testing