Skip to content

Instantly share code, notes, and snippets.

agektmr /
Last active Sep 11, 2020
`input[autocomplete="one-time-code"]` polyfill using Web OTP API
if ('customElements' in window && 'OTPCredential' in window) {
    class extends HTMLInputElement {
      connectedCallback() {
        this.abortController = new AbortController();
      disconnectedCallback() {
agektmr / karabinar_JIS_ASCII.json
Created Aug 19, 2017
Converts JIS keyboard layout to ASCII keyboard layout in Karabinar Elements
View karabinar_JIS_ASCII.json
"title": "For Japanese (JIS配列をASCII配列風にする設定)",
"rules": [
"description": "英数・かなキーを他のキーと組み合わせて押したときに、コマンドキーを送信する。",
"manipulators": [
"type": "basic",
"from": {
"key_code": "japanese_eisuu",

Keybase proof

I hereby claim:

  • I am agektmr on github.
  • I am agektmr ( on keybase.
  • I have a public key ASA18VYrnHxJ0JjmiW3VhGzGrQPzg7V1DnYvG07Mwk4xHwo

To claim this, I am signing this object:

agektmr / Installing Project Tab Manager
Last active Feb 3, 2016
How to install Project Tab Manager beta
View Installing Project Tab Manager
  1. Download a zip file from here
  2. Open chrome://extensions on Chrome
  3. Check "Developer Mode"
  4. Click "Load unpacked extension..." and select the unzipped folder

Questions are welcome at

agektmr / Twitter Like
Last active Nov 6, 2015
Copy and paste this code to your browser URL bar. (URLバーにコピペしてね)
View Twitter Like
View designer.html
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
:host {
position: absolute;
agektmr / Apps Script to insert Atom Feed into Google Spreadsheet
Last active Sep 16, 2021
This script will fetch an Atom feed and insert rows on top in descending order. Make sure to replace with arbitrary URLs on 2 placeholders.
View Apps Script to insert Atom Feed into Google Spreadsheet
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);