Skip to content

Instantly share code, notes, and snippets.

View albasyir's full-sized avatar
🏄‍♂️
always achive goals in enjoy!

Abdul Aziz Al Basyir albasyir

🏄‍♂️
always achive goals in enjoy!
  • Zenmirai
  • Indonesia
  • 00:18 (UTC +07:00)
  • LinkedIn in/albasyir
View GitHub Profile
@albasyir
albasyir / gmap-longlat.ts
Created June 24, 2024 06:39
Get longitude and latitude from google map link and get gmap link from latitude and longitude
const links = [
// random
"https://www.google.com/maps/@-6.1619199,106.8530092,15.76z?entry=ttu",
// unmatch url
"https://facebook.com/@-6.1619199/area",
// marchan clicked
"https://www.google.com/maps/place/TanSu+Kemayoran/@-6.1619199,106.8530092,15.76z/data=!4m6!3m5!1s0x2e69f5bb8fcb8b41:0xec7e3f7c984200a4!8m2!3d-6.1608762!4d106.8493247!16s%2Fg%2F11fxdvf1k9?entry=ttu",
@albasyir
albasyir / readme.md
Last active May 24, 2021 05:39
Amazing Library
@albasyir
albasyir / .vercelignore
Last active April 29, 2021 09:53
Vercel Config for Laravel, make your laravel hosted free!
node_modules
vendor
@albasyir
albasyir / axios-cheatsheet.md
Created March 21, 2021 04:31
Axios much better now as....

GET

// Make a request for a user with a given ID
axios.get('/user?ID=12345')
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
@albasyir
albasyir / http_status.md
Last active April 29, 2021 09:58
HTTP Status

HTTP Status

1xx

  • 100 Continue
  • 101 Switching Protocols
  • 103 Early Hints

2xx = SUCCESS

  • 200 OK
  • 201 Created
@albasyir
albasyir / download-file.js
Created October 19, 2020 05:12 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
@albasyir
albasyir / Http.php
Last active April 23, 2020 13:34
Mini http client for php
<?php
/**
* Kelas HTTP
* untuk narik data
*/
class Http {
/**
* Tempat endpoint
*/
public $endpoint;