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!
  • BTech of DOID Group
  • Indonesia
  • 15:48 (UTC +07:00)
  • LinkedIn in/albasyir
View GitHub Profile
@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;