Skip to content

Instantly share code, notes, and snippets.

View gusmantap's full-sized avatar
🎯
Focusing

gusmantap

🎯
Focusing
  • Denpasar, Bali.
View GitHub Profile
<center>
<table border="1" width="600" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td colspan="2" valign="top" height="40">
<center>MIDLE TEST</center>
</td>
</tr>
<tr>
<td width="200">
@gusmantap
gusmantap / NODE_OPTIONS.bash
Created November 17, 2019 03:34
Node Increase Space SIZE
export NODE_OPTIONS=--max-old-space-size=8192
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package latihan;
/**
*
* @author Bagus
@gusmantap
gusmantap / Segitiga.java
Created November 15, 2019 06:22
Segitiga piramid
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package latihan;
/**
*
* @author Bagus
// Functionnya
function getImage(url) {
return new Promise(function(resolve, reject) {
var img = new Image();
img.onload = function() {
resolve(url);
};
img.onerror = function() {
reject(url);
};
@gusmantap
gusmantap / axios-fetch-data.js
Created July 24, 2019 09:16
Axios loading data with percentage
let config = {
onUploadProgress: progressEvent => {
let percentCompleted = Math.floor((progressEvent.loaded * 100) / progressEvent.total);
// do whatever you like with the percentage complete
// maybe dispatch an action that will update a progress bar or something
}
}
axios.post('/path/to/post/', data, config)
.then(response => console.log(response));
setTimeout(function(){
businessIllustration.removeClass("out");
setTimeout(function () {
// Logo In to Canvas Editor
logo.removeClass("out");
setTimeout(function () {
// Logo in to Canvas Editor
businessName.removeClass("out");
setTimeout(function () {
// Transition transorm set -40% left and right title
var canvas = document.querySelector("#logo-40 canvas");
var detail = {
icon: {
src: "./svg/icon-3.svg",
x: 186,
y: 84,
width: 192,
height: 164,
color_1: "#111111",
var MarketingCommunication = function(elem){
i = 0;
setInterval(function(){
var current = i;
var before = (current - 1) == -1 ? (elem.length - 1) : (current - 1);
var after = current + 1;
<div class="side-editor">
<div class="header-editor">
CONTENU
</div>
<div class="side-body-editor">
<div class="choose-content">
<h4>En-tête de lettre</h4>
<ul>
<li>
<div class="icon">