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
lst = [int(i) for i in input().split()][:n] |
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
### Problem 1. 'chromedriver.exe' executable needs to be in PATH. | |
# First install webdriver-manager | |
pip install webdriver-manager | |
# Then import ChromeDriverManager | |
from selenium import webdriver | |
from webdriver_manager.chrome import ChromeDriverManager | |
# This will automatically update the driver | |
# No need to specify the path in this case |
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
appBar: AppBar( | |
title: Text('hack_ed'), | |
backgroundColor: Colors.indigo, | |
leading: Builder( | |
builder: (BuildContext context) { | |
return IconButton( | |
icon: const Icon(Icons.more_vert), | |
onPressed: () { | |
Scaffold.of(context).openDrawer(); |
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
#include<bits/stdc++.h> |
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
// First add a custom icon in assets/icon folder | |
- assets/icon/icon.png | |
// In pubspec.yaml, add dependency | |
flutter_launcher_icons: ^0.8.1 | |
// Then write these lines below them from extreme left | |
flutter_icons: | |
image_path: "assets/icon/icon.png" | |
android: true |
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
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:orderac/screens/root.dart'; | |
class SplashScreen extends StatefulWidget { | |
@override | |
_SplashScreenState createState() => _SplashScreenState(); | |
} | |
class _SplashScreenState extends State<SplashScreen> { |
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
// TYPE1: This will show a provided color when pinned | |
flexibleSpace: FlexibleSpaceBar( | |
background: Image.network("https://wallpaperseven.com/wallpapers/Grey-Abstract-4k-Wallpaper-scaled.jpg", fit: BoxFit.cover,), | |
) | |
//TYPE2: This will show background image when pinned | |
flexibleSpace: Stack( | |
children: <Widget>[ | |
Positioned.fill( | |
child: Image.network( |
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
//In AndoidManifest.xml file inside android/app/src/main, add this line below package name | |
<uses-permission android:name="android.permission.INTERNET"/> |
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
//Have to define the _controller inside initState() to make it work properly. | |
//Inside StateFulClass: | |
YoutubePlayerController _controller; | |
@override | |
void initState() { | |
_controller = YoutubePlayerController( | |
initialVideoId: | |
YoutubePlayer.convertUrlToId(widget.videoLink), |
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
DIRECTORY | |
cd </file/path/code> -> change directory to a project | |
INITIALIZING | |
1. git init -> initialize an empty git repository | |
STATUS CHECK | |
2. git status -> list of files changed & those which needs to be staged or commit | |
STAGING & UNSTAGING |
OlderNewer