This file contains 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"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>SkyWay - P2P Media example</title> | |
<link rel="stylesheet" href="../_shared/style.css"> | |
</head> | |
<body> | |
<div class="container"> |
This file contains 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 defaultConfig = { | |
type: 'line', // 折れ線チャート | |
data: { | |
datasets: [], | |
}, | |
options: { | |
title: { | |
display: true, | |
}, | |
scales: { |
This file contains 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 defaultConfig = { | |
type: 'line', // 折れ線チャート | |
data: { | |
datasets: [], | |
}, | |
options: { | |
title: { | |
display: true, | |
}, | |
scales: { |
This file contains 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 { config } from './config.js'; | |
const { RTCStatsMoment } = window.RTCStatsWrapper; | |
const Chart = window.Chart; | |
const Peer = window.Peer; | |
const charts = new Map(); | |
let timerId; | |
(async function main() { |
This file contains 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 EventEmitter from 'events'; | |
import Enum from 'enum'; | |
import Negotiator from './negotiator'; | |
import util from '../shared/util'; | |
import logger from '../shared/logger'; | |
import config from '../shared/config'; | |
const ConnectionEvents = new Enum([ | |
'candidate', |
This file contains 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 Peer = window.Peer; | |
(async function main() { | |
const localVideo = document.getElementById('js-local-stream'); | |
const localId = document.getElementById('js-local-id'); | |
const callTrigger = document.getElementById('js-call-trigger'); | |
const closeTrigger = document.getElementById('js-close-trigger'); | |
const remoteVideo = document.getElementById('js-remote-stream'); | |
const remoteId = document.getElementById('js-remote-id'); |
This file contains 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 EventEmitter from 'events'; | |
import Enum from 'enum'; | |
import Negotiator from './negotiator'; | |
import util from '../shared/util'; | |
import logger from '../shared/logger'; | |
import config from '../shared/config'; | |
const ConnectionEvents = new Enum([ | |
'candidate', |
This file contains 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 Peer = window.Peer; | |
(async function main() { | |
const localVideo = document.getElementById('js-local-stream'); | |
const localId = document.getElementById('js-local-id'); | |
const callTrigger = document.getElementById('js-call-trigger'); | |
const closeTrigger = document.getElementById('js-close-trigger'); | |
const remoteVideo = document.getElementById('js-remote-stream'); | |
const remoteId = document.getElementById('js-remote-id'); |
This file contains 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 woothee = require('woothee'); | |
function parseUserAgent(ua) { | |
const parsedUa = woothee.parse(ua); | |
return parsedUa; | |
} | |
function printResult(parsedUa) { | |
const browserName = parsedUa.name; | |
const browserVersion = parsedUa.version.split('.')[0]; |
This file contains 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
# coding: utf-8 | |
# Here your code ! | |
row1 = input().rstrip().split() | |
frames = int(row1[0]) # フレーム数 | |
pin = int(row1[1]) # ピンの数 | |
ballThrow = int(row1[2]) # ボールを投げた合計数 |
NewerOlder