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 enum ProblemLocationKind { | |
File, | |
Location | |
} | |
class ProblemPatternRegistryImpl implements IProblemPatternRegistry { | |
// ... | |
private fillDefaults(): void { | |
this.add('msCompile', { |
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
/** Simple function to record and download an html video using MediaRecorder API */ | |
async function downloadVideoFromBlob( | |
video, | |
duration, | |
filename = "recorded-video.mp4" | |
) { | |
if (!video || video.tagName !== "VIDEO") { | |
console.error("Please provide a valid video element."); | |
return; | |
} |
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
#!/bin/bash | |
# This script sets up reverse port mapping between an Android device/emulator and the local development machine. | |
# It is used to allow the Android app to connect to a local development server running on the host machine. | |
# | |
# When running the app in development mode on an Android device/emulator, the app tries to connect to | |
# localhost:$PORT. However, 'localhost' on the device refers to the device itself, not the development | |
# machine. This script uses ADB (Android Debug Bridge) to set up reverse port mapping so that when the | |
# app tries to connect to localhost:$PORT on the device, the connection is reversed back to port $PORT | |
# on the development machine where the actual server is running. |