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 'package:flutter/material.dart'; | |
void main() => runApp(const ListTileApp()); | |
class ListTileApp extends StatelessWidget { | |
const ListTileApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class Task { | |
final String name; | |
final int id; |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class Task { | |
final String name; | |
final int id; |
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
const { Builder, By, Key, until } = require('selenium-webdriver'); | |
const firefox = require('selenium-webdriver/firefox'); | |
const Command = require('selenium-webdriver/lib/command').Command; | |
const path = require('path'); | |
const options = new firefox.Options() | |
.setPreference('extensions.firebug.showChromeErrors', true); | |
(async function example() { | |
let driver = await new Builder() |
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
function permute(arr) { | |
const permutations = []; | |
function heapPerm(array, size) { | |
if (size === 1) { | |
permutations.push(array.slice(0)); | |
} | |
for (let i = 0; i < size; i++) { | |
const prev = size - 1; | |
heapPerm(array, prev); | |
if (size % 2 === 0) { |