Skip to content

Instantly share code, notes, and snippets.

🌴
Everyday is vacation

Risyandi Risyandi

Block or report user

Report or block Risyandi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Risyandi
Risyandi / keybase.md
Created May 1, 2019
this is a my identity on keybase.io
View keybase.md

Keybase proof

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:

@Risyandi
Risyandi / gulpfile.js
Last active Feb 17, 2019 — forked from darylldoyle/gulpfile.js
This is a default code for automation gulp
View gulpfile.js
// 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');
@Risyandi
Risyandi / reverseTokenizeString.js
Last active Nov 28, 2018
This is a assignment for Reverse Tokenize String Program using javascript
View reverseTokenizeString.js
// 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];
@Risyandi
Risyandi / asterikPyramidMiddle.js
Created Nov 15, 2018
This is assignment for Asterik Pyramid Program Finding Middle of Coloumn using javascript
View asterikPyramidMiddle.js
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;
@Risyandi
Risyandi / asterikPyramid.js
Created Nov 14, 2018
This is assignment for Asterik Pyramid Program using javascript
View asterikPyramid.js
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;
}
@Risyandi
Risyandi / tokenizeString.js
Last active Nov 12, 2018
This is a assignment for Tokenize String Program using javascript
View tokenizeString.js
// 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
@Risyandi
Risyandi / nodeStaticServer.js
Last active Nov 12, 2018 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
View nodeStaticServer.js
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);
@Risyandi
Risyandi / criteoTags.js
Last active Nov 12, 2018
This is a sample tags script from criteo, the script should be implement on DFP
View criteoTags.js
/* This script adding after tags DFP
* googletag.defineSlot('/95250053/LIPUTAN6_LB_HEALTH', [[728, 90], [970, 90]], 'div-gpt-ad-1435336898160-0').addService(googletag.pubads());
*/
var crtg_split = (crtg_content || '').split(';');
var pubads = googletag.pubads();
for (var i=1;i<crtg_split.length;i++){
pubads.setTargeting("" + (crtg_split[i-1].split('='))[0] + "", "" + (crtg_split[i-1].split('='))[1] + "");
}
You can’t perform that action at this time.