Interesting 404 error page.
This file contains 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
// https://stackoverflow.com/questions/51403615/spread-syntax-ecmascript | |
const callAll = (...fns) => (...args) => fns.forEach(fn => fn?.(...args)) |
This file contains 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
useEffect(() => { | |
const cancelToken = customAxios.CancelToken.source(); | |
dispatch(fetchDataABC(match.params.id, cancelToken.token)); | |
return () => { | |
cancelToken.cancel(`Cancel fetchData ${match.params.id}`) | |
} | |
}, []); | |
This file contains 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 debounced(delay, fn) { | |
let timerId; | |
return function (...args) { | |
if (timerId) { | |
clearTimeout(timerId); | |
} | |
timerId = setTimeout(() => { | |
fn(...args); | |
timerId = null; | |
}, delay); |
This file contains 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 decodeHtml(str) { | |
//buat element baru | |
let d = document.createElement("div"); | |
//masukan nilai | |
d.innerHTML = str; | |
//return nilai yang telah dimasukan | |
return typeof d.innerText !== 'undefined' ? d.innerText : d.textContent; | |
} |
This file contains 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 useInterval(callback) { | |
const savedCallback = useRef(); | |
useEffect(() => { | |
savedCallback.current = callback; | |
}); | |
useEffect(() => { | |
function tick() { | |
savedCallback.current(); |
This file contains 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
background: linear-gradient(270deg, #b012f9, #2935ea, #25e399); | |
background-size: 600% 600%; | |
-webkit-animation: .bg-a-gradient 15s ease infinite; | |
-moz-animation: .bg-a-gradient 15s ease infinite; | |
-o-animation: .bg-a-gradient 15s ease infinite; | |
animation: .bg-a-gradient 15s ease infinite; | |
@-webkit-keyframes .bg-a-gradient { | |
0%{background-position:0% 50%} |
This file contains 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
[{ | |
"name": "ini config root pemrograman", | |
"host": "ini host", | |
"protocol": "ftp", | |
"port": 21, | |
"username": "ini username", | |
"password": "ini password", | |
"remotePath": "/", | |
"uploadOnSave": true, | |
"downloadOnOpen": true, |
This file contains 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; | |
# Log files for Debugging | |
access_log /var/log/nginx/laravel-access.log; | |
error_log /var/log/nginx/laravel-error.log; | |
# Webroot Directory for Laravel project | |
root /var/www/example.com/public; |
This file contains 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
<body> | |
<section id="not-found"> | |
<div id="title">Simple Pure CSS3 • 404 Error Page</div> | |
<div class="circles"> | |
<p>404<br> | |
<small>PAGE NOT FOUND</small> | |
</p> | |
<span class="circle big"></span> | |
<span class="circle med"></span> | |
<span class="circle small"></span> |