Skip to content

Instantly share code, notes, and snippets.

View bangiqi's full-sized avatar
🏠
Working from home

Rizki Ramdani bangiqi

🏠
Working from home
  • Female Daily Network
  • Bogor, Indonesia
View GitHub Profile
export ANDROID_HOME=$HOME/Documents/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:~/.config/composer/vendor/bin/
export PATH=$PATH:/usr/lib/node_modules
Gson gson2 = new Gson();
DataSurveyFasilitator a = gson2.fromJson (keySurvey, DataSurveyFasilitator.class);
Log.d(TAG, "hasil add json aja: "+gson2.toJson(a));
Call<DataSurveyFasilitator> call = service.postSurvey(a);
// Asynchronously execute HTTP request
call.enqueue(new Callback<DataSurveyFasilitator>() {
public interface ReqInterface {
@GET("api/poster")
Call<JSONResponse> getPoster();
@GET("api/leaflet")
Call<JSONResponse> getLeaflet();
@GET("api/poster/{id}")
Call<JSONResponse> getDetailPoster(@Path("id")long id);
public Object content;
@SerializedName("nm_fasilitator")
@Expose
private String nm_fasilitator;
@SerializedName("asal_daerah_provinsi")
@Expose
private String asal_daerah_provinsi;
@bangiqi
bangiqi / Loop.php
Created December 17, 2016 17:01
array object, edisi penasaran sama foreach
<?php
/**
* Created by PhpStorm.
* User: ramdani
* Date: 12/17/2016
* Time: 9:12 PM
*/
class Loop
{
<!-- Left side column. contains the sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<img src="<?php echo base_url('assets/AdminLTE-2.0.5/dist/img/user2-160x160.jpg') ?>" class="img-circle" alt="User Image" />
</div>
<div class="pull-left info">
@bangiqi
bangiqi / DeleteDivisi.php
Last active November 27, 2016 16:33
query delete di codeigniter
<?php
//model misal ada di Devisi model
public function deleteDivisi($id){
$sql = "DELETE FROM devisi WHERE id=$id";
$query = $this->db->query($sql);
return $query->result();
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
//declare diatas method
//variable global
final Context context = this;
=================================================================
//simpan dalam method
// set title
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);
alertDialogBuilder.setTitle("Perhatian!");
@bangiqi
bangiqi / gist:8f9091453e9c661c3d9cfced537857da
Last active July 21, 2016 02:28
logic jawaban array_seacrh
<?php
$jawaban = ['batagor', 'b','tidaks'];
$pilihanJawabanSatu = ['gado-gado','siomay','bakso','batagor'];
$pilihanJawabanSatu2 = [
['gado-gado','siomay','bakso','batagor'],
['a','b','c'],
['ya','tidak']
];