Skip to content

Instantly share code, notes, and snippets.

View azendal's full-sized avatar

Fernando Trasviña azendal

View GitHub Profile
@azendal
azendal / Questions
Created July 14, 2011 21:46
Magma Rails Give-away
Day Job: Project Manager @ freshout
Open Source contribution (if any): Elastic, Argon, Neon, Tellurium, Dysprosium, and some more i cant remember
Tell me about your experience with Ruby/Rails: Coding on many different projects for several years going from fast several hours project, to long project that go for several years of continuous development
How do you use GitHub: open source and closed source project, sharing gists and sharing code with the world
Favorite luchador(es): aluche
@azendal
azendal / gist:1080511
Created July 13, 2011 15:22
porque no puedo mandar llamar un metodo privado con self
class A
#defining static methods
instance_eval do
def x
'x'
end
instance_eval do
private
def private_m
@azendal
azendal / gist:118327
Created May 26, 2009 22:14
Elastic < 2.0 Example
<div class="unit two-columns same-height" style="background:#ffa500;">
<div class="column">
<div class="container" style="height:200px;">
first column with
</div>
</div>
<div class="column">
<div class="unit">
some content
</div>
.elastic-gallery .thumbnail
{
float:left;
padding:1px;
}
.elastic-gallery .image
{
position:absolute;
top:0;
<div class="unit elastic-gallery">
<div class="container horizontal-center" style="width:395px; border:solid 1px grey; padding:5px;">
<div class="unit">
<div class="container" style="padding:10px;">
<div class="unit">
<div class="container horizontal-center image-container" style="width:400px; height:240px; position:relative">
<div class="unit image">
<img src="1.jpg" width="375" height="234" title="" />
</div>
</div>
jQuery(function($){
$('.elastic-gallery').each(function(){
var gallery = this;
$('.right', this).click(function(){
$('.thumbnails-display-container', gallery).animate({
'scrollLeft' : ( $('.thumbnails-display-container', gallery).attr('scrollLeft') + $('.thumbnails-display-container', gallery).width() )
}, 500, 'linear');
});
$('.left', this).click(function(){
$('.thumbnails-display-container', gallery).animate({