Skip to content

Instantly share code, notes, and snippets.

@comame
comame / atcoder.js
Last active October 16, 2021 19:15
stdin-reader
function*stdinIter(){const t=require("fs").readFileSync("/dev/stdin","utf-8").trim().split(/\n|\s/);yield*t}function readMany(t,e){const i=e||this.iter||(this.iter=stdinIter()),n=[];for(let e=0;e<t;e+=1)n.push(i.next().value);return n};
const DEBUG = process.env.DEBUG
function test(...msg) {
if (DEBUG) console.log(...msg)
}
// const [ a, b, c ] = readMany(3)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:responsive='true' lang='ja' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<!-- <b:skin> タグを含む <head> タグが必要 -->
<head>
<title><data:blog.title/></title>
<b:skin><![CDATA[]]></b:skin>
</head>

Keybase proof

I hereby claim:

  • I am comame on github.
  • I am comame (https://keybase.io/comame) on keybase.
  • I have a public key ASC25y5h_Aa32FrmN5QbXDDMf4ZYbxFyYdP0PgN3stMAPAo

To claim this, I am signing this object: