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
import { Toaster, toast } from 'react-hot-toast'; | |
export default function M() { | |
const navigation = useNavigation(); | |
const location = useLocation(); | |
// we only wants the loading shows if the route navigations | |
// are not from a form Submissions | |
const isRequestLoading = navigation.state === "loading"; | |
const isRequestAFormSubmission = Boolean(navigation.formAction); |
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
// Cara simple Showing and Dismissing loading Toast | |
// di clientAction function in Remix / React Router | |
// Toast library: https://react-hot-toast.com/docs/toast | |
function runFormValidation(formData) { | |
//... | |
} | |
export async function action({ request, params }: ActionFunctionArgs) { |
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
reader.on('card', async card => { | |
var uid = false; | |
// Smart card / payment ring / credit card / debit card | |
// Also Oyster etc. | |
if(card.type === "TAG_ISO_14443_4"){ | |
// Trying GTO Credit / Debit card | |
var apdu = '80ca9f7f2c'; // Credit / Debit Card APDU |
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
import { object, string, number, ValidationError } from '@hapi/joi'; | |
const schema = object({ | |
searchCode: string() | |
.required() | |
.label('Search code'), | |
id: number().required() | |
}), | |
messages = { | |
'alternatives.all': '{{#label}} does not match all of the required types', |
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
<html> | |
<head> | |
<title>Canvas Image Editor</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.1/mini-default.min.css"> | |
</head> | |
<body style='background-color:#fff;'> | |
<div class="container" style="border:1px solid #ddd;padding:10px"> | |
<div class="row"> | |
<div class="col-sm-12 col-md-12 col-lg-12"> | |
Hapus dulu Background photo mahasiswa disini: |
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
<html> | |
<head> | |
<title>Canvas Image Editor</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.1/mini-default.min.css"> | |
</head> | |
<body style='background-color:#fff;'> | |
<div class="container" style="border:1px solid #ddd;padding:10px"> | |
<div class="row"> | |
<div class="col-sm-12 col-md-12 col-lg-12"> | |
Hapus dulu Background photo mahasiswa disini: |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.1/mini-default.min.css"> | |
</head> | |
<body style='background-color:#fff;'> | |
<div class="container" style="border:1px solid #ddd;padding:10px"> | |
<div class="row"> | |
<div class="col-sm-12 col-md-12 col-lg-12"> | |
Hapus dulu Background photo mahasiswa disini: | |
<a href="https://www.remove.bg/" target="_blank">www.remove.bg</a> |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.1/mini-default.min.css"> | |
</head> | |
<body style='background-color:#fff;'> | |
<div class="container" style="border:1px solid #ddd;padding:10px"> | |
<div class="row"> | |
<div class="col-sm-12 col-md-12 col-lg-12"> | |
Hapus dulu Background photo mahasiswa disini: | |
<a href="https://www.remove.bg/" target="_blank">www.remove.bg</a>, download imagenya Lalu Upload Transparent filenya <input type="file" id="uploadFile"/> |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.1/mini-default.min.css"> | |
</head> | |
<body style='background-color:#fff;'> | |
<div class="container" style="border:1px solid #ddd;padding:10px"> | |
<div class="row"> | |
<div class="col-sm-12 col-md-12 col-lg-12"> | |
Hapus dulu Background photo mahasiswa disini: | |
<a href="https://www.remove.bg/" target="_blank">www.remove.bg</a> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<script> | |
/** | |
* EasyQRCodeJS |
NewerOlder