Skip to content

Instantly share code, notes, and snippets.

View littleironical's full-sized avatar
👻
keep your fingers sharp

Hardik Kumar littleironical

👻
keep your fingers sharp
View GitHub Profile
lst = [int(i) for i in input().split()][:n]
### 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
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();
#include<bits/stdc++.h>
// 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
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> {
// 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(
//In AndoidManifest.xml file inside android/app/src/main, add this line below package name
<uses-permission android:name="android.permission.INTERNET"/>
//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),
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