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
Up high in the cloud | |
That's where the servers live | |
Up high in the cloud | |
that's where the AI predicts | |
Up high in the cloud | |
Is where all our unfinished side projects live | |
Up high in the cloud |
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
[ | |
{ | |
"value":"Pacific/Midway", | |
"label":"(UTC-11:00) Midway Island, American Samoa" | |
}, | |
{ | |
"value":"America/Adak", | |
"label":"(UTC-10:00) Aleutian Islands" | |
}, | |
{ |
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
document.addEventListener('DOMContentLoaded', function(event) { | |
const search = document.getElementById('search'); | |
const results = document.getElementById('results'); | |
let data = []; | |
let search_term = ''; | |
fetch('/search.json') | |
.then(response => response.json()) | |
.then(data_server => { | |
data = data_server; |
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
from __future__ import print_function | |
import os.path | |
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request | |
from google.oauth2.credentials import Credentials | |
# If modifying these scopes, delete the file token.json. | |
SCOPES = ['https://www.googleapis.com/auth/spreadsheets'] |
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
from __future__ import print_function | |
import os.path | |
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request | |
from google.oauth2.credentials import Credentials | |
# If modifying these scopes, delete the file token.json. | |
SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly'] |
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
.holder - video-remote.full:before { | |
content: "Room is full!"; | |
} |
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 roomFull = () => { | |
leave(); | |
remote.classList.add("full"); | |
}; |
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
rtc.client.on("user-published", async (user, mediaType) => { | |
if (rtc.client._users.length > 1) { | |
roomFull(); | |
} | |
// Rest of the code | |
}); |
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
btnCam.addEventListener("click", () => { | |
btnCam.classList.contains("active") ? stopVideo() : startVideo(); | |
}); | |
btnMic.addEventListener("click", () => { | |
btnMic.classList.contains("active") ? stopAudio() : startAudio(); | |
}); |
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 stopVideo = () => { | |
rtc.localVideoTrack.close(); | |
rtc.client.unpublish(rtc.localVideoTrack); | |
btnCam.classList.remove("active"); | |
}; |
NewerOlder