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
Get Cordinate GMAP from click | |
https://jsfiddle.net/4wz4z17j/2/ |
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
/* | |
CONTOH PENGGUNAAN: | |
var redirect = 'http://www.website.com/page?id=23231'; | |
$.redirectPost(redirect, {x: 'example', y: 'abc'}); | |
*/ | |
$.extend( |
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
/* | |
CARA PAKAI: | |
$.redirect('/URL_FOLDER/', {'arg1': 'value1', 'arg2': 'value2'}); | |
*/ | |
;(function ($) { | |
'use strict'; |
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
package id.co.kopkarbsm.votingsystem; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.bluetooth.BluetoothSocket; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.support.v7.app.AppCompatActivity; |
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
apt-get install php7.2-dev php7.2-xml -y --allow-unauthenticated | |
sudo curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | |
sudo curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list | |
sudo apt-get update | |
sudo ACCEPT_EULA=Y apt-get install msodbcsql17 -y | |
sudo ACCEPT_EULA=Y apt-get install mssql-tools -y | |
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile | |
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc | |
source ~/.bashrc |
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
@Override | |
public boolean onKeyDown(int keyCode, KeyEvent event){ | |
if(event.getAction()==KeyEvent.ACTION_DOWN){ | |
switch (keyCode){ | |
case KeyEvent.KEYCODE_BACK: | |
if(webView.canGoBack()){ | |
webView.goBack(); | |
}else{ | |
finish(); | |
} |
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
<html> | |
<head></head> | |
<body> | |
<div id="map-canvas"></div> | |
<script src="https://maps.googleapis.com/maps/api/js"></script> | |
<script> | |
function initialize() { | |
var mapCanvas = document.getElementById('map-canvas'); | |
var mapOptions = { | |
center: new google.maps.LatLng(-6.5743075,106.640402), |
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
function removeSpaces(string) { | |
return string.split(' ').join(''); | |
} | |
function text_number_only(string){ | |
return string.replace(/\D/g,""); | |
} | |
function number_only(e){ | |
var key; var keychar; |
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
if(ContextCompat.checkSelfPermission (this,Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) | |
{ | |
ActivityCompat.requestPermissions(this,new String[] | |
{ | |
Manifest.permission.WRITE_EXTERNAL_STORAGE, | |
Manifest.permission.READ_EXTERNAL_STORAGE, | |
},1); | |
} | |
File folder = new File(Environment.getExternalStorageDirectory() + File.separator + "AAMubin"); |
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
private StringRequest stringRequest = new StringRequest(Request.Method.POST, url_register, new Response.Listener<String>() { | |
@Override | |
public void onResponse(String response) { | |
String result = response.toString(); | |
textView.setText(result); | |
Log.d("vol ", "onResponse: "+result); | |
////////// CONVERT STRING TO JSON | |
try { |