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, { useEffect, MutableRefObject, useRef, useState } from "react"; | |
import "./App.css"; | |
const VideoRoom: React.FC = () => { | |
const refSelfMediaStream: MutableRefObject<MediaStream | null> = useRef(null); | |
const refSelfVideo: MutableRefObject<HTMLVideoElement | null> = useRef(null); | |
const refPc1: MutableRefObject<RTCPeerConnection> = useRef( | |
new RTCPeerConnection() | |
); | |
const refPc2: MutableRefObject<RTCPeerConnection> = useRef( |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- This goes in layout/ and is an example layout using the workaround. --> | |
<EditView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingLeft="@dimen/fieldPaddingLeft" | |
android:paddingRight="@dimen/fieldPaddingRight" /> |
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
package src.exercises | |
import scala.math._ | |
import BigInt.probablePrime | |
import util.Random | |
object chap01 { | |
// 1. In the Scala REPL, type 3. followed by the Tab key. What methods can be | |
// applied? | |
// => Do it in REPL. There are many methods including %, &, *, +, toByte, toChar etc. |
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
description "Play" | |
env USER=user | |
env GROUP=group | |
env HOME=/opt/yourapp | |
env JAVA=/usr/bin/java | |
env JAVA_OPTS="-cp ./staged/* play.core.server.NettyServer ./.." | |
env PORT=80 | |
env EXTRA="-Xms128M -Xmx512m -server" |
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 re | |
import sublime | |
import sublime_plugin | |
import webbrowser | |
REG_RENAME = re.compile("\.(asciidoc|adoc|asc|ad)$") | |
EXT = re.compile(".*\.(asciidoc|adoc|asc|ad)$") | |
COMMAND = "asciidoctor -b html5" |