Skip to content

Instantly share code, notes, and snippets.

View shishima123's full-sized avatar
🎯
Focusing

Phuoc Nguyen shishima123

🎯
Focusing
  • 127.0.0.1
  • 07:13 (UTC +07:00)
View GitHub Profile
@shishima123
shishima123 / .gitignore
Created October 17, 2024 02:22 — forked from wojtekmaj/.gitignore
How to upgrade Yarn to Yarn Modern (v4 at the moment) seamlessly
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
@shishima123
shishima123 / README.md
Last active December 30, 2023 16:33
Readme content for sail+Filament

Installing

Setup

After clone project, run command below to composer install

docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v "$(pwd):/var/www/html" \

-w /var/www/html \

@shishima123
shishima123 / download-file.js
Created July 1, 2021 07:05 — 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);
@shishima123
shishima123 / readme.md
Last active December 23, 2020 11:01 — forked from benstr/readme.md
Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

@shishima123
shishima123 / Query Parameter WP.php
Last active December 23, 2020 03:47 — forked from thachpham92/gist:d57b18cf02e3550acdb5
Tất cả các tham số trong WP_Query
// Source: https://gist.github.com/luetkemj/2023628
// Xem hướng dẫn WP_Query toàn tập: http://goo.gl/kRpzTz
<?php
$args = array(
//////Author Parameters - Tham số lấy bài viết theo tác giả
//http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters
'author' => '1,2,3,', //(int) - Các ID tác giả cần lấy bài viết (thêm dấu - vào để loại trừ tác giả, ví dụ: -14, -20)
'author_name' => 'luetkemj', //(string) - Lấy bài viết dựa theo tên nick name của tác giả
'author__in' => array( 2, 6 ), //(array) - Lấy bài dựa theo ID của tác giả