Skip to content

Instantly share code, notes, and snippets.

View antronic's full-sized avatar
👨‍🚀
Working from home

Jirachai Chansivanon antronic

👨‍🚀
Working from home
View GitHub Profile
const fs = require("fs");
const path = require("path");
const { SearchIndexClient, AzureKeyCredential } = require("@azure/search-documents");
// Replace with your search service name and admin api key
const searchServiceName = "<your-search-service-name>";
const adminApiKey = "<your-search-service-admin-api-key>";
// Replace with your index name and field name
const indexName = "<your-index-name>";
<html>
<head>
<title>Progress time</title>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
}
#wrapper {
<html>
<head>
<title>Just a Clock!</title>
<style type="text/css">
html, body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"
}
</style>
</head>
<body>
@antronic
antronic / embedded_countdown.js
Created March 31, 2020 10:18
Idea for inject embedded countdown DOM element
(function() {
const today = new Date()
const _targetTime = prompt('Input your end time', `${today.getMonth() + 1}/${today.getDate()}/${today.getFullYear()} ${today.getHours()}:${today.getMinutes()}:${today.getSeconds()}`)
const targetTime = new Date(_targetTime)
if (isNaN(targetTime)) {
throw new Error('Your time input is invalid date format.')
}
@antronic
antronic / jsbkk-seek.html
Created February 8, 2020 10:23
JSBKK - seek code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Meow~</title>
</head>
<body>
Hello JSBKK
</body>
@antronic
antronic / req-printer.md
Created August 2, 2019 04:39
req-printer.md

/api/print

Req file - Image File

Res id - Queue ID for reference to print status (IF POSSIBLE, IF CAN'T IT OK NA)


@antronic
antronic / bh_invoice_cal_ex.js
Last active July 18, 2019 13:49
bh_invoice_cal_ex.js
data = {
invoices: [
{
chargeDetail: [
{
description: 'ค่ายา',
chargeDetailSubWTF: [
{
cost: 10,
@antronic
antronic / iphone-usb_tethering-to-rpi.md
Last active January 30, 2024 07:06
iPhone USB Tethering to RPi

iPhone Tethering to Raspberry Pi

Instruction

On RPi

  • sudo apt-get install usbmuxd
  • connect iPhone

On iPhone

  • Trust

@media (prefers-dark-interface)
{
html {
-apple-color-filter: apple-invert-lightness();
}
a {
-apple-color-filter: none;
color: -webkit-link;
}
img {
@antronic
antronic / page-for-chatbot-test-privacy-policy.txt
Created February 14, 2019 09:11
Page-for-chatbot-test Privacy Policy
WE DO NOT STORE ANY DATA OR MESSAGES YOU SEND TO YOUR CONTACTS AND CRM.