Skip to content

Instantly share code, notes, and snippets.

View windchime-yk's full-sized avatar
🍵
煎茶駆動開発

WhyK windchime-yk

🍵
煎茶駆動開発
View GitHub Profile
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />
import { assertEquals } from "https://deno.land/std@0.110.0/testing/asserts.ts";
import { buildFor } from "https://deno.land/x/sinco@v3.0.0/mod.ts";
Deno.test("Go to example.com", async () => {
const sinco = await buildFor("chrome");
map h goBack
map l goForward
map H previousTab
map L nextTab
map i LinkHints.activateMode
map I LinkHints.activateModeToOpenInNewTab
@windchime-yk
windchime-yk / server.js
Created May 3, 2018 08:47
どっかの記事で見つけたお手軽Node.jsサーバー覚書
const connect = require('connect');
const serveStatic = require('serve-static');
const app = connect();
const port = 3030;
app.use(serveStatic('./'));
app.listen(port, () => {
console.log(`ブラウザでhttp://localhost:${port}にアクセスしてください`);
});