Skip to content

Instantly share code, notes, and snippets.

@mohhasbias
mohhasbias / index.html
Created Mar 31, 2017
Rotating Cube and Browser Events in Three.js
View index.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>three.js canvas - geometry - cube</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<style type="text/css">
body {
background-color: #f0f0f0;
margin: 0px;
@mohhasbias
mohhasbias / .gitignore
Last active Mar 8, 2017
Load images from JSON
View .gitignore
node_modules
View .block
license: mit
height: 500
border: no
@mohhasbias
mohhasbias / .block
Created Feb 26, 2017
multi line drawing
View .block
license: mit
height: 300
border: no
@mohhasbias
mohhasbias / .block
Last active Feb 26, 2017
Update starting point on mousedown
View .block
license: mit
height: 300
border: no
@mohhasbias
mohhasbias / .block
Last active Feb 26, 2017
SVG line using D3
View .block
license: mit
@mohhasbias
mohhasbias / .block
Last active Feb 26, 2017
Update endpoint on mouse drag
View .block
license: mit
height: 300
border: no
@mohhasbias
mohhasbias / .block
Last active Feb 26, 2017
update endpoint on mousemove
View .block
license: mit
height: 300
border: no
@mohhasbias
mohhasbias / Skrill.php
Created Jul 28, 2013
Skrill payment gateway adapter for BoxBilling
View Skrill.php
<?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 / 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');
}
});