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
//declare diatas method
//variable global
final Context context = this;
=================================================================
//simpan dalam method
// set title
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);
alertDialogBuilder.setTitle("Perhatian!");
<!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()
{
@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();
}
<!-- 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 / 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
{
public Object content;
@SerializedName("nm_fasilitator")
@Expose
private String nm_fasilitator;
@SerializedName("asal_daerah_provinsi")
@Expose
private String asal_daerah_provinsi;
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);
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>() {
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
version: '2'
services:
web:
build:
context: ./
dockerfile: deploy/web.docker
volumes:
- ./:/var/www
ports:
- "8081:80"