Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Mochamad Iqbal Dwi Cahyo mochadwi

I may be slow to respond.
View GitHub Profile

My Portfolio Sites :D

Hello everyone! Mocha here, I'm Web Developer (a Junior Web Developer). Love to sharing my experience, knowledge etc

View 1.html
Enter Chat and press enter
<div><input id=input placeholder=you-chat-here /></div>
Chat Output
<div id=box></div>
<script src=></script>
var box = PUBNUB.$('box'), input = PUBNUB.$('input'), channel = 'chat';
mochadwi / Android Studio .gitignore
Created Jun 9, 2016 — forked from iainconnor/Android Studio .gitignore
A .gitignore for use in Android Studio
View Android Studio .gitignore
# Built application files
# Crashlytics configuations
# Local configuration file (sdk path, etc)
# Gradle generated files
mochadwi / algoritma_sekuensial.pas
Last active Jul 22, 2017
Algoritma Runtunan (Sequence) - Program Nama
View algoritma_sekuensial.pas
// Contoh program menggunakan pascal
{ Judul }
program algoritma_sekuensial;
{ Kamus }
var nama: string;
{ Algoritma }
mochadwi /
Last active Jul 22, 2017
Algoritma Runtunan (Sequence) - Pseudocode Sequence
{ Judul }

{ Kamus }
nama: String

{ Algoritma }
Output('Masukkan nama kamu: ')
Output('Halo, ', nama, '!')
mochadwi /
Created Oct 26, 2016
Install jdk on your macOS using Homebrew
# This will install the latest java available on Homebrew
brew install java
# If you want to install specific version, such as Java 7
# Run this command on your shell
brew install java7
mochadwi /
Last active Oct 26, 2016
How to install jenv-your java environtment manager

What's jEnv ?

jEnv is a command line tool to help you forget how to set the JAVA_HOME environment variable

Installation (OS)

Linux / OS X

$ git clone ~/.jenv
# .git/config, exists in your main repo
[submodule "your/path/to/sub/repo"]
url =
mochadwi / nilai_akhir.cpp
Last active Nov 12, 2016
Tugas Menghitung Nilai Akhir
View nilai_akhir.cpp
//Program mencari nilai akhir
#include <iostream>
#include <string.h>
using namespace std;
// array of siswa
struct student {
string nama, nim, indeks;
double tugas, kuis, uts, uas, hasil;
mochadwi /
Last active Nov 14, 2016
Algoritma Pemilihan (Selection) - Pseudocode 1 Kasus
{ Judul }

{ Kamus }
  angka: Integer
  keterangan: String

{ Algoritma }