Skip to content

Instantly share code, notes, and snippets.

View formariz's full-sized avatar

Lucas Formariz formariz

  • TOTVS
  • São Paulo, SP, Brazil
View GitHub Profile
@formariz
formariz / dabblet.css
Created February 6, 2014 20:05
Navigation menu inline right-to-left
/**
* Navigation menu inline right-to-left
*/
* {margin: 0;padding: 0;box-sizing: border-box}
body {font-family: Verdana, Arial;background: #F5F5F5;min-height: 100%;}
nav {
width: 90%;
margin: 100px auto 0 auto;
background-color: #666;
box-shadow: 0 15px 10px -10px rgba(0,0,0, .5)
@formariz
formariz / object.length.js
Created May 15, 2014 19:44
Object length
Object.prototype.length = function() {
var count = 0, key;
for (key in this) {
if (this.hasOwnProperty(key)) count++;
}
return count;
}
/**
* Example of use