if ('customElements' in window && 'OTPCredential' in window) {
customElements.define("web-otp",
class extends HTMLInputElement {
connectedCallback() {
this.abortController = new AbortController();
this.receive();
}
disconnectedCallback() {
this.abort();
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
class base64url { | |
static encode(buffer) { | |
const base64 = window.btoa(String.fromCharCode(...new Uint8Array(buffer))); | |
return base64.replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_'); | |
} | |
static decode(base64url) { | |
const base64 = base64url.replace(/-/g, '+').replace(/_/g, '/'); | |
const binStr = window.atob(base64); | |
const bin = new Uint8Array(binStr.length); |
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
<html> | |
<head> | |
<style> | |
figure { | |
width: 200px; | |
height: 150px; | |
text-align: center; | |
float: left; | |
} | |
img { |
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 main() { | |
var ss = SpreadsheetApp.openByUrl('YOUR SPREADSHEET URL COMES HERE'); | |
var sheet = ss.getSheets()[0]; | |
var property = PropertiesService.getDocumentProperties(); | |
var last_update = property.getProperty('last_update'); | |
last_update = last_update === null ? 0 : parseFloat(last_update); | |
var feed = fetch('ATOM FEED URL COMES HERE'); | |
var items = getItems(feed); |
結局PWAは来るの?来ないの?
TWA (Trusted Web Activities)
- https://developers.google.com/web/updates/2019/02/using-twa
- https://developers.google.com/web/updates/2019/08/twas-quickstart
- https://web.dev/oyo-lite-twa/
- https://github.com/GoogleChromeLabs/llama-pack
Project Fugu
API/payment method | Chrome | Edge | Safari | Samsung Internet | Firefox |
---|
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
{ | |
"title": "For Japanese (JIS配列をASCII配列風にする設定)", | |
"rules": [ | |
{ | |
"description": "英数・かなキーを他のキーと組み合わせて押したときに、コマンドキーを送信する。", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "japanese_eisuu", |
I hereby claim:
- I am agektmr on github.
- I am agektmr (https://keybase.io/agektmr) on keybase.
- I have a public key ASA18VYrnHxJ0JjmiW3VhGzGrQPzg7V1DnYvG07Mwk4xHwo
To claim this, I am signing this object:
- Download a zip file from here
- Open chrome://extensions on Chrome
- Check "Developer Mode"
- Click "Load unpacked extension..." and select the unzipped folder
Questions are welcome at https://twitter.com/agektmr
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
if (DEBUG === undefined) DEBUG = true; | |
DEBUG && console.log('test'); |
NewerOlder