This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2022-12-06T16:48:43.000Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-10-23T07:39:07.907Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
syntax enable | |
set background=light | |
set encoding=UTF-8 | |
set cursorline | |
set termguicolors | |
set expandtab | |
set smarttab | |
set shiftwidth=4 | |
set softtabstop=4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const httpFcm = async (body: any) => { | |
const options = { | |
headers: { | |
Authorization: auth.token, // tokan dari firebase message: setelan projek => clund messaging => token | |
'Content-Type': 'application/json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name namadomain.com www.namadomain.com; # nama domain | |
return 302 $scheme://$host$request_uri; | |
} | |
server { | |
listen 443 ssl http2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shortDate<T extends ResponseData[]>(arr: T) { | |
const res = [...arr].sort((a, b) => Date.parse(a.created_at.split(' ')[0]) - Date.parse(b.created_at.split(' ')[0])); | |
return res; | |
} | |
function shortByName<T extends ResponseData[]>(arr: T) { | |
const res = [...arr].sort((a, b) => { | |
const name1 = a.beneficiary_name.toUpperCase(); | |
const name2 = b.beneficiary_name.toUpperCase(); | |
if (name1 < name2) { |