Skip to content

Instantly share code, notes, and snippets.

.cleared:before, .cleared:after {
content: '';
display: table; }
.cleared:after {
clear: both; }
.cleared {
zoom: 1; }
@for $n from 1 through 7
#plantilla-#{$n}
:left 7em*$n
:-webkit-transform rotate(10deg*$n/(1.61803399*$n*$n))
@rnmp
rnmp / gist:1115618
Created July 30, 2011 15:08
Sublime Text build system for SASS.
{
"cmd": ["sass", "$file_name", "$file_base_name.css"],
"working_dir": "$file_path",
"selector": "source.sass"
}
function ip {
port=$1
if [[ port -eq '' ]]; then
echo \"http://$IP/\" copied to clipboard.
echo http://$IP/ | pbcopy
else
echo \"http://$IP:$port/\" copied to clipboard.
echo http://$IP:$port/ | pbcopy
fi
}
@rnmp
rnmp / ie-fallback.haml
Created August 2, 2011 01:12
Haml fallback for IE.
/[if IE]
:javascript
document.body.className += ' ie';
/[if IE 6]
:javascript
document.body.className += ' ie6';
/[if IE 7]
:javascript
document.body.className += ' ie7';
/[if IE 8]
$.fn.popup_handler = function(selector_to_show) {
var self = this;
var target = $(selector_to_show);
target.hide();
var target_shown = false;
var self_class = 'target-shown';
var target_show = function() {
target.show();
target_shown = true;
$(self).addClass(self_class);
$(document).bind('keydown', 'h', function() {
$hex.toggle(function() {
$(this).hide();
}, function() {
$(this).show();
});
});
@rnmp
rnmp / mezzoblue-nav.html
Created March 10, 2012 16:06
Whatever Works
<nav id="nav">
<ul>
<li><a href="#">
....main site nav list....
</a></li>
</ul>
</nav>
@rnmp
rnmp / index.html
Created March 25, 2013 14:50
A CodePen by Rolando Murillo. Vertical and horizontal centering - No width required!
<h1 class="center-x">X</h1>
<h1 class="center-y">Y</h1>
<h1 class="center-xy">XY</h1>
(function(){
var i = 0;
var count = $('.Album.unavailable,.Album.preview').length;
console.log('Found ' + count + ' albums to remove');
var timeout = 0;
$('.Album.unavailable,.Album.preview').each(function(){
var instance_i = i++;
var album = $(this);
album.trigger('mouseover').mouseenter();
album.find('a,div,span,image').trigger('mouseover').mouseenter();