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
#include <unistd.h> | |
#include <stdio.h> | |
#include <sys/wait.h> | |
int main() | |
{ | |
int num = 10; | |
int *pn = # | |
pid_t pid; |
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:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_rating_bar/flutter_rating_bar.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:url_launcher/url_launcher.dart'; | |
enum MovieList { | |
popular, | |
nowPlaying, |
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 'dart:async'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
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:math'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
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 MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return const 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
Widget build(BuildContext context) { | |
return Container( | |
padding: const EdgeInsets.all(8), | |
margin: const EdgeInsets.all(8), | |
decoration: BoxDecoration( | |
border: Border.all(color: Colors.black), | |
borderRadius: BorderRadius.circular(5), | |
), | |
child: SizedBox( | |
width: double.maxFinite, |
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
void main() { | |
MixinTest tester = MixinTest(); | |
tester.printNumInOne(); | |
tester.num = 20; | |
tester.printNumInTwo(); | |
} | |
class MixinTest with one, two { | |
void printNumInOne() { |
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 MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override |
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:android_intent_plus/android_intent.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:url_launcher/url_launcher.dart'; | |
Future<void> launchGoogleMap(double latitude, double longitude) async { | |
if (Platform.isAndroid){ | |
try { | |
AndroidIntent intent = AndroidIntent( | |
action: 'action_view', |
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 HomeState extends State<Home> { | |
final Completer<GoogleMapController> _controller = Completer(); | |
GoogleMapController? _mapController; | |
void _onMapCreated(GoogleMapController controller) { | |
_controller.complete(controller); | |
_mapController = controller; | |
} | |
@override |
NewerOlder