- Dock
- アイコン消す
- 最小にして左に
- ホバーでのみ表示
- トラックパッド
- スクロール方向
- キーボード
- キーストローク
- Ctrl <-> CapsLock
This file contains hidden or 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
| // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| // #import {assertInstanceof} from './assert.m.js'; | |
| // #import {dispatchSimpleEvent} from './cr.m.js'; | |
| // // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. |
This file contains hidden or 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
| export function float32ToInt16(buffer) { | |
| let l = buffer.length; | |
| const buf = new Int16Array(l); | |
| while (l--) { | |
| buf[l] = Math.min(1, buffer[l]) * 0x7FFF; | |
| } | |
| return buf; | |
| } | |
| export function int16ToFloat32(int16arr) { |
This file contains hidden or 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
| const httpServer = http.createServer(); | |
| const wsServer = new Server({ noServer: true }); | |
| httpServer.on("upgrade", async (req, socket, head) => { | |
| debug("handle upgrade request"); | |
| let peerId = null; | |
| try { | |
| peerId = await service.peer.verifyPeerId(req.url); | |
| } catch (err) { |
This file contains hidden or 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
| const readline = require('readline'); | |
| const fs = require('fs'); | |
| const { EventEmitter } = require('events'); | |
| const bowser = require('bowser'); | |
| module.exports = function(logPath) { | |
| const emitter = new EventEmitter(); | |
| const rl = readline.createInterface({ | |
| input: fs.createReadStream(logPath), |
This file contains hidden or 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
| import React from 'react'; | |
| import { useEffect, useRef } from 'react'; | |
| import styled from '@emotion/styled'; | |
| const Layout = ({ aspect, debug, children }) => { | |
| const ref = useRef(null); | |
| useEffect(() => { | |
| const fixSize = () => { | |
| const $container = ref.current; | |
| const $content = $container.firstElementChild; |
This file contains hidden or 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
| !.* | |
| /node_modules |
This file contains hidden or 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 proxyIt(obj, name) { | |
| const debug = (...args) => console.log(`[${name}]`, ...args); | |
| debug('install proxy for', obj); | |
| return Proxy.revocable(obj, { | |
| set(target, propKey, value) { | |
| debug(`set ${propKey}`); | |
| return Reflect.set(target, propKey, value); | |
| }, | |
| get(target, propKey) { |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Test RTCQuicTransport</title> | |
| <style> | |
| p { font-size: 2rem; } | |
| </style> | |
| </head> | |
| <body> |
open "/Applications/Google Chrome.app/" --args --use-fake-device-for-media-stream --use-file-for-fake-video-capture="/path/to/example.y4m"ってすると、フラグ有効状態でChromeが立ち上がる。
getUserMedia()すると、ローカルストリームの代わりに指定した.y4mの動画が使われるので、おじさんを見ながら開発しなくていい。