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
  • 02:20 (UTC +07:00)
  • LinkedIn in/albasyir
View GitHub Profile
@anchetaWern
anchetaWern / responsive-voice.js
Created May 16, 2015 09:44
responsive-voice.js
//Look for other responsivevoice instances
/*if (window.parent != null) {
var iframes = window.parent.document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
//iframes[i].style.width = "300px"
}
}*/
if (typeof responsiveVoice != 'undefined') {
console.log('ResponsiveVoice already loaded');
@javilobo8
javilobo8 / download-file.js
Last active July 27, 2024 07:41
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);
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 29, 2024 09:12
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@branneman
branneman / primitive-reference-types-javascript.md
Last active May 12, 2024 03:45
Primitive Types & Reference Types in JavaScript

Primitive Types & Reference Types in JavaScript

An explanation of JavaScript's pass-by-value, which is unlike pass-by-reference from other languages.

Facts

  • JavaScript has 2 kinds of variable types: primitive and reference.
  • A fixed amount of memory is reserved after creation of every variable.
  • When a variable is copied, it's in-memory value is copied.
  • Passing a variable to a function via a call also creates a copy of that variable.

Primitive Types

@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 / 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 / .vercelignore
Last active April 29, 2021 09:53
Vercel Config for Laravel, make your laravel hosted free!
node_modules
vendor
@albasyir
albasyir / readme.md
Last active May 24, 2021 05:39
Amazing Library