Skip to content

Instantly share code, notes, and snippets.

View rawaludin's full-sized avatar
:octocat:
Fix stuff

Rahmat Awaludin rawaludin

:octocat:
Fix stuff
View GitHub Profile
<?php
echo a;
echo b;
?>
@rawaludin
rawaludin / training material.txt
Created October 5, 2012 07:02
ECB JNA Training Material
Peserta : 20-25 org
Jenis : 60% IT - 40% Administrasi
Waktu : 3 Hari - 8jam/hari
Metode : 30% Teori, 70% Praktek
- Pengenalan ECB JNA Database
- Pre-Assessment (mengisi manual)
- Training untuk Admin part I:
* Konfigurasi (membuat user, mengatur hak akses, mengedit user, menghapus user) [p.Admin 4)
* Membuat survey (import, copy, buat dari nol) [p.Admin 15]+[sample survey]
@rawaludin
rawaludin / gist:3850742
Created October 8, 2012 04:35
Belajar AND dan OR di Java
class BelajarVariable
{
public static void main(String[] args) {
int username = 1;
int password = 45;
if (username>=10 || password<=10) {
System.out.println("Anda berhasil login");
if (username>=10) {
@rawaludin
rawaludin / gist:3850745
Created October 8, 2012 04:37
Belajar Switch Case di Java
class BelajarSwitchCase
{
public static void main(String[] args) {
int pilihan = 5;
switch(pilihan) {
case 1: System.out.println("Selamat Anda menemukan HP!");
break;
case 2: System.out.println("Selamat Anda menemukan Pensil!");
break;
@rawaludin
rawaludin / gist:3850747
Created October 8, 2012 04:38
Belajar Switch Case pake IF di Java
class BelajarSwitchCasePakeIf
{
public static void main(String[] args) {
int pilihan = 5;
if (pilihan==1) {
System.out.println("Selamat Anda menemukan HP!");
} else if (pilihan==2) {
System.out.println("Selamat Anda menemukan Pensil!");
} else if (pilihan>=3) {
require_once($yii);
Yii::createWebApplication($config)->run();
@rawaludin
rawaludin / index.php
Created October 14, 2012 20:19
PHP: test 1
require_once($yii);
Yii::createWebApplication($config)->run();
@rawaludin
rawaludin / gist:3889706
Created October 14, 2012 20:22 — forked from padolsey/gist:527683
Snippet: JavaScript - Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@rawaludin
rawaludin / gist:3899639
Created October 16, 2012 14:34
SNIPPET: Logic - sinkronisasi ECB JNA
=== Masalah ===
Bagaimana membuat sinkronisasi isian survey offline dan sistem online?
- Login?
- Perubahahan data?
=== USE CASE ===
USER OFFLINE > Pilih Survey yang akan disinkron
> Login
> Kirim data survey (baru dan update)
> Cancel pengiriman survey (kalau survey belum di konfirm admin)
@rawaludin
rawaludin / Ubuntu apt-get install log
Created October 28, 2012 10:45
Ubuntu package install log
sudo apt-get install libxss1 calibre xserver-xorg-video-intel mc apache2 mysql-server tasksel vim git-core g++ curl libssl-dev apache2-utils nodejs node npm terminator nethogs git-ftp pinta preload calibre gimp inkscape wine gpick conky-all postgresql guake ubuntu-restricted-extras p7zip recordmydesktop cheese blogilo xubuntu-desktop ntfs-config grsync rubygems
sudo apt-get autoremove unity-lens-shopping