Skip to content

Instantly share code, notes, and snippets.

View bachors's full-sized avatar
🦕

Ican Bachors bachors

🦕
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bachors on github.
  • I am bachors (https://keybase.io/bachors) on keybase.
  • I have a public key whose fingerprint is 0527 739C 4031 93CC 5B18 8757 F511 C1FD D59B E7C7

To claim this, I am signing this object:

@bachors
bachors / phonegap_download_example.html
Created January 26, 2017 23:16 — forked from nathanpc/phonegap_download_example.html
Sample code to download file from internet - Phonegap Wiki
<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- Android
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<meta charset="utf-8">-->
<!-- iPad/iPhone specific css below, add after your main css >
@bachors
bachors / hosted_example.txt
Created December 18, 2016 06:35 — forked from makevoid/hosted_example.txt
JQuery DOM HighLighter (it's a basic "Inspect element" simple implementation to mimic what webkit inspector and firebug do)
http://uploads.makevoid.com/jquery_dom_highlighter.html
<?php
/*****************************************************************************************************************
* #### Read Webpage Offline ####
* Read Webpage Offline is a free online tools and easy-to-use offline browser utility.
* It allows you to download a World Wide Web site from the Internet to a local directory,
* building recursively all directories, getting HTML, images, and other files from the server to your computer..
* http://ibacor.com/tools/read-webpage-offline
*****************************************************************************************************************/
@bachors
bachors / uri.js
Created December 4, 2016 17:41 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@bachors
bachors / backlink_maker.php
Created November 26, 2016 12:49
Put your best SEO foot forward and generate a large number of high value backlinks ina matter of seconds.
@bachors
bachors / image_upload.html
Last active March 30, 2024 09:52
Convert image to base64, blob or binary with Javascript
<input type="file" id="inputImg" />
<br><br>
Nama file <input type="text" id="nameImg" style="width: 100%"/>
<br><br>
Type file <input type="text" id="typeImg" style="width: 100%"/>
<br><br>
Size file <input type="text" id="sizeImg" style="width: 100%"/>
<br><br>
base64Img: <input type="text" id="base64Url" style="width: 100%"/>
<br>
@bachors
bachors / image_frame.php
Last active November 29, 2016 03:00
Menggabungkan gambar menggunakan php
<?php
// menentukan frame, foto ,padding & file format (jpeg or png)
$frame = 'https://pixabay.com/static/uploads/photo/2016/02/02/01/31/background-1174639_960_720.png';
$foto = 'http://4.bp.blogspot.com/-MnbkNj0P6G4/Viq-PDdxdPI/AAAAAAAAAnw/kpSkfdXs3A0/s1600/yakuza-apocalypse-yayan-ruhian.jpg';
$padding = 150;
$format = 'png';
$frame_info = getImageSize($frame);
$foto_info = getImageSize($foto);
@bachors
bachors / kode_pos.php
Created May 14, 2016 19:17
Membuat API kode POS Indonesia
<?php
/* Just 4 Fun
API kode POS Indonesia
by iBacor.com */
function kode_pos($q){
// array untuk output
$result = array();
@bachors
bachors / php-ping.php
Created February 18, 2016 22:21 — forked from k0nsl/php-ping.php
PHP ping script
<?php
/*
*
* Use the examples below to add your own servers. Coded by clone1018 [?]
*
*/
$title = "Simple Server Status"; // website's title
$servers = array(
'Google Web Search' => array(