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'; | |
import 'package:table_calendar/table_calendar.dart'; | |
class CalendarView extends StatefulWidget { | |
const CalendarView({super.key}); | |
@override | |
State createState() => _CalendarViewState(); | |
} |
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 'dart:io'; | |
import 'package:device_info_plus/device_info_plus.dart'; | |
class DeviceInfoUtil { | |
static Future<Map<String, String>> getDeviceInfo() async { | |
Map<String, String> deviceInfo = {}; | |
if (Platform.isAndroid) { | |
AndroidDeviceInfo androidInfo = await DeviceInfoPlugin().androidInfo; |
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'; | |
class Skeleton extends StatelessWidget { | |
final bool? automaticallyImplyLeading; | |
final Key? scaffoldKey; | |
final Color? backgroundColor; | |
final String? appBarTitle; | |
final TextStyle? appBarTitleStyle; | |
final Widget? body; | |
final Widget? floatingActionButton; |
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
class Solution { | |
public List<String> fizzBuzz(int n) { | |
List<String> result = new ArrayList<String>(); | |
for (int i = 1; i <= n; i++) { | |
boolean divisibleBy3 = i % 3 == 0; | |
boolean divisibleBy5 = i % 5 == 0; | |
boolean divisibleBy3And5 = divisibleBy3 && divisibleBy5; | |
if (divisibleBy3And5) result.add("FizzBuzz"); | |
else if (divisibleBy3) result.add("Fizz"); |
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
from genericpath import samestat | |
def selection_sort(list): | |
for step in range(len(list)): | |
smallest = step | |
for i in range(step+1, len(list)): | |
if list[i] < list[smallest]: | |
smallest = i | |
list[step] , list[smallest] = list[smallest] , list[step] |
NewerOlder