平野昌士(Masashi Hirano)
大阪在住です。
2012年からソフトウェア開発に従事しています。
主にWebアプリケーションの開発を行っています。
const http = require("http"); | |
const { parse } = require("basic-auth"); | |
const { PROXY_USERNAME, PROXY_PASSWORD } = process.env; | |
const PROXY_PORT = process.env.PROXY_PORT || 8000; | |
const check = (credentials) => { | |
return ( | |
credentials && | |
credentials.username === PROXY_USERNAME && | |
credentials.pass === PROXY_PASSWORD |
5981fb7faa
] - (SEMVER-MAJOR) assert: fix line number calculation after V8 upgrade (Michaël Zasso) #2969448d1ea5e7f
] - (SEMVER-MAJOR) assert: special handle identical error names in instance checks (Ruben Bridgewater) #2826397c52ca5dc
] - (SEMVER-MAJOR) assert: add more information to AssertionErrors (Ruben Bridgewater) #282635700cd17dd
] - (SEMVER-MAJOR) assert: do not repeat .throws() code (Ruben Bridgewater) #28263d47b6786c9
] - (SEMVER-MAJOR) assert: wrap validation function errors (Ruben Bridgewater) [#28263]const start = performance.now(); | |
interface Member { | |
name: string; | |
birthday: Date | null; | |
url: string | null; | |
instrument: string | null; | |
} | |
const john: Member = { | |
name: 'John Lennon', |
<h1>Picture in Picture Web</h1> | |
supports Chrome 68+, Safari | |
<div> | |
<video id="video" style="width: 700px; height: 400px; left: 0px; top: 0px;" src="./sample.mp4" controls></video> | |
</div> | |
<div> | |
<button id="pipButton">Enter Picture in Picture</button> | |
<p id="windowSize"></p> | |
</div> |
const path = require('path'); | |
const fs = require('fs'); | |
const { promisify } = require('util'); | |
const glob = promisify(require('glob')); | |
const FROM = '.css'; | |
const TO = '.scss'; | |
const mv = async file => { | |
const out = `${path.join( | |
path.dirname(file), |
function createMachine(stateMachineDefinition) { | |
const machine = { | |
value: stateMachineDefinition.initialState, | |
transition(currentState, event) { | |
const currentStateDefinition = stateMachineDefinition[currentState]; | |
const destinationTransition = currentStateDefinition.transitions[event]; | |
if (!destinationTransition) { | |
return; | |
} | |
const destinationState = destinationTransition.target; |
copy(Object.values(document.getElementsByClassName("tngMainTrOn")).map(el => { | |
const text = el.innerText | |
const textArr = text.split("\n") | |
const en = textArr[0] | |
const ja = textArr[2].split(",").join("、") | |
return `${en}, ${ja}`; | |
}).join("\n")) |
const start = performance.now(); | |
interface Member { | |
name: string; | |
birthday?: Date; | |
url?: string; | |
instrument?: string; | |
} | |
const john: Member = { | |
name: 'John Lennon', |
const start = performance.now(); | |
interface Member { | |
name: string; | |
birthday: Date; | |
url: string; | |
instrument: string; | |
} | |
const john: Member = { | |
name: 'John Lennon', |