Skip to content

Instantly share code, notes, and snippets.

<?php
// buat class komputer
class komputer {
// property dengan hak akses protected
protected $jenis_processor = "Intel Core i7-4790 3.6Ghz";
}
// buat class laptop
class laptop extends komputer{
public function tampilkan_processor() {
@bigkiandi
bigkiandi / whatsapp_phone_enumerator_floated_div.js
Created May 16, 2017 18:41
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (by Loran Kloeze - loran@ralon.nl)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
@bigkiandi
bigkiandi / Encryption.php
Last active May 16, 2017 19:06
Simple Library Encrypt function In codeigniter
<?php
class Encryption {
var $skey = "SuPerEncKey2010"; // you can change it
public function safe_b64encode($string) {
$data = base64_encode($string);
$data = str_replace(array('+','/','='),array('-','_',''),$data);
return $data;
<?php
$permutasi = array('A','B','C','D');
foreach ($permutasi as $a){
foreach ($permutasi as $b) {
if($a == $b){ continue; }
echo $a.$b.", ";
}
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace AutoComplete
{
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:text="Enter a City Name"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
<td><input type="text" name='id_odojers' class="form-control" value="<?= $kodeunik; ?>" readonly></td>
@bigkiandi
bigkiandi / User.php
Created May 13, 2017 08:43
define and call your function in controller
<?php
public function index() {
$data['kodeunik'] = $this->model_user->buat_kode(); // variable $kodeunik merujuk ke file model_user.php pada function buat_kode. paham kan ya? harus paham dong
$this->load->view('template/backend', $data);
}
?>
<?php
class Model_user extends CI_Model {
var $db;
var $table = "user";
public function buat_kode() {
$this->db->select('RIGHT(user.id_odojers,4) as kode', FALSE);
$this->db->order_by('id_odojers','DESC');