Skip to content

Instantly share code, notes, and snippets.

View markbrown4's full-sized avatar

Mark Brown markbrown4

View GitHub Profile
@markbrown4
markbrown4 / dabblet.css
Created August 1, 2012 11:26
webkit y u know 1px rule with linear-gradient?
/**
* webkit y u know 1px rule with linear-gradient?
*/
div {
background: #eee;
height: 650px;
background-image: linear-gradient(
transparent,
transparent 50px,
var Controls = {
init: function (container) {
// Matches "control-something"
var typeRegex = /control-([a-z0-9\-]+)(\s|$)/i;
container.select('.init').each(function (el) {
var control_name = typeRegex.exec(el.className)[1].camelize().ucfirst();
try {
this.createnewControl(control_name, el);
/* 1 - keep js separate */
// these are the same but #2 can be passed around.
function myFunc(a) {
}
var myFunc = function(a) {
}