I hereby claim:
- I am risyandi on github.
- I am risyandi (https://keybase.io/risyandi) on keybase.
- I have a public key whose fingerprint is 0232 BECC 5844 F032 F841 9F79 7BEF 6DAF F960 F13F
To claim this, I am signing this object:
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
// Input words | |
var words = "Ketua DPP Partai Hanura Inas Nasrullah Zubir mengungkapkan, dalam mitos Jawa, genderuwo merupakan bangsa jin atau makhluk halus yang berwujud manusia. Genderuwo memiliki tubuh besar dan suka menghisap darah manusia"; | |
// ways 1 | |
// breaks words into tokenize with define spaces | |
var words_temp = [''], | |
indexj = 0; | |
function tokenize(words, delimeter) { | |
for (let index = 0; index < words.length; index++) { | |
// appear indexing |
function asterikPyramid(rows, symbol1, symbol2) { | |
for (let index = 0; index < rows; index++) { | |
// console.log(index, "index"); | |
// this is step one to print empty spaces | |
var space = ""; | |
for (let indexj = 0; indexj < (rows - index - 1); indexj++) { | |
// console.log(indexj, "indexj"); | |
space += symbol2; | |
} |
function asterikPyramidMiddle(rows, symbol1, symbol2, symbol3) { | |
for (let index = 0; index < rows; index++) { | |
console.log(index, "identity-row"); | |
// (1) this is step one print symbol blank | |
var space = ""; | |
for (let indexj = 0; indexj < (rows - index - 1); indexj++) { | |
console.log(index, "value-loops-step1"); | |
console.log(indexj, "print-col-step1"); | |
space += symbol3; |
// Declare a global variable for the function reverse() | |
var words = "Ketua DPP Partai Hanura Inas Nasrullah Zubir mengungkapkan, dalam mitos Jawa, genderuwo merupakan bangsa jin atau makhluk halus yang berwujud manusia. Genderuwo memiliki tubuh besar dan suka menghisap darah manusia"; | |
// function reverse with decrement | |
function Reverse(words) { | |
var wordsLength = words.length; | |
// console.log(wordsLength, "words length"); | |
var reverseWords = ""; | |
for (let index = wordsLength - 1; index >= 0; index--) { | |
reverseWords += words[index]; |
// Include gulp | |
var gulp = require('gulp'); | |
// Include Our Plugins | |
var sass = require('gulp-sass'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var rename = require('gulp-rename'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var minifycss = require('gulp-minify-css'); |
I hereby claim:
To claim this, I am signing this object:
<!-- | |
catatan : | |
1. untuk menampilkan modal dialog di bootstrap tanpa menggunakan javascript. bisa menggunakan atribute. | |
<data-toggle="modal" data-target="#dialog"> | |
2. dan untuk menutup kembali dialog dengan menambahkan atribute | |
<data-dismiss="modal"> | |
created by @Risyandi | |
--> | |
<!DOCTYPE html> |
/* | |
* catatan : untuk memperbaiki bugs di appenChild ini ada 2 cara yaitu | |
* 1. bisa mengubah method get element nya dengan method | |
* var allDivs = document.querySelectorAll("div"); | |
* 2. menggunakan method yang sama akan tetapi membuat variable tambahan untuk menampung sebuah length, dan hasil tampungan | |
* tersebut bisa digunakan sebagai jumlah limit loop nya. | |
* var allDivs = document.getElementsByTagName("div"); | |
* var length = allDivs.length; | |
* created by @Risyandi | |
*/ |