Skip to content

Instantly share code, notes, and snippets.

View mohdhazwan's full-sized avatar
☠️
Always on vacation

mohdhazwan

☠️
Always on vacation
  • Malaysia
View GitHub Profile
@mohdhazwan
mohdhazwan / bursaman
Created September 16, 2020 00:39
bursaman
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © cartaman
//@version=4
strategy("BURSAMAN", shorttitle= '💰', initial_capital = 1000)
// Backtest
backtest = false
tutup = close
buka = open
@mohdhazwan
mohdhazwan / App.css
Last active August 15, 2017 07:27
simple Lazy Load written ES6 for React / Create React App
img {
opacity: 1;
transition: opacity 0.3s;
}
img[data-src] {
opacity: 0.5;
background: ANYCOLOR;
width: ANYHEIGHT;
height: ANYHEIGHT;
@mohdhazwan
mohdhazwan / widget.js
Created July 25, 2017 02:49
Embeddable Widget JS Boilerplate
(function () {
var scriptName = "embed.js"; //name of this script, used to get reference to own tag
var jQuery; //noconflict reference to jquery
var jqueryPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js";
var jqueryVersion = "1.8.3";
var scriptTag; //reference to the html script tag
/******** Get reference to self (scriptTag) *********/
var allScripts = document.getElementsByTagName('script');