Skip to content

Instantly share code, notes, and snippets.

View teknosains's full-sized avatar

Budi K teknosains

View GitHub Profile
@teknosains
teknosains / APDU Exmple.txt
Created February 26, 2023 17:15 — forked from JohnMcLear/gist:2d74f49849dd1c3382663cb3edf7217d
NFC-PCSC APDU based logic to get ID from various ISO14443 tags. Multos, Gemalto, Oberthur, ITSO, Oyster, Mifare, NTAG etc.
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
@teknosains
teknosains / joi-locale.ts
Created February 22, 2022 16:25 — forked from arifmahmudrana/joi-locale.ts
joi localization internationalization error messages
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',
@teknosains
teknosains / index.html
Created April 20, 2020 11:17
Canvas Image Editor // source https://jsbin.com/lijudez
<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:
@teknosains
teknosains / index.html
Created April 20, 2020 11:09
Canvas Image Editor // source https://jsbin.com/lijudez
<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:
<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>
<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"/>
<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>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<script>
/**
* EasyQRCodeJS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h3>Upload KTP-OCR</h3>
Recognize On the Fly
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h3>Upload KTP-OCR</h3>
Recognize On the Fly