Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Mochamad Iqbal Dwi Cahyo mochadwi

💭
I may be slow to respond.
View GitHub Profile
View readme.md

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=http://cdn.pubnub.com/pubnub.min.js></script>
<script>(function(){
var box = PUBNUB.$('box'), input = PUBNUB.$('input'), channel = 'chat';
PUBNUB.subscribe({
@mochadwi
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
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files
@mochadwi
mochadwi / jdk_installation.sh
Created Oct 26, 2016
Install jdk on your macOS using Homebrew
View jdk_installation.sh
# 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
mochadwi / jenv.md
Last active Oct 26, 2016
How to install jenv-your java environtment manager
View jenv.md

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 https://github.com/gcuisinier/jenv.git ~/.jenv
View main-git-config.sh
# .git/config, exists in your main repo
[submodule "your/path/to/sub/repo"]
url = git@domain.com:user/repo.git
@mochadwi
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
mochadwi / kasus_1.pas
Last active Nov 14, 2016
Algoritma Pemilihan (Selection) - Program 1 Kasus
View kasus_1.pas
program kasus_1;
var
angka: int;
keterangan: string;
begin
write('Masukkan angka: ');
readln(angka);
@mochadwi
mochadwi / kasus_2.pas
Last active Nov 14, 2016
Algoritma Pemilihan (Selection) - Program 2 Kasus
View kasus_2.pas
program kasus_1;
var
a, b: int;
keterangan: string;
begin
write('Masukkan angka ke-1: ');
readln(a);
@mochadwi
mochadwi / kasus_2.md
Last active Nov 14, 2016
Algoritma Pemilihan (Selection) - Pseudocode 2 Kasus
View kasus_2.md
{ Judul }
  Membandingkan_dua_nilai

{ Kamus }
  a, b: Integer
  keterangan: String

{ Algoritma }
  Input(a, b);