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
<link href="https://fonts.googleapis.com/css?family=Lato:300|Roboto:300" rel="stylesheet"> | |
<style> | |
#page | |
{ | |
/*height:10in; | |
width:7.5in; | |
border: solid 1px;*/ | |
font-size: 14px; | |
font-family: 'Lato', sans-serif; | |
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
//Use for SimplePeers wrtc property. | |
//Optionally, register your onStream handler here if needed. It won't return the stream, but it is when the audio/video starts playing. | |
//Needed for https://github.com/Temasys/AdapterJS/issues/59 | |
(onStream) => ({ | |
RTCPeerConnection: (() => { | |
//From https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection | |
const underlyingProperties = ["addIceCandidate", "addStream", "addTrack", "addTransceiver", "close", "createAnswer", "createDTMFSender", "createDataChannel", "createOffer", "currentLocalDescription", "currentRemoteDescription", "getConfiguration", "getLocalStreams", "getReceivers", "getRemoteStreams", "getSenders", "getStats", "getTransceivers", "iceConnectionState", "iceGatheringState", "localDescription", "onaddstream", "ondatachannel", "onicecandidate", "oniceconnectionstatechange", "onicegatheringstatechange", "onnegotiationneeded", "onremovestream", "onsignalingstatechange", "ontrack", "pendingLocalDescription", "pendingRemoteDescription", |
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
#!/bin/sh | |
# | |
# Add branch name to every commit message. | |
BRANCH=$(git branch|grep '*'|sed 's/\* //') | |
echo "${BRANCH}: $(cat $1)" > "$1"; |
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
#!/bin/bash | |
COMMAND=$*; | |
COMMAND=${COMMAND// /-}; | |
curl \ | |
--header 'Accept: application/vnd.github.v3.raw' \ | |
https://api.github.com/repos/tldr-pages/tldr/contents/pages/common/${COMMAND}.md?ref=master; |