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
# Check for the latest version here: https://taskfile.dev/taskfile-versions | |
version: "3" | |
tasks: | |
echo: | |
desc: "Test echo command" | |
cmds: | |
- echo "Hello World" |
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 message = "Test Message"; | |
const interval = 300; // seconds | |
const sendMessage = (msg) => { | |
const inputField = document.getElementsByClassName('input-message-input')[0]; | |
const sendButton = document.querySelector('.btn-send'); | |
inputField.innerHTML = msg; | |
sendButton.click(); | |
console.log('Message sent:', msg); |
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
List<List<int>> mergeIntervals(List<List<int>> intervals) { | |
//The intervals should be sorted | |
//Creating a clone of intervals if we don't want the original intervals to be sorted | |
final clonedIntervals = List.from(intervals) | |
..sort((a, b) => a.first.compareTo(b.first)); | |
List<List<int>> mergedIntervals = []; | |
mergedIntervals.add(clonedIntervals.first); | |
for (final interval in clonedIntervals) { |