Skip to content

Instantly share code, notes, and snippets.

Moh Hasbi Assidiqi mohhasbias

Block or report user

Report or block mohhasbias

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mohhasbias
mohhasbias / site.js
Created May 1, 2013
example on using modified orbit foundation and lazyload. notice that each time the slide change, it triggers the lazyload to load the image.
View site.js
$('.products-slider').orbit({
fluid: "1100x350",
timer: false,
afterSlideChange: function(){
this.$slides
.eq(this.activeSlide)
.find('img.lazyload').trigger('appear');
}
});
View jquery.foundation.orbit.modified.js
/*
* jQuery Orbit Plugin 1.4.0
* www.ZURB.com/playground
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
View contoh automated feature testing
require "spec_helper"
describe "user registration" do
it "allows new users to register with an email address and password" do
visit "/users/sign_up"
fill_in "Email", :with => "alindeman@example.com"
fill_in "Password", :with => "ilovegrapes"
fill_in "Password confirmation", :with => "ilovegrapes"
You can’t perform that action at this time.