Skip to content

Instantly share code, notes, and snippets.

View imammubin's full-sized avatar

Imam Mubin imammubin

View GitHub Profile
<?php
/*
Plugin Name: hide admin dashboard bar
Plugin URI: http://bit.ly/hide-admin-dashboard-bar-plugin-v1
Description: hide admin bar dashboard when not in wp-admin
Version: 1.0
Author: iMubin
Author URI: http://www.imammubin.com
*/
<?php
/*
Plugin Name: addJQueryGoogle
Plugin URI: http://bit.ly/jquery-google-plugin-v1
Description: add JQUERY LIBRARY from google
Version: 1.0
Author: iMubin
Author URI: http://www.imammubin.com
*/
<?php
function GoogleURLShorterner($url)
{
$curlHandle = curl_init();
curl_setopt($curlHandle, CURLOPT_URL, 'https://www.googleapis.com/urlshortener/v1/url');
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, '{"longUrl":"'.$url.'"}');
/*
Android Activity LAUNCHER SCREEN
+ Firebase Login Detect
+ Runable
http://github.com/imammubin
*/
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 {
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");
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;
<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),