Skip to content

Instantly share code, notes, and snippets.

View creativefull's full-sized avatar

Shodiqul Muzaki creativefull

View GitHub Profile
<?php
class API {
function CallAPI($method, $url, $data = false, $header=false) {
$curl = curl_init();
switch ($method) {
case "POST":
curl_setopt($curl, CURLOPT_POST, 1);
if ($data) {
<?php
class Database {
private $mysqli;
private $host;
private $user;
private $pass;
private $db;
function __construct($host,$user,$pass,$db) {
$this->host = $host;
<script type="text/javascript">
$(".klik").click(function() {
console.log("Element di klik");
$(this).closest("tr").find(".sub").toggle();
})
</script>
<div class="container col-lg-12">
<div class="kotak">
package com.blantik.accountKit;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.facebook.accountkit.AccessToken;
@creativefull
creativefull / Decode-Route-Gmap.java
Last active August 4, 2016 09:01
Google Maps Direction
public class RouteDecode {
public static ArrayList<LatLng> decodePoly(String encoded) {
ArrayList<LatLng> poly = new ArrayList<LatLng>();
int index = 0, len = encoded.length();
int lat = 0, lng = 0;
while (index < len) {
int b, shift = 0, result = 0;
do {
b = encoded.charAt(index++) - 63;
result |= (b & 0x1f) << shift;
package com.example.mshodiqul.sidompet;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
package com.example.mshodiqul.sidompet;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by mshodiqul on 7/16/16.
*/
public class DBHelper extends SQLiteOpenHelper {