This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Object content; | |
@SerializedName("nm_fasilitator") | |
@Expose | |
private String nm_fasilitator; | |
@SerializedName("asal_daerah_provinsi") | |
@Expose | |
private String asal_daerah_provinsi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: ramdani | |
* Date: 12/17/2016 | |
* Time: 9:12 PM | |
*/ | |
class Loop | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//declare diatas method | |
//variable global | |
final Context context = this; | |
================================================================= | |
//simpan dalam method | |
// set title | |
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context); | |
alertDialogBuilder.setTitle("Perhatian!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$jawaban = ['batagor', 'b','tidaks']; | |
$pilihanJawabanSatu = ['gado-gado','siomay','bakso','batagor']; | |
$pilihanJawabanSatu2 = [ | |
['gado-gado','siomay','bakso','batagor'], | |
['a','b','c'], | |
['ya','tidak'] | |
]; |