Skip to content

Instantly share code, notes, and snippets.

View mohhasbias's full-sized avatar

Moh Hasbi Assidiqi mohhasbias

View GitHub Profile
@mohhasbias
mohhasbias / index.html
Last active August 29, 2015 14:17
jQuery Mobile Web App
<!doctype html>
<html>
<head>
<title>First Mobile App</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Welcome</h1>
<p>This is an awesome mobile app ever.</p>
<p>&copy; 2015</p>
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"
@mohhasbias
mohhasbias / jquery.foundation.orbit.modified.js
Last active December 16, 2015 20:59
modified foundation orbit
/*
* 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 ($) {
@mohhasbias
mohhasbias / site.js
Created May 1, 2013 17:05
example on using modified orbit foundation and lazyload. notice that each time the slide change, it triggers the lazyload to load the image.
$('.products-slider').orbit({
fluid: "1100x350",
timer: false,
afterSlideChange: function(){
this.$slides
.eq(this.activeSlide)
.find('img.lazyload').trigger('appear');
}
});
@mohhasbias
mohhasbias / Skrill.php
Created July 28, 2013 10:22
Skrill payment gateway adapter for BoxBilling
<?php
/**
* BoxBilling
*
* LICENSE
*
* This source file is subject to the license that is bundled
* with this package in the file LICENSE.txt
* It is also available through the world-wide-web at this URL:
* http://www.boxbilling.com/LICENSE.txt
@mohhasbias
mohhasbias / .block
Last active February 26, 2017 00:10
update endpoint on mousemove
license: mit
height: 300
border: no
@mohhasbias
mohhasbias / .block
Last active February 26, 2017 03:25
Update endpoint on mouse drag
license: mit
height: 300
border: no
@mohhasbias
mohhasbias / .block
Last active February 26, 2017 04:17
SVG line using D3
license: mit
@mohhasbias
mohhasbias / .block
Last active February 26, 2017 08:57
Update starting point on mousedown
license: mit
height: 300
border: no
@mohhasbias
mohhasbias / .block
Created February 26, 2017 16:48
multi line drawing
license: mit
height: 300
border: no